Fw: Install GMP 5.0.1

Sam Rawlins sam.rawlins at gmail.com
Sat Feb 20 20:09:54 CET 2010


Hello
> ?
> Coud you please help me to solve this problem ?
> I am trying to install gmp- 4.3.1 on my laptop , but before fininshing the
> installation steps it report the following three errors:
> ***************************************************************
> creating libgmp.la
> (cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
> make[3]: Entering directory `/home/Marten/gmp-4.3.1'
> test -z "/usr/local/lib" || mkdir -p -- . "/usr/local/lib"
> ?/bin/sh ./libtool --mode=install /bin/install -c? 'libgmp.la'
> '/usr/local/lib/libgmp.la'
> /bin/install -c .libs/libgmp.lai /usr/local/lib/libgmp.la
> ./libtool: /bin/install: Permission denied
> make[3]: *** [install-libLTLIBRARIES] Error 126
> make[3]: Leaving directory `/home/Marten/gmp-4.3.1'
> make[2]: *** [install-am] Error 2
> make[2]: Leaving directory `/home/Marten/gmp-4.3.1'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/home/Marten/gmp-4.3.1'
> make: *** [install] Error 2
> ***************************************************************
> The error in step number ?11 make install.
> ?
>

Hi Marten. You have seriously got to explain more carefully your
environment. "laptop"s come in all shapes and sizes. I figure you are
attempting all of this on Windows though.
* What version of Windows? 32- or 64-bit?
* Where did  you get these instructions? They're not bad, though a little
complicated.
* Do you honestly want to compile GMP 4.2.2??? I don't think the GMP team is
going to support such an endeavor.

Well I should get to the simple answer: you need to `sudo make install` so
that you have write permissions into /usr/local.

In addition, you *seriously* ought to run the following in place of steps 10
and 11:
10)  ./configure
11.0)  make
11.1)  make check
11.2)  sudo make install

Notes:
10) can be replaced with `./configure --diable-static --enable-shared`,
which generates a dynamic rather than static library
11.1) might fail. You can still try the library if you like. (my experience)
Seriously consider jumping to GMP 4.3.2 or 5.0.1 unless ecm 6.0.1 requires
the outdated version of GMP.


> I followed the following steps:
> How to Download GMP
> 1) Download http://prdownloads.sf.net/mingw/MinGW-3.1.0-1.exe?download
>
> 2) Download http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download
>
> 3) Install both (to C:\GMP\MinGW and C:\GMP\1.0)
>
>
> 3.1) Said y, y and c:/GMP/MinGW to the DOS-box at the MSYS installation
>
> 4) Started MSYS from desktop and shut it down again
>
> 5) Download http://ftp.sunet.se/pub/gnu/gmp/gmp-4.2.2.tar.gz and moved the
> zip to C:\DC\1.0\home\Marten
>
>
> 6) Ran MSYS again
>
> 7) Typed "gunzip gmp-4.3.1.tar.gz"
>
> 8) Typed "tar -xvf gmp-4.3.1.tar" (and it started unpacking a whole bunch
> of stuff)
>
> 9) Typed "cd gmp-4.3.1" (changed directory)
>
> 10) Typed " ./configure" (and it started checking and creating a bunch of
> stuff)
>
> 11) Typed "make install" (and it came up with a whole bunch of weird stuff)
>
> 12) Download http://home.in.tum.de/~kruppa/ecm-6.0.1.tar.gz<http://home.in.tum.de/%7Ekruppa/ecm-6.0.1.tar.gz>
> ?
> ORhttp://home.in.tum.de/~kruppa/ecm-6.0.1.tar.gz<http://home.in.tum.de/%7Ekruppa/ecm-6.0.1.tar.gz>
> http://www.loria.fr/~zimmerma/free/ecm-6.0.1.tar.gz<http://www.loria.fr/%7Ezimmerma/free/ecm-6.0.1.tar.gz>
> and move the zip to C:\DC\1.0\home\Marten
>
> 13) Back in the ~ directory type "gunzip ecm-6.0.1.tar.gz"
>
> 14) Type "tar -xvf ecm-6.0.1.tar" (and it will unpack)
>
> 15) Go into the ecm-6.0.1 directory and type "./configure
> --with-gmp=/usr/local" (and it'll check stuff)
>
> 16) Type "make"
> ?
> Thanks very much,
> Marten
>
>
>
>
> ------------------------------
>
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at gmplib.org
> https://gmplib.org/mailman/listinfo/gmp-discuss
>
>
> End of gmp-discuss Digest, Vol 78, Issue 11
> *******************************************
>




-- 
Sam Rawlins


More information about the gmp-discuss mailing list