<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I removed the caparesponse directory and repopulate using cvs but did not solve the problem. Still give me the same message. (More detailed messages below.) <br><br>
This line below indicates some module not includes in @INC but I can install 2.10 successfully.<br><br>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 <a href="http://capa.pm">capa.pm</a> line 11<br>
<br></div>The target version (2.11) gives me the same message.<br><br></div>Maybe there are some other directories than need to be clean up?<br><br></div>Thanks,<br></div>-hk<br><br><div><div><div><div><br><br><br><br><br>
make[2]: Leaving directory `/home/ng/loncapa/loncom/homework/caparesponse'<br>mkdir: cannot create directory `capaFunctions': File exists<br>make[2]: Entering directory `/home/ng/loncapa/CAPA/pProj'<br>make[2]: Nothing to be done for `libcapa'.<br>
make[2]: Leaving directory `/home/ng/loncapa/CAPA/pProj'<br>capa.i:6: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead.<br>capa.i:20: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead.<br>
capa.i:29: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead.<br>capa.i:44: Warning(124): Specifying the language name in %typemap is deprecated - use #ifdef SWIG<LANG> instead.<br>
capa.i:18: Warning(450): Deprecated typemap feature ($source/$target).<br>capa.i:18: Warning(450): The use of $source and $target in a typemap declaration is deprecated.<br>For typemaps related to argument input (in,ignore,default,arginit,check), replace<br>
$source by $input and $target by $1.   For typemaps related to return values (out,<br>argout,ret,except), replace $source by $1 and $target by $result.  See the file<br>Doc/Manual/Typemaps.html for complete details.<br>capa.i:27: Warning(450): Deprecated typemap feature ($source/$target).<br>
capa.i:42: Warning(450): Deprecated typemap feature ($source/$target).<br>capa.i:49: Warning(450): Deprecated typemap feature ($source/$target).<br>Writing Makefile for capa<br>make[2]: Entering directory `/home/ng/loncapa/loncom/homework/caparesponse'<br>
cp <a href="http://caparesponse.pm">caparesponse.pm</a> blib/lib/<a href="http://caparesponse.pm">caparesponse.pm</a><br>cp Makefile.pl blib/lib/Makefile.pl<br>cp <a href="http://capa.pm">capa.pm</a> blib/lib/<a href="http://capa.pm">capa.pm</a><br>
gcc -c  -I../../../CAPA/pProj -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib64/perl5/CORE"  -g -O0 -D_GNU_SOURCE -DPERL_POLLUTE capa_wrap.c<br>
capa_wrap.c: In function ‘SWIG_Perl_ConvertPtrAndOwn’:<br>capa_wrap.c:1198: warning: value computed is not used<br>capa_wrap.c: In function ‘SWIG_Perl_MakePtr’:<br>capa_wrap.c:1225: warning: value computed is not used<br>
capa_wrap.c: In function ‘_wrap_caparesponse_capa_check_answer’:<br>capa_wrap.c:1892: warning: passing argument 3 of ‘Perl_sv_2pv_flags’ from incompatible pointer type<br>/usr/lib64/perl5/CORE/proto.h:3039: note: expected ‘STRLEN *’ but argument is of type ‘int *’<br>
capa_wrap.c:1896: warning: implicit declaration of function ‘caparesponse_capa_check_answer’<br>capa_wrap.c: In function ‘_wrap_caparesponse_get_real_response’:<br>capa_wrap.c:1985: warning: implicit declaration of function ‘caparesponse_get_real_response’<br>
capa_wrap.c: In function ‘boot_capa’:<br>capa_wrap.c:2290: warning: unused variable ‘items’<br>gcc -c  -I../../../CAPA/pProj -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic   -DVERSION=\"\" -DXS_VERSION=\"\" -fPIC "-I/usr/lib64/perl5/CORE"  -g -O0 -D_GNU_SOURCE -DPERL_POLLUTE caparesponse.c<br>
caparesponse.c: In function ‘caparesponse_get_real_response’:<br>caparesponse.c:161: warning: implicit declaration of function ‘isdigit’<br>caparesponse.c:167: warning: implicit declaration of function ‘split_num_unit’<br>
caparesponse.c:182: warning: implicit declaration of function ‘check_for_unit_fail’<br>caparesponse.c:142: warning: unused variable ‘seed2’<br>caparesponse.c:142: warning: unused variable ‘seed1’<br>caparesponse.c:138: warning: unused variable ‘target’<br>
Running Mkbootstrap for capa ()<br>chmod 644 <a href="http://capa.bs">capa.bs</a><br>rm -f blib/arch/auto/capa/capa.so<br>gcc  -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic capa_wrap.o caparesponse.o capaFunctions/*.o  -o blib/arch/auto/capa/capa.so     \<br>
             \<br>      <br>capaFunctions/capaCommon.o: could not read symbols: File in wrong format<br>collect2: ld returned 1 exit status<br>make[2]: *** [blib/arch/auto/capa/capa.so] Error 1<br>make[2]: Leaving directory `/home/ng/loncapa/loncom/homework/caparesponse'<br>
