KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
When running: sudo /sbin/ldconfig the following error appears: /sbin/ldconfig: /usr/local/lib/ is not a symbolic link When I run the file command, the below appears: file /usr/local/lib/ /usr/local/lib/: directory Inside /usr/local/lib/ there are three libraries that I use. I'll call them here as lib1 , lib2 and lib3 . Now, when I do an ldd on my binary it results: lib1.so => not found lib2.so => not found lib3.so => /usr/local/lib/lib3.so (0x00216000) But all of them are in the same folder as /usr/local/lib/{lib1,lib2,lib3}.so . Every time I run ldconfig , the same error appears: /usr/local/lib/ is not a symbolic link I thought /usr/local/lib should be declared twice in /etc/ld.conf.d/*.conf , but not: sudo egrep '\/usr\/local' /etc/ld.so.conf.d/* projectA.conf.old:/usr/local/projectA/lib local.conf:/usr/local/lib ld.so.conf only includes /etc/ld.so.conf.d/*.conf , so this *.old isn't processed, and it refers to /usr/local/projectA/lib . After a time trying I deleted all lib1 and lib2 (at some point I tested it on binary's folder), the same error occurs.
Tags (comma-separated)
Save Edits
Cancel