BSD DevCenter

oreilly.comSafari Books Online.Conferences.

We've expanded our LAMP news coverage and improved our search! Search for all things LAMP across O'Reilly!

Search
Search Tips

advertisement

Listen Print Subscribe to BSD Subscribe to Newsletters

Installing OCSweb on FreeBSD
Pages: 1, 2, 3

The install script ran all the way through this time. The last bits concerned me, though.



chgrp: -R: No such file or directory
ln: /usr/doc/ocs: No such file or directory
chgrp: -R: No such file or directory

Churning through install.pl, I found the culprit:

`chgrp $wgrp -R $prefix/ocs`

The code to set $wgrp doesn't work on FreeBSD. I went to /usr/local and did

chgrp nogroup -R ocs

thinking that should do the same thing.

I wasn't worried about the docs; I have the original source, the original docs, and the tarball they came in.

Following the install instructions, I added a <Directory></Directory> entry to my httpd.conf file so that OCSweb could work and restarted apache.

Now, the ultimate test. I fired up the web browser and pointed it at my laptop. A nice login screen appeared. Victory!

Now, on to ocsemail. Extracting the package, I saw that the install routine is pretty much the same as ocsbase. I edited install.pl to change the "root" group to "wheel," set $prefix to /usr/local, edited pkg/makefile to eliminate the Linux overhead, and replaced pkg/filelist's root.root entries with root.wheel.

It installed cleanly, on the first try. I was quite impressed with myself, until I tried to log in. OCSweb gave a nice friendly error:

cannot share-lock cookiejar

And httpd-errors proclaimed:

chown: root: illegal group name

Root group. Who ever heard of a "root" group? (Linux. And SysV, and Solaris... Apparently FreeBSD is the odd one out here.) Muttering atrocities, I broke out the sledgehammer:

% grep -r -i root /usr/local/ocs/* > groupoffenders

I found the offending line in lib/oio.pl and changed it.

Pages: 1, 2, 3

Next Pagearrow




Sponsored Resources

  • Inside Lightroom
Advertisement

Sponsored by:

O'Reilly Media

©2009, O'Reilly Media, Inc.
(707) 827-7000 / (800) 998-9938
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
About O'Reilly
Academic Solutions
Authors
Contacts
Customer Service
Jobs
Newsletters
O'Reilly Labs
Press Room
Privacy Policy
RSS Feeds
Terms of Service
User Groups
Writing for O'Reilly
Content Archive
Business Technology
Computer Technology
Google
Microsoft
Mobile
Network
Operating System
Digital Photography
Programming
Software
Web
Web Design
More O'Reilly Sites
O'Reilly Radar
Ignite
Tools of Change for Publishing
Digital Media
Inside iPhone
O'Reilly FYI
makezine.com
craftzine.com
hackszine.com
perl.com
xml.com

Partner Sites
InsideRIA
java.net
O'Reilly Insights on Forbes.com