On Mon, 29 Nov 2010, Anton Shterenlikht wrote: |I compiled some numerical libraries under my home |directory, including static and shared libs. The |shared lib is | |% ls ./src/libslatec.so.1 |./src/libslatec.so.1 |% | |Now I'd like to test shared libraries, so I do | |% gfortran45 -o test01.x test01.o qc6a.o -L./src/ -lslatec |% ./test01.x |/libexec/ld-elf.so.1: Shared object "libslatec.so.1" not found, required by "test01.x" |% | |How can I tell the executable to look for a shared library |in a specific directory? I tried setting LIBRARY_PATH, but |it didn't help. | Ooops, sorry, you must give full path of shared object, *NOT* a file name: ldconfig -m ./src in your test example.
+-------------------------------------------+ ! CANMOS ISP Network ! +-------------------------------------------+ ! Best regards ! ! Igor V. Ruzanov, network operational staff! ! e-Mail: [email protected] ! +-------------------------------------------+ _______________________________________________ [email protected] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[email protected]"
