Ld Library Not Found For

aneuryzma wrote:
Hi,
I'm trying to compile some sources and I get the following error message:
/bin/sh ../libtool --mode=link g++ -g -O2 -o pursuit_monitor Monitor.o MonitorParameters.o RGBcolor.o ../../pursuitbase/pursuitbase/libConnection.la ../../pursuitbase/pursuitbase/libGenericValues.la -lpthread -lnsl -lglut -lXi -lGLU -lGL
g++ -g -O2 -o pursuit_monitor Monitor.o MonitorParameters.o RGBcolor.o -Wl,-bind atload ../../pursuitbase/pursuitbase/.libs/libConnection.a ../../pursuitbase/pursuitbase/.libs/libGenericValues.a -lpthread -lnsl -lglut -lXi -lGLU -lGL
ld: library not found for -lnsl
collect2: ld returned 1 exit status
make[3]: * [pursuit_monitor] Error 1
make[2]: * [all-recursive] Error 1
make[1]: * [all] Error 2
make: * [all-recursive] Error 1
What's lnsl library ?
Is something I can remove from makefile configuration ?

The parameter '-lnsl' is a a lower-case 'L' (which describes a library to be searched) followed by the suffix of the name of the library, 'nsl'. The effect is to tell 'ld' to look for a library named 'libnsl.a' or 'libnsl.dylib'. The 'ld' command normally searches for ibraries in the directories /usr/lib and /usr/local/lib . If the 'libnsl' library is in neither of these, addition search directories can be added with the '-L' parameter.
You might try that command with the '-lnsl' parameter removed. If nothing else, it would give you a clue as to what routines were needed from the 'nsl' library, which could help you resolve the problem.
  1. Ld Library Not Found For -lgomp
  2. Ld: Library Not Found For -lssl
  3. Ld: Library Not Found For -lgfortran

Ld: library not found for -l:libtensorflowframework.1.dylib clang: error: linker command failed with exit code 1 (use -v to see invocation) Python version: 3.6.9 TF Version: 1.14.0. Any idea what could be wrong here. I tried adding additional MacOS flag -undefined dynamiclookup in the g command that prepares the.so file. Ld: library not found for -lstdc. Compilation failed while executing: ld64 Anyone else having this?

Sep 7, 2009 2:02 PM

Ld Library Not Found For -lgomp

ForLd: library not found for -lafnetworking

Ld: Library Not Found For -lssl

Hello,

Ld: library not found for -lstdc .6Ld: library not found for -lstdc .6

I have a program that compiles and runs just fine on linux but breaks with the following error on my Mac

Ld: Library Not Found For -lgfortran

ld: library not found for -lcuda
collect2: ld returned 1 exit status
make: *** [read_lib] Error 1

The last step in my Makefile is here:
gcc -o read_lib read_lib.cu.o read_and_store_library.o n_queries_mgf.o read_and_store_query.o bin_queries.o bin_library.o -L /usr/local/cuda/lib/ -lcuda -lcudart

I have added /usr/local/cuda/lib to my PATH and I have verified that the libraries are located at that path. Any tips on how to fix this problem would be greatly appreciated.

In another post someone said that you should make sure the permission on the /usr/local/cuda/lib folder are correct, I see here that libcuda is different but I don’t understand what I need to change…
-rwxrwxr-x 1 lash admin 15913168 Sep 3 01:00 libcublas.dylib
-rwxrwxr-x 1 lash admin 5444172 Sep 3 01:00 libcublasemu.dylib
-rwxr-xr-x 1 root wheel 3893996 Sep 3 00:16 libcuda.dylib
-rwxrwxr-x 1 lash admin 276652 Sep 3 01:00 libcudart.dylib
-rwxrwxr-x 1 lash admin 8481764 Sep 3 01:00 libcufft.dylib
-rwxrwxr-x 1 lash admin 1501720 Sep 3 01:00 libcufftemu.dylib
-rwxrwxr-x 1 lash admin 13100 Sep 3 01:00 libtlshook.dylib