<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); ">
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">Hi,</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">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. </div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">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:</div>
<div><br>
<div><font face="Courier" style="font-size: 12px;">sh RemoveProg QuickTest BerlekampTest CanZassTest ZZXFacTest MoreFacTest LLLTest  BitMatTest MatrixTest CharPolyTest RRTest QuadTest  GF2XTest GF2EXTest subset ZZ_pEXTest lzz_pEXTest</font></div>
<div><font face="Courier" style="font-size: 12px;">make QuickTest</font></div>
<div><font face="Courier" style="font-size: 12px;">make[1]: Entering directory `/home/ubuntu/temp/NTL/ntl-6.0.0/src'</font></div>
<div><font face="Courier" style="font-size: 12px;">g++ -I../include -I.  -O2 -m64  -o QuickTest QuickTest.c ntl.a  -lgmp   -lgf2x  -lm #LSTAT</font></div>
<div><font face="Courier" style="font-size: 12px;">make[1]: Leaving directory `/home/ubuntu/temp/NTL/ntl-6.0.0/src'</font></div>
<div><font face="Courier" style="font-size: 12px;">./QuickTest</font></div>
<div><font face="Courier" style="font-size: 12px;">./QuickTest: error while loading shared libraries: libgf2x.so.1: cannot open shared object file: No such file or directory</font></div>
<div><font face="Courier" style="font-size: 12px;">make: *** [check] Error 127</font></div>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">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"). </div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">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).</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">Here are the steps I do to install GF2X, GMP and NTL respectively:</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">
<div><font face="Courier" style="font-size: 12px;">wget https://gforge.inria.fr/frs/download.php/30873/gf2x-1.1.tar.gz</font></div>
<div><font face="Courier" style="font-size: 12px;">tar -xzf gf2x-1.1.tar.gz</font></div>
<div><font face="Courier" style="font-size: 12px;">cd gf2x-1.1</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo ./configure ABI=64 CFLAGS="-O2 -m64"</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo make</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo make check</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo make install        </font></div>
<div><font face="Courier" style="font-size: 12px;"><br>
</font></div>
<div><font face="Courier" style="font-size: 12px;">wget ftp://ftp.gnu.org/gnu/gmp/gmp-5.1.2.tar.bz2</font></div>
<div><font face="Courier" style="font-size: 12px;">tar xvjf gmp-5.1.2.tar.bz2</font></div>
<div><font face="Courier" style="font-size: 12px;">cd gmp-5.1.2</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo ./configure CFLAGS="-O2 -m64"</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo make</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo make check</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo make install</font></div>
<div><font face="Courier" style="font-size: 12px;"><br>
</font></div>
<div><font face="Courier" style="font-size: 12px;">wget http://www.shoup.net/ntl/ntl-6.0.0.tar.gz</font></div>
<div><font face="Courier" style="font-size: 12px;">tar -xzf ntl-6.0.0.tar.gz</font></div>
<div><font face="Courier" style="font-size: 12px;">cd ntl-6.0.0/src</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo ./configure NTL_GMP_LIP=on NTL_GF2X_LIB=on CFLAGS="-O2 -m64"</font></div>
<div><font face="Courier" style="font-size: 12px;">sudo make</font></div>
<div><font face="Courier"><span style="font-size: 12px;">sudo make check</span> </font></div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</div>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">I really hope you have an idea what might be wrong, because I am puzzled.</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; "><br>
</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">Best regards,</div>
<div style="font-size: 14px; font-family: Calibri, sans-serif; ">Peter</div>
</body>
</html>