Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 8362  / 1 Year ago, fri, december 16, 2022, 5:40:36

./a.out: error while loading shared libraries: libc++.so.1: cannot open shared object file: No such file or directory



even though:



$ echo $LD_LIBRARY_PATH
/home/exe/libcxx/lib:/home/exe/llvm/lib:/usr/local/lib
$ ls /usr/local/lib
libc++.so libc++.so.1 libc++.so.1.0 python2.7 python3.2


I even copied it next to the executable, still no effect.



What am I doing wrong?


More From » filesystem

 Answers
1

You might need to run sudo ldconfig /usr/local/lib to update the dynamic linker cache. Otherwise I think the system doesn't know which libraries are available from that directory. See man ldconfig for more info.


[#30921] Friday, December 16, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cklaceowne

Total Points: 228
Total Questions: 102
Total Answers: 111

Location: Ivory Coast
Member since Sun, Mar 7, 2021
3 Years ago
;