[ntl] problems installing NTL with GF2X (NTL does not seem to find GF2X)
Peter Sebastian Nordholt
peter.s.nordholt at alexandra.dk
Mon Sep 2 07:30:33 CDT 2013
Hi,
I am trying to install NTL with GMP and GF2X, but am having some problems that I am stuck trying to solve, so I am hoping this mailing list may have some tips on how to proceed.
The problem seems to be that NTL cannot find the GF2X libraries. More specifically what happens is as follows: I first install GMP and GF2X (as described on the NTL website http://www.shoup.net/ntl/index.html). To install NTL I first run "make" which seems to go well, but when I run "make check" I get the following error:
sh RemoveProg QuickTest BerlekampTest CanZassTest ZZXFacTest MoreFacTest LLLTest BitMatTest MatrixTest CharPolyTest RRTest QuadTest GF2XTest GF2EXTest subset ZZ_pEXTest lzz_pEXTest
make QuickTest
make[1]: Entering directory `/home/ubuntu/temp/NTL/ntl-6.0.0/src'
g++ -I../include -I. -O2 -m64 -o QuickTest QuickTest.c ntl.a -lgmp -lgf2x -lm #LSTAT
make[1]: Leaving directory `/home/ubuntu/temp/NTL/ntl-6.0.0/src'
./QuickTest
./QuickTest: error while loading shared libraries: libgf2x.so.1: cannot open shared object file: No such file or directory
make: *** [check] Error 127
Which is odd because I can check that the GF2X library is right in "/usr/local" where I suppose NTL should be looking for it (in particular "libgf2x.so.1" is at "/usr/local/lib/libgf2x.so.1").
I am installing this on an Ubuntu 12.04.3 LTS machine with a Intel Xeon E5-2650 CPU (not sure that makes any difference, but let me know if there is more/other information that is relevant).
Here are the steps I do to install GF2X, GMP and NTL respectively:
wget https://gforge.inria.fr/frs/download.php/30873/gf2x-1.1.tar.gz
tar -xzf gf2x-1.1.tar.gz
cd gf2x-1.1
sudo ./configure ABI=64 CFLAGS="-O2 -m64"
sudo make
sudo make check
sudo make install
wget ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2
tar xvjf gmp-5.1.2.tar.bz2
cd gmp-5.1.2
sudo ./configure CFLAGS="-O2 -m64"
sudo make
sudo make check
sudo make install
wget http://www.shoup.net/ntl/ntl-6.0.0.tar.gz
tar -xzf ntl-6.0.0.tar.gz
cd ntl-6.0.0/src
sudo ./configure NTL_GMP_LIP=on NTL_GF2X_LIB=on CFLAGS="-O2 -m64"
sudo make
sudo make check
I really hope you have an idea what might be wrong, because I am puzzled.
Best regards,
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shoup.net/pipermail/ntl_shoup.net/attachments/20130902/f530c13b/attachment.html>
More information about the ntl
mailing list