[LON-CAPA-admin] lon-capa on debian

Guy Albertelli II guy at albertelli.com
Tue Jun 17 01:50:06 EDT 2003


Hi Todd,

> Anyone have any experience with installing lon-capa on a debian system?

Yep. I think I have run into everything below.


> 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?

Correct, but you will need to comment out the 'use Authen::Krb4' and
Krb5 lines i/home/httpd/perl/lond. ANd the krb5 init lines. Otherwise
lond will blowup on startup.

> 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.

Correct. We don't export the modules directory as it is either illegal
  for us to do so with some things in there, or just unwise with other
  things.

  Extracts from the build process follows:
> 
> poisson:~/loncapa-unstable/loncom/build# make build
> .
> .
> .
> **** WARNING **** missing the file:
> ../../modules/TexConvert/tthperl/../tthdynamic/tthfunc.c

You will need to grab a tth.so file and put it where make install
wants it. Also copy the tth.pm from the 0.6.2 checkout you have and
put it in the same location tth.so is supposed to be in.
Ignore the build warning messages.

> .
> 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


You need to install swig 1.1, 

apt-get install swig libswig1.1


> 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.

Seems like a good idea.



> 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

Once again you need swig.


> and in WARNINGS, I have one entry:
> **** ERROR **** Missing /var/lib/mysql/mysql.sock

Ignore this.

> [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?

Use loncapa-0.99.2 it gets this correct for debian. (And hopefully
eveything else.)


(What is incorrect is tat tth is bein put in perl5/site_perl/5.005
but perl is looking in perl5/site_perl/5.6.1)

You can either,
1) correct loncapa/doc/loncapafiles/loncapafiles.lpml to put it in the
correct spot.
2) copy it to the correct spot yourself
3) put in /home/httpd/lib/perl
4) use the 0.99.2 tar file which does a combination of 1 and 3


-- 
guy at albertelli.com  LON-CAPA Developer  0-7-6-9-



More information about the LON-CAPA-admin mailing list