Project

General

Profile

1
<!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0//EN">
2
<html>
3

    
4
<head>
5
  <title>Metacat Install - Windows XP</title>
6
  <link rel="stylesheet" type="text/css" href="@docrooturl../@default.css">
7
</head>
8

    
9
<body>
10

    
11
<table class="tabledefault" width="100%">
12
<tr><td rowspan="2"><img src="@docrooturl../@images/KNBLogo.gif"></td>
13
<td colspan="7">
14
<div class="title">Metacat Install - Windows XP</div>
15
</td>
16
</tr>
17
<tr>
18
  <td><a href="@server@/" class="toollink"> KNB Home </a></td>
19
  <td><a href="@server@/data.html" class="toollink"> Data </a></td>
20
  <td><a href="@server@/people.html" class="toollink"> People </a></td>
21
  <td><a href="@server@/informatics" class="toollink"> Informatics </a></td>
22
  <td><a href="@server@/biodiversity" class="toollink"> Biocomplexity </a></td>
23
  <td><a href="@server@/education" class="toollink"> Education </a></td>
24
  <td><a href="@server@/software" class="toollink"> Software </a></td>
25
</tr>
26
</table>
27
<hr>
28

    
29
<table class="tabledefault" width="100%">
30
<td class="tablehead" colspan="2"><p class="emphasis">Building Metacat from cvs on Windows XP</p></td>
31
<tr>
32
<td>
33
<p>
34
Matthew Perry<br />
35
10/24/2006
36
</p>
37
  <p class="emphasis">
38
Note: This is not intended to be a complete, step-by-step tutorial but rather a general overview of the process along with some specific "gotchas" that I encountered along the way.
39
  </p>
40
</td>
41
</tr>
42
</table>
43

    
44
<h2>Download and Install via the standard windows installers</h2>
45
<p>
46
  Postgresql 8.1
47
  Java 1.5 JDK
48
  TortiseCVS 
49
</p>
50

    
51
<h2>Tomcat</h2>
52
<p>
53
Download Tomacat5.5 windows installer and install to C:\tomcat5 (or another directory w/out spaces)
54
</p>
55

    
56
<h2>Ant</h2>
57
<p>
58
Download ant 1.6.5-bin and extract to C:\ant
59
</p>
60

    
61
<h2>Environment variables</h2>
62
<pre>
63
Set environment variables (ctl panel > System > Advanced > Environment Variables). 
64
 ANT_HOME => C:\ant
65
 JAVA_HOME => C:\Program_Files\jdk1.5.0_09
66
 PATH => { THE EXISTING PATH };C:\Program_Files\jdk1.5.0_09\bin;C:\ant\bin;C:\Program Files\TortoiseCVS
67
 CVS_RSH => C:\Program Files\TortoiseCVS\TortoisePlink
68
</pre>
69

    
70
<h2>Database</h2>
71
<pre>
72
Use pgadmin to 
73
* Create a new user named 'metacat'
74
* Create a new database named 'metacat', owned by user 'metacat',  with UTF8 Encoding
75
</pre>
76

    
77
<h2>Checkout metacat</h2>
78
<pre>
79
Download the cvs version of metacat
80
    cd c:\worskpace
81
    cvs -d:ext:{ USER }@cvs.ecoinformatics.org:/cvs co metacat
82
    cvs -d:ext:{ USER }@cvs.ecoinformatics.org:/cvs co utilities
83
    cd metacat
84
</pre>
85

    
86
<h2>Edit build.properties</h2>
87
<pre>
88
Adjust build.properties
89
  # Tomcat Properties
90
  tomcat=C:/tomcat5
91
  deploy.dir=C:/tomcat5/webapps
92

    
93
  # Server Properties
94
  config.hostname=localhost
95
  config.port=8080
96

    
97
  # Metacat database user and password and location of file stores
98
  user=metacat
99
  password=metacatpass
100
  datafilepath=C:/workspace/metacat-data
101
  inlinedatafilepath=C:/workspace/metacat-inline-data
102

    
103
  # give username for CVS access to retrieve latest EML
104
  cvsroot=:ext:perry@cvs.ecoinformatics.org:/cvs
105
</pre>
106

    
107
<h2>Run</h2>
108
<pre> 
109
  ant clean install 
110
</pre>
111

    
112
<h2>Create tables</h2>
113
<pre>
114
  "C:\Program Files\PostgreSQL\8.1\bin\psql.exe" -U metacat -W -h localhost -f build/src/xmltables-postgres.sql metacat
115
</pre>
116

    
117
<h2>Register schemas with metacat db</h2>
118
<pre>
119
  ant register-schemas
120
</pre>
121

    
122
<p>
123
If all went well, you should be able to point your browser to http://localhost:8080/knb and see the default metacat skin
124
</p>
125

    
126

    
127

    
128
</body>
129
</html>
(5-5/6)