|Title||Slash on Mac OS X|
|Date||Tuesday August 12 2003, @10:05AM|
This is how I installed Slash on Mac OS X Server 10.2.6 on August 8, 2003. YMMV. This is not intended to be a tutorial, it is a log of what I did for my system. You may wish to use a release version of perl, to include different Apache modules, to compile with DSO, etc. Whatever. If someone wants to take some or all of this information and include it in a more comprehensive guide, be my guest.
Note that I installed my own perl and Apache and mod_perl, I use fink for mysql and some of the libraries, and that I install the perl modules by hand.
Also note that for mod_perl, I added the --without-execstrip option, as Apache appears to be broken on Mac OS X, under some circumstances, without it (I got the undefined symbols warning for _ap_pstrndup, _ap_push_array, _perl_request_rec, _sv2request_rec when building Apache::Request/libapreq, as many others have).
When I previously built Slash for my PowerBook G4 running Mac OS X 10.2.x, I didn't need to do the execstrip thing. I don't know why. But now, on this machine, I do. I blame SCO.
download and unpack apache 1.3.28, mod_perl 1.28, perl 5.8.1 RC4
install perl in
% sh Configure -Duseshrplib -des % make ; make test % make install
log out and log back in (connected via ssh) to get fink in environment
install fileutils (gives version of cp compatible with Slash makefile)
% fink install fileutils
% fink install expat
% fink install mysql mysql-client mysql-dev mysql-shlibs
% sudo true; sudo safe_mysqld &
create your slash database and users in mysql, and flush privileges (see INSTALL)
install Bundles in CPAN (NOT Bundle::Slash yet)
cpan> install Bundle::CPAN cpan> reload cpan cpan> install Bundle::libnet cpan> install Bundle::LWP
install mod_perl/apache in
perl Makefile.PL APACHE_SRC=../apache_1.3.28/src DO_HTTPD=1 USE_APACI=1 \ PERL_MARK_WHERE=1 EVERYTHING=1 APACHE_PREFIX=/usr/local/apache \ ADD_MODULE="headers,rewrite,usertrack" APACI_ARGS="--without-execstrip"NOTE: I had to move
XML::Parser needs some help finding the paths for fink:
cpan> look XML::Parser # perl Makefile.PL EXPATLIBPATH=/sw/lib EXPATINCPATH=/sw/include # make; make test # sudo make install # exit
DBD::mysql, Date::Manip, XML::Simple, Apache::DBI failed a tiny number of tests. I forced them.
cpan> force install DBD::mysql cpan> force install Date::Manip cpan> force install XML::Simple
Apache::Test and Apache::Request needed some handholding too.
cpan> look Apache::Test # perl Makefile.PL -httpd
/usr/local/apache/sbin/httpd # make; make test # make install # exit cpan> look Apache::Request # ./configure --with-apache-include=/usr/local/apache/include/ # make # make install # perl Makefile.PL -httpd /usr/local/apache/sbin/httpd # make; make test # make install # exit
cpan> install Bundle::Slash
Install the rest of Slash as usual.
printed from Slashcode, Slash on Mac OS X on 2012-02-07 00:22:01