error while loading shared libraries
2229 단어 misc
[https://itsfoss.com/solve-open-shared-object-file-quick-tip/]
How To Solve: cannot open shared object file [Quick Tip]
Last updated January 12, 2019 By Abhishek Prakash 22 Comments
There is a list of common errors I often see in Ubuntu. There is problem with merge list, then there is BADSIG error, and a number of common Ubuntu update errors.
One of such common errors which I often see while installing a program from its source code is error while loading shared libraries. The full error generally looks like this:
error while loading shared libraries:cannot open shared object file: No such file or directory
For example, I was trying to use FreeRADIUS server and it showed me this error: radiusd: error while loading shared libraries:
libfreeradius-radius-2.1.10.so:
cannot open shared object file: No such file or directory
The reason behind this error is that the libraries of the program have been installed in a place where dynamic linker cannot find it.
Fix ‘cannot open shared object file: No such file or directory’ error
In this quick tutorial, I’ll show you the quickest and the easiest way to fix this error while loading shared libraries.
All you need to do is to open terminal (Ctrl+Alt+T) and type the following command: sudo /sbin/ldconfig -v
This one liner solution may not be applicable in all cases and may not fix the problem for you but till date this command has never failed me.
Now if you wonder how did this tiny command fixed this problem, you should read the man page of ldconfig which says:
ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file/etc/ld.so.conf, and in the trusted directories (/lib and/usr/lib). The cache is used by the run-time linker, ld.so or ld-linux.so. ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated.
I hope this quick fix helps you in eliminating the nasty error while loading shared libraries message in Ubuntu and other Linux.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
자바 ACM 경기 IO 페 트 르 템 플 릿 최적화
ACMer 가 자바 를 사용 할 때 시간 초과 현상 을 많이 만 났 을 거 라 고 믿 습 니 다.
오늘 CF 를 할 때 만 났 습 니 다.
$10 ^ 5 $Int 가 1s 를 초과 해서 참 을 수 없습니다.
여기에 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.
Last updated January 12, 2019 By Abhishek Prakash 22 Comments
There is a list of common errors I often see in Ubuntu. There is problem with merge list, then there is BADSIG error, and a number of common Ubuntu update errors.
One of such common errors which I often see while installing a program from its source code is error while loading shared libraries. The full error generally looks like this:
error while loading shared libraries:cannot open shared object file: No such file or directory
For example, I was trying to use FreeRADIUS server and it showed me this error:
radiusd: error while loading shared libraries:
libfreeradius-radius-2.1.10.so:
cannot open shared object file: No such file or directory
The reason behind this error is that the libraries of the program have been installed in a place where dynamic linker cannot find it.
Fix ‘cannot open shared object file: No such file or directory’ error
In this quick tutorial, I’ll show you the quickest and the easiest way to fix this error while loading shared libraries.
All you need to do is to open terminal (Ctrl+Alt+T) and type the following command:
sudo /sbin/ldconfig -v
This one liner solution may not be applicable in all cases and may not fix the problem for you but till date this command has never failed me.
Now if you wonder how did this tiny command fixed this problem, you should read the man page of ldconfig which says:
ldconfig creates the necessary links and cache to the most recent shared libraries found in the directories specified on the command line, in the file/etc/ld.so.conf, and in the trusted directories (/lib and/usr/lib). The cache is used by the run-time linker, ld.so or ld-linux.so. ldconfig checks the header and filenames of the libraries it encounters when determining which versions should have their links updated.
I hope this quick fix helps you in eliminating the nasty error while loading shared libraries message in Ubuntu and other Linux.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
자바 ACM 경기 IO 페 트 르 템 플 릿 최적화ACMer 가 자바 를 사용 할 때 시간 초과 현상 을 많이 만 났 을 거 라 고 믿 습 니 다. 오늘 CF 를 할 때 만 났 습 니 다. $10 ^ 5 $Int 가 1s 를 초과 해서 참 을 수 없습니다. 여기에 ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.