LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   trying to install lidia-2.2.0 and I'm getting a configure error (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-install-lidia-2-2-0-and-im-getting-a-configure-error-779639/)

verthex 01-03-2010 10:48 PM

trying to install lidia-2.2.0 and I'm getting a configure error
 
Hello,

I'm trying to configure the lidia package. Thus far I've changed to su and typed ./configure to find this long mess with an error saying I don't have multiprecision integer arithmatic???


I've searched google and this seems to be the first time this has ever happened to anyone.

[root@localhost lidia-2.2.0]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking how to create a ustar tar archive... gnutar
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for type bool... yes
checking for ISO C++ inline... yes
checking for ISO C++ casting... yes
checking for explicit constructors by ISO C++... yes
checking for mutable class members by ISO C++... yes
checking for working template<>... yes
checking for explicit template instantiation by ISO C++... yes
checking for ISO C++ namespaces... yes
checking build system type... i686-pc-linux
checking host system type... i686-pc-linux
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... g++ -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from g++ object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if g++ static flag works... yes
checking if g++ supports -fno-rtti -fno-exceptions... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for latex... no
configure: WARNING:
You don't appear to have LaTeX 2e or some required LaTeX 2e packages, therefore you
will not be able to build the manual. You can obtain the manual in PostScript format
from http://www.informatik.tu-darmstadt.de/TI/LiDIA/
checking for gunzip... gunzip
checking for bunzip2... bunzip2
configure: checking which multi-precision arithmetic library to use
checking for GNU MP (version >= 3.1)... no
checking for CLN... no
checking for Piologie... no
checking for libI... no
configure: error: could not find a multi-precision integer arithmetic.
[root@localhost lidia-2.2.0]# make
make: *** No targets specified and no makefile found. Stop.
[root@localhost lidia-2.2.0]#

kbp 01-03-2010 11:54 PM

Try adding gmp as suggested then rerunning './configure'

Quote:

The gmp package contains GNU MP, a library for arbitrary precision
arithmetic, signed integers operations, rational numbers and floating
point numbers. GNU MP is designed for speed, for both small and very
large operands. GNU MP is fast because it uses fullwords as the basic
arithmetic type, it uses fast algorithms, it carefully optimizes
assembly code for many CPUs' most common inner loops, and it generally
emphasizes speed over simplicity/elegance in its operations.
cheers

verthex 01-04-2010 12:14 AM

I seem to have it already???

[root@localhost c]# yum install gmp
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package gmp-4.3.1-5.fc12.i686 already installed and latest version
Nothing to do
[root@localhost c]#

evo2 01-04-2010 12:17 AM

Is there a gmp-devel package?

Evo2.

verthex 01-04-2010 12:28 AM

I downloaded that just now and used ./configure and then make and make install. This did solve the problem. Now I'm having a different problem, but thanks.

evo2 01-04-2010 12:32 AM

Quote:

Originally Posted by verthex (Post 3813228)
I downloaded that just now and used ./configure and then make and make install. This did solve the problem.

Great. Just one thing I wanted to point out: Generally you should not compile code as root. Usually, at most, only the installation should be done as root. Eg.

Code:

[verthex@localhost lidia-2.2.0]% ./configure
[verthex@localhost lidia-2.2.0]% make
[verthex@localhost lidia-2.2.0]% su
[root@localhost lidia-2.2.0]# make install

Cheers,

Evo2.

verthex 01-04-2010 12:44 AM

tried that and I'm get permission denied for ./configure

evo2 01-04-2010 12:46 AM

Quote:

Originally Posted by verthex (Post 3813240)
tried that and I'm get permission denied for ./configure

Ahh, you need to untar foo.tar.gz as that user too.

Cheers,

Evo2.

knudfl 01-04-2010 01:59 AM

Compiling lidia-2.0.0

.. Fix the code for gcc-4.x with this patch
http://www.montefiore.ulg.ac.be/~poi...gcc-4.4.0.diff

mv lidia-2.2.0-gcc-4.4.0.diff lidia-2.0.0/
cd lidia-2.0.0/
patch -p1 < lidia-2.2.0-gcc-4.4.0.diff
./configure && make

.....

P.S. : Compiling as root : Is asking for trouble !
Please do not do anything as root, except admin tasks.
.....


All times are GMT -5. The time now is 11:15 AM.