Installation

Webwork::Apache

Webwork::Apache

by Cameron Parker -
Number of replies: 5

I have used webwork on the Rochester server in the past but am trying to install webwork on RHEL 4.  I have been following the instructions and everything is working so far, until I try to restart Apache 1.3 after including webwork.apache-conf in particular (since it worked when I commented it out) the line “require Apache::Webwork”.

 

I get the following error message after attempting to restart Apache:

Syntax error on line 159 of

/opt/webwork/webwork2/conf/webwork.apache-config:

Can't locate Exception/Class.pm in @INC (@INC contains:

/opt/webwork/pg/lib /opt/webwork/webwork2/lib /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi

/usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi

/usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi

/usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi

/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi

/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi

/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4

/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2

/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi

/usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi

/usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi

/usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi

/usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi

/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi

/usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4

/usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2

/usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . /usr/local/apache/

/usr/local/apache/lib/perl) at

/opt/webwork/webwork2/lib/WeBWorK/DB/Schema.pm line 58.

BEGIN failed--compilation aborted at

/opt/webwork/webwork2/lib/WeBWorK/DB/Schema.pm line 58.

Compilation failed in require at /opt/webwork/webwork2/lib/WeBWorK/DB.pm

line 100.

BEGIN failed--compilation aborted at

/opt/webwork/webwork2/lib/WeBWorK/DB.pm line 100.

Compilation failed in require at /opt/webwork/webwork2/lib/WeBWorK.pm line 50.

BEGIN failed--compilation aborted at /opt/webwork/webwork2/lib/WeBWorK.pm

line 50.

Compilation failed in require at

/opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 35.

BEGIN failed--compilation aborted at

/opt/webwork/webwork2/lib/Apache/WeBWorK.pm line 35.

Compilation failed in require at

/opt/webwork/webwork2/conf/webwork.apache-config line 44.

/usr/local/apache/bin/apachectl start: httpd could not be started

 

Thank you for any help you can provide.

In reply to Cameron Parker

Re: Webwork::Apache

by Michael Gage -
The real error is indicated in line 3. The perl module
Exception::Class is missing and can't be found in any of the libraries searched (see line 4).

I've added Exception::Class to the list of required modules in check_modules.pl so in the future there will be some advance warning, but it's quite possible that there are still other modules that were automatically installed on my installation but which turn on missing on other installations. Missing modules will generate error messages that are recognizably similar to the one above.

My method of installing these missing modules is to use CPAN


sudo perl -MCPAN -e shell
password ....

> install Exception::Class
....
>quit


but you might want to consult with local unix gurus who might prefer to use the ports tree or other methods for keeping the perl libraries up to date.

Hope this helps.

--Mike
In reply to Michael Gage

Re: Webwork::Apache

by Sam Hathaway -
Note that Exception::Class is only required by the development version of WeBWorK, which is not terribly stable at this time. You probably want to run the rel-2-3-dev branch, which consists of the 2.3.1 release plus bugfixes.
-sam
In reply to Sam Hathaway

Re: Webwork::Apache

by Cameron Parker -
Thanks for the help. Michael's suggestion did fix the problem, I also had it install Iterator, Iterator::Util, and SQL::Abstract, but that seemed to work. But if I am running an unstable version then I guess I will reinstall it with the stable one.


In reply to Cameron Parker

Re: Webwork::Apache

by Michael Gage -
You can move to the stable version by cd'ing to the webwork2 directory and issuing the command:


cvs update -r rel-2-3-dev

You will then have to adjust the global.conf and database.conf files by hand -- guided by what is in the global.conf.dist and database.conf.dist files which will be set to the appropriate version.

There might be changes in the other .conf.dist files as well -- but they usually do not change much.

-- Mike
In reply to Cameron Parker

Re: Webwork::Apache

by Sam Hathaway -

Hi Cameron,

You should be able to downgrade like so:

cd /opt/webwork/webwork2
cvs up -dP -rrel-2-3-dev
cd /opt/webwork/pg
cvs up -dP -rrel-2-3-dev

After that, move your existing global.conf and database.conf files out of the way and make new copies from global.conf.dist and database.conf.dist. Also you should probably drop the webwork database and go through that setup procedure again.

Hope this helps.
-sam