Installation

CentOS-5 install problem

CentOS-5 install problem

by Arnold Pizer -
Number of replies: 5

This is a transcript of an email exchange --- Arnie
Begin forwarded message:

From: Risa Hynes <hynes@math.rutgers.edu>
Date: July 17, 2007 11:40:11 AM EDT
Subject: Webwork2 prep install problem

Hi Gage,

We at Rutgers Math have a new (Dell dual opteron) server and are in the
process on installing the latest version of WebWork2 on an Apache2 server.

I am running into trouble with the libapreq2 install - specifically with
/usr/lib/libexpat.so being picked up instead of /usr/lib64/libexpat.so.
Do you have any suggestions? I've tried Apache2::Request via CPAN and
also manually.

Here is partial output of make:

make[2]: Entering directory
`/root/.cpan/build/libapreq2-2.08-E9GQaG/module/apache2'
/bin/sh ../../libtool --tag=CC --mode=link gcc -g -O2
-fno-strict-aliasing -o mod_apreq2.la -rpath `/usr/sbin/apxs -q
LIBEXECDIR` -export-dynamic -module -avoid-version
`/root/.cpan/build/libapreq2-2.08-E9GQaG/apreq2-config --link-libtool
--libs` /usr/local/apache2/lib/libapr-1.la
/usr/local/apache2/lib/libaprutil-1.la handle.lo filter.lo
gcc -shared .libs/handle.o .libs/filter.o -Wl,--rpath
-Wl,/root/.cpan/build/libapreq2-2.08-E9GQaG/library/.libs -Wl,--rpath
-Wl,/usr/local/apache2/lib -Wl,--rpath -Wl,/usr/local/apache2/lib
/root/.cpan/build/libapreq2-2.08-E9GQaG/library/.libs/libapreq2.so
-L/usr/lib64 -L/usr/local/apache2/lib -lsqlite3 /usr/lib/libexpat.so
-luuid -lrt -lcrypt -lpthread -ldl /usr/local/apache2/lib/libapr-1.so
/usr/local/apache2/lib/libaprutil-1.so -Wl,-soname -Wl,mod_apreq2.so -o
.libs/mod_apreq2.so
/usr/lib/libexpat.so: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[2]: *** [mod_apreq2.la] Error 1
make[2]: Leaving directory
`/root/.cpan/build/libapreq2-2.08-E9GQaG/module/apache2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/.cpan/build/libapreq2-2.08-E9GQaG/module'
make: *** [all-recursive] Error 1


Thanks in advance.
Risa




In reply to Arnold Pizer

Re: CentOS-5 install problem

by Arnold Pizer -
Hi Risa,

What OS are you using? There are detailed instructions for setting up
WeBWorK on SUSE, Debian, and Fedora at
http://devel.webwork.rochester.edu/twiki/bin/view/Webwork/WeBWorKDocs

Installing libapreq2 can be a problem and I never got it to work at
all with CPAN . For Debian and Fedora the packaged versions work but
for SUSE I had to build everything from source (which is easy once you
know what to do). Take a look at the instructions and see if they
help. I'm in the process of writing instructions for Ubuntu but they
should be very similar to the Debian instructions. If you are using
another OS, I'd like to know which one since we want instructions for
the most popular ones.

Arnie
In reply to Arnold Pizer

Re: CentOS-5 install problem

by Arnold Pizer -
We are using Centos 5.

I guess I could try using a fc6 rpm...

Thanks Arnie and Mike.

Risa
In reply to Arnold Pizer

Re: CentOS-5 install problem

by Arnold Pizer -
Hi Risa,

That might work. I'll try a Centos 5 installation after I finish the
Ubuntu instructions (which seem to be 90% Debian and 10% Fedora).
Centos 5 should be pretty close to Fedora 7. I downloaded Fedora Core
6 but never installed it since f7 was out when I was ready to start
writing instructions so I don't know what has changed between fc6 and
f7. I assume Centos 5 is closer to fc6.

I believe Michigan is using RHEL (which I assume is very close to
Centos 5) and you might ask Gavin LaRose about this.

Arnie
In reply to Arnold Pizer

Re: CentOS-5 install problem

by Arnold Pizer -
I ended up using the fc6 version of the rpm ...the only problem was that
it installs the modules in the "old" standard /etc/httpd instead of
/usr/local/apache2 (I started with a fresh compile of 2.2.4 vs the 2.2.3
that came with ce5.

There were no errors with the rpm, here are the files:

[root@calculus ~]# rpm -ql libapreq2
/etc/httpd/conf.d/apreq.conf
/usr/lib64/httpd/modules/mod
_apreq2.so
/usr/lib64/libapreq2.so.3
/usr/lib64/libapreq2.so.3.6.1
/usr/share/doc/libapreq2-2.09