Notes for Installing Metacat on Mac OSX Author: Matthew Perry Date: 11/9/2006 Download apache and untar to /Users/nceas/Apps sudo mkdir /Users/nceas/Apps/postgres sudo chown -R nceas /Users/nceas/Apps/postgres mkdir ~/src Download & install Fink sudo /sw/bin/fink install readline sudo /sw/bin/fink install cvs Download postgres8.1.5 src and untar in ~/src cd ~/src/postgresql-8.1.5 ./configure --prefix=/Users/nceas/Apps/postgres make make install cd /Users/nceas/Apps/postgres mkdir data bin/initdb -D data bin/pg_ctl -D data -l logfile start bin/createdb metacat bin/psql -d metacat sql> create user metacat with unencrypted password 'metapass'; sql> /q Add to data/pg_hba.conf host metacat metacat 127.0.0.1 255.255.255.255 password bin/pg_ctl -D data -l logfile restart psql -U metacat -W -h localhost metacat cd ~/src export CVS_RSH="/usr/bin/ssh" cvs -d:ext:perry@cvs.ecoinformatics.org:/cvs co metacat cvs -d:ext:perry@cvs.ecoinformatics.org:/cvs co utilities Edit build.properties as needed cd metacat mkdir /Users/nceas/Apps/metacat sudo touch /Users/nceas/Apps/apache-tomcat-5.5.20/webapps/knb.war sudo chown nceas /Users/nceas/Apps/apache-tomcat-5.5.20/webapps/knb.war ant clean install Enter your cvs password a few times /Users/nceas/Apps/postgres/bin/psql -U metacat -W -h localhost -f build/src/xmltables-postgres.sql ant register-schemas Restart tomcat point your browser to http://localhost:8080/knb/ and you should be in business After restarting, you'll need to fire off the following commands in order to start up postgres/tomcat again. # Starup /Users/nceas/Apps/postgres/bin/pg_ctl -D /Users/nceas/Apps/postgres/data/ -l /Users/nceas/Apps/postgres/logfile -m fast start /Users/nceas/Apps/apache-tomcat-5.5.20/bin/startup.sh # Shutdown /Users/nceas/Apps/apache-tomcat-5.5.20/bin/shutdown.sh /Users/nceas/Apps/postgres/bin/pg_ctl -D /Users/nceas/Apps/postgres/data/ -l /Users/nceas/Apps/postgres/logfile -m fast stop You can create two shell scripts with the preceeding commands; start_metacat.sh and stop_metacat.sh