Jean-Marc Sac-Epee on Mon, 14 Apr 2008 18:34:28 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
error while loading shared libraries |
Hello ! Always using gp-pari in gp-mode, I now need to use it in library mode. With a simple C program premier.c and the classical Makefile : CC = cc INCDIR = /usr/local/include/pari LIBDIR = /usr/local/lib CFLAGS = -O -I$(INCDIR) -L$(LIBDIR) all: premier premier: premier.c $(CC) $(CFLAGS) -o premier premier.c -lpari -lm the compilation step is OK : [jm@localhost Pari]$ makecc -O -I/usr/local/include/pari -L/usr/local/lib -o premier premier.c -lpari -lm
[jm@localhost Pari]$ But after that, I get : [jm@localhost Pari]$ ./premier./premier: error while loading shared libraries: libpari.so.2: cannot open shared object file: No such file or directory
Well, I installed Pari with ./Configure --> make --> make install and all seemed OK.
In another PC (under Linux Mandriva 2008.0), I also tried an installation with urpmi
[root@kbamur ~]# urpmi pariPour satisfaire les dépendances, les paquetages suivants vont être installés
Paquetage Version Révision Arch (média « contrib ») libpari1 2.1.7 3mdv2007.0 i586 pari 2.1.7 3mdv2007.0 i586 un espace additionnel de 9.6Mo sera utilisé. Procéder à l'installation des 2 paquetages ? (O/n) Oftp://ftp.ciril.fr/pub/linux/mandrakelinux/official/2008.0/i586/media/contrib/release/pari-2.1.7-3mdv2007.0.i586.rpm ftp://ftp.ciril.fr/pub/linux/mandrakelinux/official/2008.0/i586/media/contrib/release/libpari1-2.1.7-3mdv2007.0.i586.rpm installation de pari-2.1.7-3mdv2007.0.i586.rpm libpari1-2.1.7-3mdv2007.0.i586.rpm depuis /var/cache/urpmi/rpms Préparation ... ############################################# 1/2: libpari1 ############################################# 2/2: pari ############################################# [root@kbamur ~]# As you can see, all is OK too, but I also got a "error while loading shared libraries: libpari.so.2..." when trying to run a program.
Does anyone know what arrives ? Thank you for advance, JM -- Jean-Marc Sac-Epée, Ingénieur de Recherches en Calcul Scientifique, Laboratoire de Mathématiques, UMR 7122, Université de Metz, Tél 03 87 54 72 69 Fax 03 87 31 52 73 http://www.math.univ-metz.fr/~jmse mail: jmse@univ-metz.fr