From: email b. <ema...@ya...> - 2005-05-23 08:04:03
|
Hello, Two separate questions: ======= 1) I am wondering if it is possible to statically link to mcrypt libraries when compiling and linking my own code? I get these errors when I do: gcc -I/usr/local/include -c xx.c gcc -o xx xx.o -L/usr/local/lib -lmcrypt -static /usr/bin/ld: cannot find -lmcrypt collect2: ld returned 1 exit status make: *** [filtercmd] Error 1 Is there some kind of libmcrypt-devel kind of thing or more libraries I need to link to? ======= 2) When compiling normally (non-static), things are OK until I run my binary and get: error while loading shared libraries: libmcrypt.so.4: cannot open shared object file: No such file or directory I read this thread: http://lists.hellug.gr/pipermail/mcrypt-dev/2002/000693.html But I don't understand what this response means, and I have no other reason to think libmcrypt is mis-installed or other... I use libmcrypt every day in PHP - no errors, so I think the library is installed ok? I compiled and installed libmcrypt 2.5.7 from source. Hmmm: ldconfig -v | grep mcrypt gives me nothing though. well where does PHP find it then? how do I get libmcrypt into the loader's cache? Thanks for any pointers!! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |