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
The CPAN Scoop Install Blues. Docs
By static , Section Code []
Posted on Mon Jun 04, 2001 at 12:00:00 PM PST
As you will all know, Scoop is written in Perl. It also depends on a dozen or so modules from a Perl module archive called CPAN. And it's hell on installers when 3rd party modules you depend on change a little underneath you. This is my story of installing Scoop.

Let me first get out of the way the following aporism: "The one thing worse than no documentation is wrong documentation". There. Now, I know INSTALL is slightly out-of-date and I know Rusty et al know this and I know updates are planned. So I'd like to offer to rewrite a part of it based on what I discovered.

Firstly, I'm not a Perl programmer and CPAN is therefore more than a little scary to the uninitiated. At the moment, I do not recommend the update-cpan script. Instead, I would suggest running CPAN interactively. (i.e. perl -MCPAN -e shell; ) and do install [module] for the modules listed in Scoop's INSTALL file. Before you do, though, do an install Bundle::libnet as this will get you a proper FTP module.

But don't do them all: DBD::mysql in particular wants a module called Data::Dumper and fetching that looks like it tries to covertly upgrade your Perl to 5.6! The problem with that is that that is an 8Mb download. I wasn't going to do that with my V.90 modem... (I haven't complained to CPAN about it. I think perhaps it might be better if someone more familiar with CPAN and Perl did.) Fortunately, there's a way around this. Instead, download the DBD::mysql module from the mysql.com web site. Unpack the tarball, do perl Makefile.pl && make && make install. (You should be able to do this in a separate shell whilst in CPAN interactive mode.)

The other problem is that one of the Apache::Session modules requires MIME::Base64. This is an easy one to solve: just do install MIME::Base64 in CPAN first.

There's two other caveats before you start installing Perl modules. The Apache modules need the Apache development headers. I imagine this would not be a problem if you've built Apache from source, but I had it already installed (no problems as yet, but I'll watch out for them). So I had to fish the Apache-devel rpm off my distro CD. The other gotcha is similar: the Perl Mysql modules likewise require the Mysql-devel library if you're installing MySql from rpms.

The INSTALL documentation also neglects to mention that you have to add an Include line in your Apache httpd.conf to point to the correct http*.conf file in scoop/etc. And remember to go through this include file and correct all the items that need to be other than the default. Then make sure you have ListenAddress commented out in the Apache main file. At this point, httpd -S is very useful for confirming that a) your httpd setup is sane and probably correct and b) that you've included all the requisite Perl modules.

And that's the hard part over. Really! I'll try to add replies in this topic with other little things I discovered along the way (like you need a working /usr/bin/mail program).

So... what's the best way to update INSTALL?

< Modstorms | We need docs! >

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

Login
Make a new account
Username:
Password:

Related Links
· Scoop
· download the DBD::mysql module
· More on Docs
· Also by static

Story Views
  68 Scoop users have viewed this story.

Display: Sort:
The CPAN Scoop Install Blues. | 15 comments (15 topical, 0 hidden)
The best way to update INSTALL (none / 0) (#1)
by panner on Mon Jun 04, 2001 at 01:18:33 AM PST

The best way to update the INSTALL file would probably be start it off with "try running install.pl, in the scripts directory, first." Of couse, I don't know how well the install.pl works, but it should get you started.

As for Data::Dumper getting a newer perl, that's because Data::Dumper is included with perl. The biggest problem with CPAN is that, by default, it automatically follows dependancies. When you first start the shell, it'll configure. You can tell it to always ask instead, which is much safer. You can get back to that first init by doing "o conf init" at the CPAN shell. So after setting it to ask first, when CPAN tries to upgrade perl, just slap it on the nose and tell it, in a commanding by loving voice, "no."

As for the MIME::Base64, if you use the installer, it works differently from update-cpan.pl, so it will install that before trying to install Apache::Session.

For the headers, right now the INSTALL recommends compiling from source, mainly because almost all binaries that people have suck.

I think the reason that it doesn't mention Include'ing the http-*.conf file is that it's usually put in the httpd.conf. At least, that's how I do it. However, with the installer (if that part works), I know that it generates a conf file, and tells you to put an Include in your httpd.conf. If you're using apachecl to start and stop apache, then "apachectl configtest" will test your config. This is run automatically before starting, so you can't start Apache if you're config is screwed up.

And finally, I'll ask you: what did you need /usr/bin/mail for?

Anyway, the INSTALL does need to be rewritten. It's well out-dated, and personally I don't think it needs instructions on how to install mod_perl. I suppose a rewritten INSTALL should go in as a requirement for .8



--
Keith Smiley



mail recognition errors (none / 0) (#5)
by Brendan on Mon Jun 04, 2001 at 10:04:07 PM PST

O'la
I just installed scoop on my machine and having a problem that might be related to the modules. Any time a user attempts to get an account using an email address that is not from my machine they get an error telling them that their email is invalid. This is even for perfectly legit email addresses.

I double checked my Mail::Sendmail install:
Results from:
perl -MCPAN -e "install Mail::Sendmail" was:
Database was generated on Mon, 04 Jun 2001 19:58:55 GMT
Mail::Sendmail is up to date.

and the only info I can find is in scoop-error_log:
in db_delete: Query is DELETE FROM users WHERE uid = 4
IP is 64.12.106.49
IP is 64.12.106.49
in db_delete: Query is DELETE FROM users WHERE uid = 4
IP is 162.70.81.183
IP is 162.70.81.183
IP is 162.70.81.183
in db_delete: Query is DELETE FROM users WHERE uid = 4
IP is 64.12.106.49

Any help or suggestions would be greatly appreciated.



CPAN Modules, install.pl (5.00 / 1) (#13)
by kapital on Sat Jun 09, 2001 at 12:15:13 AM PST

I ran into a few problems with the CPAN modules. Some of the highlights:

  • One of the modules - XML::RSS, I believe - required XML::Parser, which in turn required that Expat be installed. No big whoop, except that it means the update-cpan.pl and install.pl scripts wouldn't work "out of the box".
  • DBD::mysql refused to find mysql.h from the interactive CPAN shell. Eventually I had to install the module manually. I also had the same problem with XML::Parser and expat.h. BTW, if you do install DBD::mysql manually, be sure to run make test before you run make install.
  • For some reason, I ended up with two Apache::Session modules - 1.53, and an older version. This causes Scoop to not work. I deleted the older version, and after that everything worked fine.
  • On the subject of install.pl: in Scoop 0.6 this script declares one of the variables using "our" instead of "my", which I discovered doesn't work under Perl 5.005_03 (a local perl guy said "our" is new in 5.6). I changed it to "my", and the script ran flawlessly (once the module issues had been worked out, that is).

All this was under FreeBSD 4.2 - your results may vary.



kitchen remodeling bronx (none / 0) (#15)
by Pervez on Sun Apr 07, 2019 at 11:25:02 AM PST

By means of regards when thus, making this way completely unique and therefore constantly noble document. You've gotten really a moment when going through a great deal more from this adventure. Already follow-up kitchen remodeling bronx Whatever some other sort of articles or reviews or possibly feedback really are equally remarkable



The CPAN Scoop Install Blues. | 15 comments (15 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