Karim BELABAS on Mon, 29 Oct 2001 13:19:34 +0100 (MET)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: (pas d'objet)


On Fri, 26 Oct 2001, Jean-Marc Sac-Epée wrote:
> I have Pari-2.2.1 installed on Twenty computers.
>
> Today, I installed Pari-2.2.1 on a new computer, but this time, when I
> tried to compile a program, I obtain
>
> /usr//bin/ld: cannot find -lpari
>
> collect2: ld returned 1 exit status
>
> make: *** [essai3] Erreur 1
>
> I really don't understand what  the problem is!  My Makefile is simply
>
> CC = cc
> INCDIR = /usr/local/include/pari
> LIBDIR = /usr/local/lib
> CFLAGS = -O -I$(INCDIR)  -L$(LIBDIR)
>
> all:    essai3
>
> essai3:        essai3.c
>         $(CC) $(CFLAGS) -o essai3 essai3.c -lpari -lm
>
> Is there something wrong? I do not think so because this program and this
> Makefile are OK on others computers!

pari-2.2.* is an alpha version which wasn't meant for site-wide installs. The
'libpari' for these experimental versions (2.2.x series) is actually called
'libpari-2.2', so that it can coexist with a stable library.

Try to replace -lpari with -lpari-2.2. Using -lpari tries to link with
(stable) libpari which you probably have not installed on this particular
machine. (That is, if you insist on alpha-testing the unstable version, which
would be nice :-); otherwise just install pari-2.1.2)

Also your other programs (on the other twenty computers) are linked with an
older library. This may be correct, but you should check and clean up really
obsolete versions.

    Karim.
-- 
Karim Belabas                    email: Karim.Belabas@math.u-psud.fr
Dep. de Mathematiques, Bat. 425
Universite Paris-Sud             Tel: (00 33) 1 69 15 57 48
F-91405 Orsay (France)           Fax: (00 33) 1 69 15 60 19
--
PARI/GP Home Page: http://www.parigp-home.de/