Philo 3.2 Snow Leopard Install Guide

Here's a new version of a Philo 3.2 install guide with instructions to load all dependencies from *SOURCE*. We are avoiding both fink and macports because they cause us huge amounts of tsuris.

1) Mac OS X Developer Tools -- you MUST do this first.

The Mac OS X Install DVD that came with your computer/operating system contains an "Optional Installs" directory. Open, and install the "Xcode.mpkg" package. This should install all the compilers that philologic and its prerequisites need. Time: about 20 minutes.

2)Gawk

download source from http://www.gnu.org/software/gawk/

tar -zxvf gawk-3.1.8.tar.gz

cd gawk-3.1.8

./configure

make

sudo make install

installs gawk to /usr/local/bin/gawk, which should be in your path

3)GDBM

download source from http://www.gnu.org/software/gdbm/

tar -zxvf gdbm-1.8.3.tar.gz

cd gdbm-1.8.3

now you need to patch the Makefile.in--oof.

emacs Makefile.in:

at line 18-19, replace

BINOWN = bin

BINGRP = bin

with

BINOWN = root

BINGRP = wheel

./configure

make

sudo make install

installs to /usr/local/include and /usr/local/bin, which are not in your compiler's include path

4)Unicode::string

perl -MCPAN -e shell

let CPAN autoconfigure

install Unicode::string

5)agrep

download source from ftp://ftp.cs.arizona.edu/agrep/

tar -zxvf agrep-2.04.tar.gz

cd agrep-2.04

make

sudo cp agrep /usr/bin/

6)MySQL

download disk image from http://www.mysql.com/downloads/mirror.php?id=392049#mirrors

install all 3 packages:

mysql

prefpane -- once installed, turn on mysql, set to start automatically.

startup item

make sure the necessary programs are in your path

sudo ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql

sudo ln -s /usr/local/mysql/bin/mysql_config /usr/bin/mysql_config

Just in case you forgot, start mysql and set up some things:

SET PASSWORD FOR root@localhost=PASSWORD('XXXXXXXXXX');

ARTFL specific set up for the philologic daemon:

create database philologic;

Then for the password:

grant all on philologic.* to 'philologic'@localhost identified by 'XXXXXXXX';

7)perl DBI/DBD

Install DBI and MySQL DBD with the two following commands:

sudo cpan -i DBI

may ask you to install various pre-pre-req's. do it.

Prior to installing the DBD module, you might need to make a symlink to the mysql dynamic library (version numbers might be different):

sudo ln -s /usr/local/mysql-5.5.22-osx10.6-x86_64/lib/libmysqlclient.18.dylib /usr/lib

sudo cpan -i DBD::mysql

8) Create more symlinks

sudo mkdir -p /var/lib/mysql

sudo ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock

9)philologic

download from code.google.com/p/philologic/

tar -xvf philologic-v3.2rc7.tar

cd philologic-v3.2rc7

./configure CFLAGS="-O3" CPPFLAGS="-I/usr/local/include/" LDFLAGS="-L/usr/local/lib"

sudo make install

Before loading, remember to have a peek at /etc/philologic/philologic.cfg and make sure that you have everything (like the user name, passwords, and other stuff set right. Also, you may find that you need to set write permissions to your group for: [INSTALL-DIR]/philologic/pack/e-n2.dSYM/ We've noted this as a problem on some installations and not others.

Enjoy.