[LON-CAPA-admin] make build
Stuart Raeburn
raeburn at msu.edu
Fri Aug 2 16:39:21 EDT 2013
Hi,
> capaFunctions/capaCommon.o: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> make[2]: *** [blib/arch/auto/capa/capa.so] Error 1
It seems likely that the directory:
/home/ng/loncapa/loncom/homework/caparesponse
contains some files compiled on 32 bit, which suggest you copied the
content of that directory from a different (32 bit) server.
The following procedure should fix this issue:
cd /home/ng/loncapa/loncom/homework/
rm -rf caparesponse
cvs update -A -d caparesponse
*******
After you have done that, the contents of:
/home/ng/loncapa/loncom/homework/caparesponse
should be:
-rw-rw-r-- 1 ng ng 5967 Dec 20 2005 caparesponse.c
-rw-rw-r-- 1 ng ng 53622 Jan 21 2013 caparesponse.pm
-rw-rw-r-- 1 ng ng 1446 Jul 1 2003 commands
drwxrwxr-x 2 ng ng 4096 Aug 2 16:31 CVS
-rw-rw-r-- 1 ng ng 1857 May 4 2002 Makefile.PL
-rw-rw-r-- 1 ng ng 519 Oct 24 2000 README
-rw-rw-r-- 1 ng ng 490 Sep 29 2006 test.pl
If you now do:
cd /home/ng/loncapa/loncom/build
make clean
make build
you should find that capa.so will be built for 64-bit and the contents of
/home/ng/loncapa/loncom/homework/caparesponse
will now be:
blib capa.pm capa.so CVS Makefile.PL
capa.bs caparesponse.c capa_wrap.c Makefile pm_to_blib
capaFunctions caparesponse.o capa_wrap.o Makefile.old README
capa.i caparesponse.pm commands Makefile.pl test.pl
Now you can proceed to use:
su
make install
to install CVS HEAD. You will need to do:
cd /home/ng/loncapa/loncom/
ln -s development_dns_domain.tab dns_domain.tab
ln -s development_domain.tab domain.tab
ln -s development_dns_hosts.tab dns_hosts.tab
ln -s development_hosts.tab hosts.tab
first, if you have not already set up those symbolic links, before running:
make install
Alternatively, to install a different (tagged) LON-CAPA version (e.g.
2.11.0.RC1), do:
cd /home/ng/loncapa/
cvs update -r version_2_11_0_RC1 -d doc
cvs update -r version_2_11_0_RC1 -d loncom
cvs update -r version_2_11_0_RC1 -d rat
cvs update -r version_2_11_0_RC1 -d modules/TexConvert
cvs update -r version_2_11_0_RC1 -d CAPA
cd /home/ng/loncapa/loncom/build
make clean
make build
su make install
Stuart Raeburn
LON-CAPA Academic Consortium
Quoting hkng <hkng at fsu.edu>:
> Hi,
>
> I finally got a 64-bit development server and I did a cvs update but when
> running make build, it crashes somewhere in capaFunctions/capaCommon
>
>
> capaFunctions/capaCommon.o: could not read symbols: File in wrong format
> collect2: ld returned 1 exit status
> make[2]: *** [blib/arch/auto/capa/capa.so] Error 1
> make[2]: Leaving directory `/home/ng/loncapa/loncom/homework/caparesponse'
> cp: cannot stat `blib/arch/auto/capa/capa.so': No such file or directory
> Can't locate loadable object for module capa in @INC (@INC contains:
> /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl
> /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at
> capa.pmline 11
> make[1]: *** [../../loncom/homework/caparesponse/capa.so] Error 255
> make[1]: Leaving directory `/home/ng/loncapa/loncom/build'
> make: *** [build] Error 2
>
> Any pointer?
>
> Thanks,
> -hk
More information about the LON-CAPA-admin
mailing list