"error while loading shared libraries" unter Linux
-
Hallo!
Ich bin relativ neu im Bereich C++ und stehe vor folgendem Problem: Ich habe die Boost Library unter /opt/boost installiert und habe ein kleines Testprogramm erfolgreich kompiliert.
Allerdings habe ich nun das Problem, dass mein Programm die shared library nicht findet:./test: error while loading shared libraries: libboost_regex-gcc42-mt-1_36.so.1.36.0: cannot open shared object file: No such file or directory
Wie kann ich dem Programm denn sagen, dass er unter /opt/boost/lib die Library finden kann?
Vielen Dank schonmal für eure Hilfe!
-
Siehe man: ldconfig(8).
-
Vielen Dank!
Jetzt klappt es.