Scoop on Mac OS X.4 (Tiger)
|
|
By janra , Section Code [] Posted on Sat Dec 17, 2005 at 12:00:00 PM PST
|
|
I spent the last few days picking away at installing Scoop on my iBook, and making notes about the process, since the last OS X notes were for Panther.
The good news is, it's gotten easier to install Scoop on OS X!
Remember, the notes below are not a complete install guide, they only describe what is different from a standard install. You should still read the complete install guide. (These notes will be making it into the system-specific notes in that document on its next update.)
|
In addition to Scoop's normal prerequisites, you will need:
- XCode (This gives you gcc, perl, make, and all those handy tools you really can't do without, plus a ton of other stuff.)
- fink (Unix utilities package manager. You may want to also get FinkCommander, the GUI front end to fink.)
There are a few changes to Scoop's normal prerequisites:
- expat: get this from fink; a binary package install works fine
- MySQL: there's an OS X native installer for 4.1 now, so download this and install mysql, the startup item, and the prefPane (all in the same dmg package). If you have a pressing need to compile MySQL yourself you can still do that, but this is much easier. Once all three are installed you can turn it on and off through System Preferences.
- Apache: you can use the built-in apache/mod_perl. You'll need to uncomment the LoadModule and AddModule lines for perl in httpd.conf (tucked away in /private/etc/httpd)
Before you start the install.pl script I'd suggest starting cpan and installing Bundle::CPAN like it recommends - XCode really doesn't come with many modules, including a bunch of ones that make life in CPAN much easier. Like, oh, the one that lets you keep a command history and scroll through it with the up/down arrow keys.
NOTE: You will want to start CPAN with the command "sudo -H cpan" and similarly run the Scoop install script with "sudo -H ./install.pl" so your permissions and environment are set correctly.
There is one module with special compile instructions for OS X, so you might as well take care of it before starting install.pl too.
XML::Parser You'll have to tell it where your expat is: after installing expat via fink, download and compile this module by hand, and when you configure use "perl Makefile.PL EXPATLIBPATH=/sw/lib EXPATINCPATH=/sw/include". Then make, make test, and make install as normal.
There is a system expat in /usr/X11R6/lib/ but I haven't tested this one to see if it works; fink's expat is known to work. If you try it (adjusting the two paths passed to the makefile appropriately) let me know what happens in a comment below!
Once all that is done, you're good to go: run the install.pl script and let it do its thing.
Before putting the generated apache config file fragment into /private/etc/httpd/ and Include-ing it in httpd.conf, you'll have to make two changes: both ErrorLog and CustomLog files need to be in "/private/var/log/httpd/" instead of the default "logs/". If you leave it at the default apache will fail with no useful error message (and apachectl configtest reports "Syntax OK"), and will appear to hang if started from System Preferences. If you change it, your logfiles are with the standard ones and you can get log rotation simply by adding your logfile names to the /etc/weekly script beside access_log and error_log.
And now you should have a Scoop site. |
|
Story Views
|
178 Scoop users have viewed this story.
|
|