this is probably me having installed the new library wrong but when I run my newly compiled program I get this error message ./main: error while loading shared libraries: libginac.so.2: cannot open shared object file: No such file or directory any ideas what might be the problem? I ran the make check after installing and it passed fine? regards peter clark ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Hi! On 05/23/2011 10:47 PM, PG CLARK wrote:
this is probably me having installed the new library wrong but when I run my newly compiled program I get this error message
./main: error while loading shared libraries: libginac.so.2: cannot open shared object file: No such file or directory
any ideas what might be the problem? I ran the make check after installing and it passed fine?
You didn't tell us about your system or how and where you installed the library. Buy maybe you do have to run ldconfig? -richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/>
Sorry thats a school boy error yes I'm running ubuntu 11.4, kernal 2.6.38-8-generic, gnome 2.32.1 (yes most of this isn't relevant but I'm going for completeness) 1.9GiB ram, AMD Athlon 64 X2 dual core processor ginac 1.6.0 was installed with the standard install commands included in the install file ./configure make sudo make install make check all tests passed my terminal after I tried ldconfig looked like this. peter@peter-ubuntu:~$ man ldconfig peter@peter-ubuntu:~$ ldconfig /sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied peter@peter-ubuntu:~$ cd Documents peter@peter-ubuntu:~/Documents$ gcc main.cpp -o main -lcln -lginac peter@peter-ubuntu:~/Documents$ ./main ./main: error while loading shared libraries: libginac.so.2: cannot open shared object file: No such file or directory For give me but prior to using this system all I did was a bit of darwin tinkering and before that MS-dos. I'm not too clear on the specifics of how linux handles it's libraries. Quoting "Richard B. Kreckel" <kreckel@ginac.de>:
You didn't tell us about your system or how and where you installed the library. Buy maybe you do have to run ldconfig?
-richy. -- Richard B. Kreckel <http://www.ginac.de/~kreckel/> _______________________________________________ GiNaC-list mailing list GiNaC-list@ginac.de https://www.cebix.net/mailman/listinfo/ginac-list
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Hi,
ginac 1.6.0 was installed with the standard install commands included in the install file ./configure make sudo make install make check
all tests passed
my terminal after I tried ldconfig looked like this.
peter@peter-ubuntu:~$ man ldconfig peter@peter-ubuntu:~$ ldconfig /sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
1. ldconfig should be run as root. 2. Actually fiddling with ldconfig is not mandatory (see below).
peter@peter-ubuntu:~$ cd Documents peter@peter-ubuntu:~/Documents$ gcc main.cpp -o main -lcln -lginac
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig # just in a case g++ main.cpp -o main `pkg-config --libs --cflags ginac` (ginac.pc sets proper -Wl,-rpath option, so there's no need to fiddle with ldconfig) By the way, this is documented in the manual: http://www.ginac.de/tutorial/Package-tools.html#Package-tools Best regards, Alexei
participants (3)
-
Alexei Sheplyakov
-
PG CLARK
-
Richard B. Kreckel