Scoop -- the swiss army chainsaw of content management
Front Page · Everything · News · Code · Help! · Wishlist · Project · Scoop Sites · Dev Notes · Latest CVS changes · Development Activities
Scoop on Mac OS X.4 (Tiger) Docs
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.

< Talk To Action | Scoop 1.1 Release Candidate 2c Out >

Menu
· create account
· faq
· search
· report bugs
· Scoop Administrators Guide
· Scoop Box Exchange

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· XCode
· fink
· FinkComman der
· MySQL
· More on Docs
· Also by janra

Story Views
  84 Scoop users have viewed this story.

Display: Sort:
Scoop on Mac OS X.4 (Tiger) | 6 comments (6 topical, 0 hidden)
OS X install (none / 0) (#1)
by michaelg on Wed Dec 28, 2005 at 02:17:03 AM PST

I can't find the logs in question, but after making changes to httpd, the server doesn't hang. Unfortunately, I can't figure out how to to make the site run. I have the install in Users/../Sites/scoop/. When I point the browser to the scoop directory, all I see are perl scripts.



And now fixed (none / 0) (#2)
by michaelg on Wed Dec 28, 2005 at 07:18:56 PM PST

Additional notes/changes I made to set it straight:

- Moved entire package to /cgi-bin/, and added the alias to httpd.conf, rather than run as <VirtualHost>

- Added a line to the hosts file for 127.0.0.1 > machinename.local.scoop, and used the same name for cookies during install

- Started site from "http://machinename.local.scoop/cgi-bin/scoop/"

- On 10.4.3, I found error_log and access_log where they should be, by default, in "/private/var/log/httpd/" - httpd.conf was ok in this respect, as well




Installed it on a different Tiger (none / 0) (#3)
by janra on Sat Feb 11, 2006 at 02:55:56 PM PST

And I have some comments that I forgot to put in the first time around.

  • I put the scoop code in /Library/Webserver/scoop - right beside CGI-Executables (the OS X equivalent of cgi-bin)
  • The error and access log files are prompted for, so if you enter them properly up front you won't have to change them before starting your site. Note that you have to use /private/var/log/httpd/filename and not /var/log/httpd/filename because apache doesn't like symlinks in its config file (something I found out long ago...)
  • when you run cpan, you don't have to tell it any special arguments for prefix, or make, or any of that, even though the perl modules aren't where you'd expect if you're familiar with more conventional unix installs. CPAN will do "the Right Thing" and install everything where it belongs when run as root. I spent all kinds of time the first time around looking for the right special arguments, only to finally discover that none were needed. OS X: it really is that simple :-)

This time around I used the system expat, in /usr/X11R6, and it fetched, parsed, and generated the RDF files properly, so I'd say that one works, no need to use the expat from fink.

You still probably want fink, for various utilities. ctags (if you're going to do scoop coding), gpg (cpan likes this so it can check signatures), and so on...

--
Discuss the art and craft of writing




Thinking of using mac os x.4 (none / 0) (#4)
by JoeF on Sat May 13, 2006 at 08:26:53 PM PST

I'm think I'll be getting into OS X.4 and this'll be useful, thanks :)
SIG:
Free PS3 Free Xbox 360


My Mac Scoop (none / 0) (#5)
by bolson on Fri Jun 23, 2006 at 08:41:44 PM PST

I've been running sbprog.com on my iMac G5 since Dec 8, 2005. Works fine. It may have been some hassle getting all the perl modules installed, but I think I could do it fresh in less than a day now.

For extra masochism/great justice! I run it on PostgreSQL. Last I checked they changes I put in to make that go weren't quite what the scoop maintainers wanted so I guess I'll just keep on with my own little fork of scoop. :-(



Scoop on Mac OS X.4 (Tiger) | 6 comments (6 topical, 0 hidden)
Display: Sort:

Hosted by ScoopHost.com Powered by Scoop
All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest © 1999 The Management

create account | faq | search