[LON-CAPA-admin] lon-capa on debian
Todd Ruskell
truskell at mines.edu
Wed Jun 11 17:43:21 EDT 2003
Anyone have any experience with installing lon-capa on a debian system?
I talked with Guy briefly about installing lon-capa on debian at the
conference, and became convinced it was easy enough for me to try. I am
reasonably pleased with my progress so far, but now have a few problems
I can't figure out how to fix. My (somewhat long) story follows. Any
help you all can provide will be greatly appreciated.
I got a bunch of the required perl modules as *.deb's, and
downloaded/installed a bunch by hand. I think I've got most everything
except the kerberos perl modules installed. I'm not too worried about
them because I don't think I really need them until I try kerberos
authentication, correct?
I couldn't get the daily cvs build, loncapa-unstable.tar.gz, to do
anything. It looks like some files, and the entire modules directory,
are missing. Extracts from the build process follows:
poisson:~/loncapa-unstable/loncom/build# make build
.
.
.
**** WARNING **** missing the file:
../../modules/TexConvert/tthperl/../tthdynamic/tthfunc.c
.
.
.
rm -f blib/arch/auto/capa/capa.so
LD_RUN_PATH="" cc -shared -L/usr/local/lib capa_wrap.o caparesponse.o
capaFunctions/*.o -o blib/arch/auto/capa/capa.so
cc: capa_wrap.o: No such file or directory
make[2]: *** [blib/arch/auto/capa/capa.so] Error 1
make[2]: Leaving directory
`/root/loncapa-unstable/loncom/homework/caparesponse'
cp: cannot stat `blib/arch/auto/capa/capa.so': No such file or directory
Can't open perl script "capa.pm": No such file or directory
make[1]: *** [../../loncom/homework/caparesponse/capa.so] Error 2
-----------------------------------------------------------------------------
Since that didn't work, I downloaded the 0.6.2 tar.gz file, and started
to hack. One of the first things I did was to link /etc/httpd to
/etc/apache, which is the preferred debian location for httpd.conf, etc.
The 0.6.2 install goes pretty well, with just a few items that got my
attention. They are excerpted here:
make[2]: Leaving directory `/root/loncapa-0.6.2/CAPA/pProj'
./commands: line 44: swig: command not found
Writing Makefile for capa
.
.
.
make[2]: Entering directory
`/root/loncapa-0.6.2/loncom/homework/caparesponse'
cp caparesponse.pm blib/lib/caparesponse.pm
cp capa.pm blib/lib/capa.pm
cp Makefile.pl blib/lib/Makefile.pl
cc -c -I../../../CAPA/pProj -DDEBIAN -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2
-DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC
-I/usr/lib/perl/5.6.1/CORE -g -O0 -D_GNU_SOURCE -DPERL_POLLUTE
caparesponse.c
Running Mkbootstrap for capa ()
chmod 644 capa.bs
rm -f blib/arch/auto/capa/capa.so
LD_RUN_PATH="" cc -shared -L/usr/local/lib capa_wrap.o caparesponse.o
capaFunctions/*.o -o blib/arch/auto/capa/capa.so
cc: capa_wrap.o: No such file or directory
make[2]: *** [blib/arch/auto/capa/capa.so] Error 1
make[2]: Leaving directory
`/root/loncapa-0.6.2/loncom/homework/caparesponse'
cp: cannot stat `blib/arch/auto/capa/capa.so': No such file or directory
.
.
.
---> 0 WARNINGS ENCOUNTERED!
---> 1 ERRORS ENCOUNTERED!
---> 0 NOTES ENCOUNTERED!
and in WARNINGS, I have one entry:
**** ERROR **** Missing /var/lib/mysql/mysql.sock
Where can I find this file? How important is it? Any idea what *.deb
package should provide it? It doesn't seem to show up anywhere on my
system.
Also, when I try to restart apache, I get the following:
[Wed Jun 11 14:06:51 2003] [error] Can't locate tth.pm in @INC (@INC
contains: /home/httpd/lib/perl /usr/local/lib/perl/5.6.1
/usr/local/share/perl/5.6.1 /usr/lib/perl5 /usr/share/perl5
/usr/lib/perl/5.6.1 /usr/share/perl/5.6.1 /usr/local/lib/site_perl .
/etc/apache/ /etc/apache/lib/perl) at
/home/httpd/lib/perl/Apache/lontexconvert.pm line 45.
My problem is that tth.pm appears to exist as
/usr/lib/perl5/site_perl/5.005/tth.pm
and /usr/lib/perl5 seems to be part of @INC. What's going on here? How
do I make tth.pm recognizable?
Of course apache won't start until this gets fixed.
Thanks much for any insight you can provide.
Todd
More information about the LON-CAPA-admin
mailing list