cp: cannot stat `blib/arch/auto/capa/capa.so': No such file or directory<br>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 <a href="http://capa.pm">capa.pm</a> line 11<br>
make[1]: *** [../../loncom/homework/caparesponse/capa.so] Error 255<br>make[1]: Leaving directory `/home/ng/loncapa/loncom/build'<br>make: *** [build] Error 2<br><br></div></div></div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Aug 2, 2013 at 4:39 PM, Stuart Raeburn <span dir="ltr"><<a href="mailto:raeburn@msu.edu" target="_blank">raeburn@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
capaFunctions/capaCommon.o: could not read symbols: File in wrong format<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [blib/arch/auto/capa/capa.so] Error 1<br>
</blockquote>
<br></div>
It seems likely that the directory:<br>
/home/ng/loncapa/loncom/<u></u>homework/caparesponse<br>
<br>
contains some files compiled on 32 bit, which suggest you copied the content of that directory from a different (32 bit) server.<br>
<br>
The following procedure should fix this issue:<br>
<br>
cd /home/ng/loncapa/loncom/<u></u>homework/<br>
<br>
rm -rf caparesponse<br>
<br>
cvs update -A -d caparesponse<br>
<br>
<br>
*******<br>
<br>
After you have done that, the contents of:<br>
<br>
/home/ng/loncapa/loncom/<u></u>homework/caparesponse<br>
<br>
should be:<br>
<br>
-rw-rw-r-- 1 ng ng   5967 Dec 20  2005 caparesponse.c<br>
-rw-rw-r-- 1 ng ng  53622 Jan 21  2013 <a href="http://caparesponse.pm" target="_blank">caparesponse.pm</a><br>
-rw-rw-r-- 1 ng ng   1446 Jul  1  2003 commands<br>
drwxrwxr-x 2 ng ng   4096 Aug  2 16:31 CVS<br>
-rw-rw-r-- 1 ng ng   1857 May  4  2002 Makefile.PL<br>
-rw-rw-r-- 1 ng ng    519 Oct 24  2000 README<br>
-rw-rw-r-- 1 ng ng    490 Sep 29  2006 <a href="http://test.pl" target="_blank">test.pl</a><br>
<br>
<br>
If you now do:<br>
<br>
cd /home/ng/loncapa/loncom/build<br>
<br>
make clean<br>
<br>
make build<br>
<br>
you should find that capa.so will be built for 64-bit and the contents of<br>
<br>
/home/ng/loncapa/loncom/<u></u>homework/caparesponse<br>
<br>
will now be:<br>
<br>
blib           <a href="http://capa.pm" target="_blank">capa.pm</a>          capa.so      CVS           Makefile.PL<br>
<a href="http://capa.bs" target="_blank">capa.bs</a>        caparesponse.c   capa_wrap.c  Makefile      pm_to_blib<br>
capaFunctions  caparesponse.o   capa_wrap.o  Makefile.old  README<br>
capa.i         <a href="http://caparesponse.pm" target="_blank">caparesponse.pm</a>  commands     Makefile.pl   <a href="http://test.pl" target="_blank">test.pl</a><br>
<br>
Now you can proceed to use:<br>
<br>
su<br>
make install<br>
<br>
to install CVS HEAD.  You will need to do:<br>
<br>
cd /home/ng/loncapa/loncom/<br>
<br>
ln -s development_dns_domain.tab dns_domain.tab<br>
ln -s development_domain.tab     domain.tab<br>
ln -s development_dns_hosts.tab  dns_hosts.tab<br>
ln -s development_hosts.tab      hosts.tab<br>
<br>
first, if you have not already set up those symbolic links, before running:<br>
<br>
make install<br>
<br>
<br>
Alternatively, to install a different (tagged) LON-CAPA version (e.g. 2.11.0.RC1), do:<br>
<br>
cd /home/ng/loncapa/<br>
<br>
cvs update -r version_2_11_0_RC1 -d doc<br>
cvs update -r version_2_11_0_RC1 -d loncom<br>
cvs update -r version_2_11_0_RC1 -d rat<br>
cvs update -r version_2_11_0_RC1 -d modules/TexConvert<br>
cvs update -r version_2_11_0_RC1 -d CAPA<br>
<br>
cd /home/ng/loncapa/loncom/build<br>
<br>
make clean<br>
make build<br>
su make install<br>
<br>
<br>
Stuart Raeburn<br>
LON-CAPA Academic Consortium<br>
<br>
<br>
Quoting hkng <<a href="mailto:hkng@fsu.edu" target="_blank">hkng@fsu.edu</a>>:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi,<br>
<br>
I finally got a 64-bit development server and I did a cvs update but when<br>
running make build, it crashes somewhere in capaFunctions/capaCommon<br>
<br>
<br>
capaFunctions/capaCommon.o: could not read symbols: File in wrong format<br>
collect2: ld returned 1 exit status<br>
make[2]: *** [blib/arch/auto/capa/capa.so] Error 1<br>
make[2]: Leaving directory `/home/ng/loncapa/loncom/<u></u>homework/caparesponse'<br>
cp: cannot stat `blib/arch/auto/capa/capa.so': No such file or directory<br>
Can't locate loadable object for module capa in @INC (@INC contains:<br>
/usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl<br>
/usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at<br></div>
capa.pmline 11<div class="im"><br>
make[1]: *** [../../loncom/homework/<u></u>caparesponse/capa.so] Error 255<br>
make[1]: Leaving directory `/home/ng/loncapa/loncom/<u></u>build'<br>
make: *** [build] Error 2<br>
<br>
Any pointer?<br>
<br>
Thanks,<br>
-hk<br>
</div></blockquote>
<br>
______________________________<u></u>_________________<br>
LON-CAPA-admin mailing list<br>
<a href="mailto:LON-CAPA-admin@mail.lon-capa.org" target="_blank">LON-CAPA-admin@mail.lon-capa.<u></u>org</a><br>
<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin" target="_blank">http://mail.lon-capa.org/<u></u>mailman/listinfo/lon-capa-<u></u>admin</a><br>
<br>
<br>
</blockquote></div><br></div>