<div dir="ltr"><div>Thanks,<br><br><br></div><div>The installation using the clean cvs update is successful. However, http restart failed - error_log shows the following message. </div><br><div><br>[Mon Aug 05 12:47:06 2013] [error] Can't locate Captcha/reCAPTCHA.pm in @INC (@INC contains: /home/httpd/lib/perl/ /usr/lib/<br>
perl5/site_perl/5.6.0/i386-linux/ /home/httpd/lib/perl /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor<br>_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /home/httpd/lib/perl//Apache/loncommon<br>
.pm line 76.\nBEGIN failed--compilation aborted at /home/httpd/lib/perl//Apache/<a href="http://loncommon.pm">loncommon.pm</a> line 76.\nCompilation failed in<br> require at /home/httpd/lib/perl//Apache/<a href="http://lonmenu.pm">lonmenu.pm</a> line 197.\nBEGIN failed--compilation aborted at /home/httpd/lib/perl//Ap<br>
ache/<a href="http://lonmenu.pm">lonmenu.pm</a> line 197.\nCompilation failed in require at /home/httpd/lib/perl//Apache/<a href="http://londefdef.pm">londefdef.pm</a> line 47.\nBEGIN failed<br>--compilation aborted at /home/httpd/lib/perl//Apache/<a href="http://londefdef.pm">londefdef.pm</a> line 47.\nCompilation failed in require at /home/httpd/li<br>
b/perl//Apache/<a href="http://lonxml.pm">lonxml.pm</a> line 99.\nBEGIN failed--compilation aborted at /home/httpd/lib/perl//Apache/<a href="http://lonxml.pm">lonxml.pm</a> line 99.\nCom<br>pilation failed in require at /etc/httpd/conf/<a href="http://startup.pl">startup.pl</a> line 40.\nBEGIN failed--compilation aborted at /etc/httpd/conf/star<br>
<a href="http://tup.pl">tup.pl</a> line 40.\nCompilation failed in require at (eval 2) line 1.\n<br>[Mon Aug 05 12:47:06 2013] [error] Can't load Perl file: conf/<a href="http://startup.pl">startup.pl</a> for server <a href="http://sd.loncapa.fsu.edu:0">sd.loncapa.fsu.edu:0</a>, exiting...<br>
<br><br>yum list *Captcha*<br><br>Loaded plugins: fastestmirror, refresh-packagekit, security<br>Loading mirror speeds from cached hostfile<br> * base: <a href="http://mirror.net.cen.ct.gov">mirror.net.cen.ct.gov</a><br> * epel: <a href="http://www.gtlib.gatech.edu">www.gtlib.gatech.edu</a><br>
* extras: <a href="http://mirror.teklinks.com">mirror.teklinks.com</a><br> * updates: <a href="http://mirror.cogentco.com">mirror.cogentco.com</a><br>Installed Packages<br>perl-Authen-Captcha.noarch 1.023-4.el6 @epel<br>
Available Packages<br>django-recaptcha.noarch 0.1-1.20091212svn6.el6 epel <br>django-recaptcha-works.noarch 0.3.4-1.el6 epel <br>
django-simple-captcha.noarch 0.2.0-4.el6 epel <br>php-ZendFramework-Captcha.noarch 1.12.3-1.el6 epel <br>
php-pear-Text-CAPTCHA.noarch 0.4.4-1.el6 epel <br>python-recaptcha-client.noarch 1.0.5-3.1.el6 epel <br>
python-tgcaptcha.noarch 0.11-7.el6 epel <br>python-tgcaptcha2.noarch 0.2.0-2.el6 epel <br>
rubygem-recaptcha.noarch 0.3.1-1.el6 epel <br>rubygem-recaptcha-doc.noarch 0.3.1-1.el6 <br></div><div class="gmail_extra">
<br></div><div class="gmail_extra">Is there some other perl module that needs to be installed with the upcoming version? (The same message appears with 2.11 version.)<br><br></div><div class="gmail_extra">-hk<br><br></div>
<div class="gmail_extra"><br><br><br><br><div class="gmail_quote">On Mon, Aug 5, 2013 at 12:13 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Maybe there are some other directories than need to be clean up?<br>
</blockquote>
<br></div>
Yes. I would recommend deleting the CAPA directory, and then updating from CVS.<br>
<br>
cd /home/ng/loncapa<br>
rm -rf CAPA<br>
cvs update -A -d CAPA<br>
<br>
Then run make build and make install again:<br>
<br>
cd loncom/build<div class="im"><br>
make clean<br>
make build<br>
su<br>
make install<br>
<br></div>
You potentially might also run into a similar 32 bit versus 64 bit issue with tth.so, which could be solved by:<br>
<br>
cd /home/ng/loncapa/modules<br>
rm -rf TexCovert<br>
cvs update -A -d TexConvert<br>
<br>
In general, I would say that unless you have made uncommitted modifications to your local copy of the CVS repository on a 32 bit development server which you are migrating to 64 bit architecture, the simplest thing is *not* to rsync the local CVS copy from the 32 bit hardware to the 64 bit hardware, but simply to do a new CVS checkout on the 64 bit instance.<br>
<br>
cd /home/ng/<br>
cvs co loncapa<br>
cd loncapa<br>
cvs co modules<br>
<br>
That way you will not be attempting to link against any previously compiled 32 bit files when you run make build within your local copy of the LON-CAPA CVS repository on the 64 bit machine/VM.<br>
<br>
In any event removing the appropriate *.o files from /home/ng/loncapa/CAPA and /home/ng/loncapa/loncom/<u></u>homework/caparesponse (as described in this and my previous post) should also resolve this issue.<div class="im">
<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>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Hi,<br>
<br><div class="im">
I removed the caparesponse directory and repopulate using cvs but did not<br>
solve the problem. Still give me the same message. (More detailed messages<br>
below.)<br>
<br>
This line below indicates some module not includes in @INC but I can<br>
install 2.10 successfully.<br>
<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><div class="h5"><br>
<br>
The target version (2.11) gives me the same message.<br>
<br>
Maybe there are some other directories than need to be clean up?<br>
<br>
Thanks,<br>
-hk<br>
<br>
<br>
<br>
<br>
<br>
<br>
make[2]: Leaving directory `/home/ng/loncapa/loncom/<u></u>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<br>
deprecated - use #ifdef SWIG<LANG> instead.<br>
capa.i:20: Warning(124): Specifying the language name in %typemap is<br>
deprecated - use #ifdef SWIG<LANG> instead.<br>
capa.i:29: Warning(124): Specifying the language name in %typemap is<br>
deprecated - use #ifdef SWIG<LANG> instead.<br>
capa.i:44: Warning(124): Specifying the language name in %typemap is<br>
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<br>
declaration is deprecated.<br>
For typemaps related to argument input (in,ignore,default,arginit,<u></u>check),<br>
replace<br>
$source by $input and $target by $1. For typemaps related to return<br>
values (out,<br>
argout,ret,except), replace $source by $1 and $target by $result. See the<br>
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/<u></u>homework/caparesponse'<br>
cp <a href="http://caparesponse.pm" target="_blank">caparesponse.pm</a> blib/lib/<a href="http://caparesponse.pm" target="_blank">caparesponse.pm</a><br>
cp Makefile.pl blib/lib/Makefile.pl<br>
cp <a href="http://capa.pm" target="_blank">capa.pm</a> blib/lib/<a href="http://capa.pm" target="_blank">capa.pm</a><br>
gcc -c -I../../../CAPA/pProj -D_REENTRANT -D_GNU_SOURCE<br>
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include<br>
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall<br>
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector<br>
--param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"\"<br>
-DXS_VERSION=\"\" -fPIC "-I/usr/lib64/perl5/CORE" -g -O0 -D_GNU_SOURCE<br>
-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_<u></u>check_answer':<br>
capa_wrap.c:1892: warning: passing argument 3 of 'Perl_sv_2pv_flags' from<br>
incompatible pointer type<br>
/usr/lib64/perl5/CORE/proto.h:<u></u>3039: note: expected 'STRLEN *' but argument<br>
is of type 'int *'<br>
capa_wrap.c:1896: warning: implicit declaration of function<br>
'caparesponse_capa_check_<u></u>answer'<br>
capa_wrap.c: In function '_wrap_caparesponse_get_real_<u></u>response':<br>
capa_wrap.c:1985: warning: implicit declaration of function<br>
'caparesponse_get_real_<u></u>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<br>
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include<br>
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall<br>
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector<br>
--param=ssp-buffer-size=4 -m64 -mtune=generic -DVERSION=\"\"<br>
-DXS_VERSION=\"\" -fPIC "-I/usr/lib64/perl5/CORE" -g -O0 -D_GNU_SOURCE<br>
-DPERL_POLLUTE caparesponse.c<br>
caparesponse.c: In function 'caparesponse_get_real_<u></u>response':<br>
caparesponse.c:161: warning: implicit declaration of function 'isdigit'<br>
caparesponse.c:167: warning: implicit declaration of function<br>
'split_num_unit'<br>
caparesponse.c:182: warning: implicit declaration of function<br>
'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" target="_blank">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<br>
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic capa_wrap.o<br>
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/<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></div><div class="im">
capa.pmline 11<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>
<br>
<br></div><div class="im">
On Fri, Aug 2, 2013 at 4:39 PM, Stuart Raeburn <<a href="mailto:raeburn@msu.edu" target="_blank">raeburn@msu.edu</a>> wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
Hi,<br>
<br>
<br>
capaFunctions/capaCommon.o: could not read symbols: File in wrong format<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
collect2: ld returned 1 exit status<br>
make[2]: *** [blib/arch/auto/capa/capa.so] Error 1<br>
<br>
</blockquote>
<br>
It seems likely that the directory:<br></div>
/home/ng/loncapa/loncom/**<u></u>homework/caparesponse<div class="im"><br>
<br>
contains some files compiled on 32 bit, which suggest you copied the<br>
content of that directory from a different (32 bit) server.<br>
<br>
The following procedure should fix this issue:<br>
<br></div>
cd /home/ng/loncapa/loncom/**<u></u>homework/<div class="im"><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></div>
/home/ng/loncapa/loncom/**<u></u>homework/caparesponse<div class="im"><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></div>
/home/ng/loncapa/loncom/**<u></u>homework/caparesponse<div><div class="h5"><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.<br>
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>
Hi,<br>
</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5">
<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></div></div>
make[2]: Leaving directory `/home/ng/loncapa/loncom/**<div class="im"><br>
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>
capa.pmline 11<br>
<br></div>
make[1]: *** [../../loncom/homework/**<u></u>caparesponse/capa.so] Error 255<br>
make[1]: Leaving directory `/home/ng/loncapa/loncom/**<u></u>build'<div class="im"><br>
make: *** [build] Error 2<br>
<br>
Any pointer?<br>
<br>
Thanks,<br>
-hk<br>
<br>
</div></blockquote>
<br>
______________________________<u></u>**_________________<br>
LON-CAPA-admin mailing list<br>
LON-CAPA-admin@mail.lon-capa.*<u></u>*org <<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><<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin" target="_blank">http://mail.lon-capa.<u></u>org/mailman/listinfo/lon-capa-<u></u>admin</a>><br>
<br>
</blockquote></blockquote><div class=""><div class="h5">
<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>
</div></div></blockquote></div><br></div></div>