error while loading shared libraries: libcln.so.2
I've done a standard installation (no flags, no special directories) of cln 1.1.1 with gcc 2.96. After 'make check' it said 'All tests passed'. Now I can compile a cln example file, but when I want to run the binary I get the above error message. Do I have to set certain gcc flags when compiling the example file, or how can solve that problem? Thank you for your help! Wolfgang - To UNSUBSCRIBE, email to ginac-list@ginac.de with a subject of "unsubscribe".
Wolfgang wrote:
I've done a standard installation (no flags, no special directories) of cln 1.1.1 with gcc 2.96. After 'make check' it said 'All tests passed'. Now I can compile a cln example file, but when I want to run the binary I get the above error message. Do I have to set certain gcc flags when compiling the example file, or how can solve that problem?
You can add a flag like this to gcc.(GNU ld is also assumed in this example.) -Wl,-rpath,/path/to/cln/lib Another solution would be to set the LD_LIBRARY_PATH environment variable to include the directory where CLN library is located. This would allow you to move CLN easier. For example, bash: export LD_LIBRARY_PATH=/usr/local/lib:/home/me/lib csh: setenv LD_LIBRARY_PATH /usr/local/lib:/home/me/lib -- Ben Sapp Los Alamos National Laboratory email: <mailto:bsapp@lanl.gov> Phone: (505)667-3277 Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/ -- - To UNSUBSCRIBE, email to ginac-list@ginac.de with a subject of "unsubscribe".
Another solution would be to set the LD_LIBRARY_PATH environment variable to include the directory where CLN library is located. This would allow you to move CLN easier.
Thank you, Ben, for your quick answer! I set that variable, and my cln program runs fine now Here's my next problem: I cannot install Ginac: After I enter 'make', gcc 2.96 outputs numerous warnings such as /usr/local/include/readline/rltypedefs.h:73: `rl_intfunc_t` declared with an exception specification and eventually stops with error messages; ginsh_parser.yy:769: 'filename_completion_function' undeclared ginsh_parser.yy:769: 'completion_matches' undeclared ginsh_parser.yy:824: 'cannot convert char **(+) () 'to char **(*) in (const char *, int, int) assignment I have readline 4.2. Wolfgang - To UNSUBSCRIBE, email to ginac-list@ginac.de with a subject of "unsubscribe".
On Tue, 3 Jul 2001, Wolfgang Abele wrote:
Here's my next problem: I cannot install Ginac: After I enter 'make', gcc 2.96 outputs numerous warnings such as
/usr/local/include/readline/rltypedefs.h:73: `rl_intfunc_t` declared with an exception specification
Yes, this is a bug introduced by the libreadline maintainer from upstream in version 4.2. Did you compile/install it yourself or does your version come from a distribution? Distributions should have fixed this one! The problem is with a conflicting definition of __P. We recently discussed this for Debian. Here is the URL to the Debian BTS: <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=55626&archive=yes&repeatmerged=yes> IIRC this was fixed by changing the preprocessor condistionals in include/readline/rlstdc.h to this style: #if !defined (__P) # if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) # define __P(protos) protos # else # define __P(protos) () # endif #endif HTH -richy. -- Richard Kreckel <Richard.Kreckel@Uni-Mainz.DE> <http://wwwthep.physik.uni-mainz.de/~kreckel/> - To UNSUBSCRIBE, email to ginac-list@ginac.de with a subject of "unsubscribe".
participants (4)
-
Ben Sapp
-
Richard B. Kreckel
-
Wolfgang
-
Wolfgang Abele