| Paste number 57364: | Evergreen on OSX, good luck |
| Pasted by: | atheos |
| 8 months, 2 weeks ago | |
| #openils-evergreen | Context in IRC logs | |
| Paste contents: |
| http://mailman.jabber.org/pipermail/jadmin/2005-July/096195.html evergreen on osx 1. get fink! www.finkproject.org fink install wget get x-code for gcc get bison from GNU, if version is at or below 1.875 (I got 1.875) download pgsql 8.1 (update, get 8.2 not 8.1) ./configure --with-perl;make;make install set paths edit /etc/profile -> PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/sw/bin:/sw/sbin:/opt/local/bin" go into /usr/src/postgresql(version)/contrib/tsearch2 make; make install now, read here and add pgsql user http://www.macosxhints.com/article.php?story=20030603190314390 nireport / /users name uid this will help you find a uid number that isn't already used. then: niutil -create / /users/postgres niutil -createprop / /users/postgres uid 100 niutil -createprop / /users/postgres realname "Postgresql" niutil -createprop / /users/postgres home "/usr/local/pgsql" vi /etc/passwd ? why? niutil -createprop / /users/postgres shell "/bin/sh" niutil -createprop / /users/postgres gid 100 niutil -createprop / /users/postgres passwd "*" passwd postgres vi /etc/group postgres:*:100: no workie. chown -R postgres /usr/local/pgsql chgrp -R 100 /usr/local/pgsql mkdir /usr/local/pgsql/data chown postgres /usr/local/pgsql/data touch /var/log/postmaster.log chown postgres /var/log/postmaster.log chown postgres /usr/local/pgsql/ chmod 700 /usr/local/pgsql/data su postgres initdb -D /usr/local/pgsql/data pg_ctl -D /usr/local/pgsql/data -l /var/log/postmaster.log start exit cd /usr/src/postgresql-8.1.10/contrib/tablefunc make;make install su postgres createlang plpgsql -d template1 createdb -E UNICODE evergreen createlang plperlu evergreen createlang plperl evergreen ok, db is done. let add yaz. I'm using zap-3.0.14.tar.gz cd /usr/src wget http://ftp.indexdata.dk/pub/yaz/yaz-3.0.14.tar.gz tar xzvf yaz-3.0.14.tar.gz cd yaz-3.0.14 ./configure;make;make install then, fink install aspell - note, Text::Aspell will not like libs in /sw/lib -> either compile from source from GNU or modify the make file for Text::Aspell. I went with aspell-0.60.5 from GNU install aspell6-en-6.0-0.tar.bz2 from source, after installing aspell-0.60.5 from source fink install apache2-mpm-worker (note, build from source instead. we don't have apxs2 from fink) or, rather: fink install apache2-common nope, probs there too. installing from source with httpd-2.2.6 ./configure --enable-modules=all install apr, using apr-1.2.11 with default values. installing libdbi from flnk. fink install libdbi fink install libdbi-dev installed from source. nasty: had to remove version checks from libtool ad ltmain.sh and also remote --tag=CC from /src/Makefile install libdbi-0.8.2 install libdbi-drivers-0.8.2-1 completely ignore the osx build instructions. just do ./configure --with-pgsql --with-pgsql-dir="/usr/local/pgsql/"; make; make install fink install libtool fink install libjpeg fink install libpng3-shlibs fink install freetype2 fink install gd (don't need) fink install gd2 install libxml2-2.6.30 from source. install libxslt-1.1.22 from source add install XML::LibXML::Common to perl mods. install automake 1-9 get automake-1.9.6.tar.gz install libpng-1.2.20.tar.gz (get from fink instead) install readline from source readline5_5.2.orig.tar.gz install otp_src_R11B-5.tar.gz from source install expat-2.0.1.tar.gz from source install ejabberd-1.1.4.tar.gz from source obsolete: use fink install libgd from: http://www.libgd.org/Downloads with png/jpeg http://www.libgd.org/releases/gd-2.0.35.tar.bz2 ./configure --with-jpeg=/sw --with-png=/sw obsolete: Get the JS C source code at http://ftp.mozilla.org/pub/js/js-1.60.tar.gz put the SpiderMonkey in the same dir as js ls /usr/src/ js SpiderMonkey make -f Makefile.ref cd ../../spidermonkey perl Makefile.PL make; make instal above, not quite. get js, then download spidermonkey and install. http://search.cpan.org/CPAN/authors/id/T/TB/TBUSCH/JavaScript-SpiderMonkey-0.19.tar.gz perl mods add install Log::Log4perl install darwinports (spidermonkey route) having issues with spidermonkey, so I'll givev darwin-ports a try. it pretends to build, but then perl Javascript takes a dump. port install spidermonkey installing patch for Javascript from: http://rt.cpan.org/Public/Bug/Display.html?id=26763 THEN, install Javascript-1.0.3 :) REINSTALLING postgresql. the evergreen config shows that they are using 8.2 not 8.1 install libevent-1.3e.tar.gz from source install memcached-1.2.2.tar.gz from source user: atheos pass: xxxxxx simplyskeptic:/usr/src/evergreen/OpenSRF-0.9 root# make -C src all mkdir -p /tmp/ilstemp/opensrf objson/libobjson.so make -C objson cc -pipe -g -Wall -O2 -fPIC -I ../../include/ -I/usr/local/include/libxml2 -I/usr/local/apache2/include -I/usr/local/include/libxml2/libxml -I/usr/apr/include -DSTRICT_JSON_WRITE -DOSRF_DISABLE_MD5 -c -o xml2json.o xml2json.c cc -pipe -g -Wall -O2 -fPIC -I ../../include/ -I/usr/local/include/libxml2 -I/usr/local/apache2/include -I/usr/local/include/libxml2/libxml -I/usr/apr/include -DSTRICT_JSON_WRITE -DOSRF_DISABLE_MD5 -c -o ../libopensrf/utils.o ../libopensrf/utils.c cc -pipe -g -Wall -O2 -fPIC -I ../../include/ -I/usr/local/include/libxml2 -I/usr/local/apache2/include -I/usr/local/include/libxml2/libxml -I/usr/apr/include -DSTRICT_JSON_WRITE -DOSRF_DISABLE_MD5 -c -o ../libopensrf/md5.o ../libopensrf/md5.c cc -W1 object.o json_parser.o json2xml.o xml2json.o ../libopensrf/utils.o ../libopensrf/md5.o -o /tmp/ilstemp/opensrf/libobjson.so /usr/bin/ld: Undefined symbols: _main _osrfListFree _osrfListPop _osrfListPush _osrfListSetDefaultFree _osrfNewList _xmlCleanupCharEncodingHandlers _xmlCleanupParser _xmlCreatePushParserCtxt _xmlDictCleanup _xmlFreeParserCtxt _xmlParseChunk _osrfLogError collect2: ld returned 1 exit status make[1]: *** [libobjson.so] Error 1 make: *** [objson/libobjson.so] Error 2 |
This paste has no annotations.