Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get the ar command on an embedded ARM computer running linux. I want to install debian and openjdk. It is a headless system. This is a custom linux distribution provided by the hardware manufacturer.

The debian installer is missing the ar command so i tried copying the binaries from the debian package, but when running ar I get error while loading shared libraries: cannot open shared object file: No such file or directory

libbfd is also in the package. I tried linking it to /lib and /usr/lib but I get the same message when running.

What is the best way to get debian and ar on a custom linux distro?

share|improve this question
up vote 5 down vote accepted

The loader uses the hints provided by ldconfig to look for shared libraries, as well as a couple of well-known places (/lib and /usr/lib, modified appropriately for the platform).

share|improve this answer
ok. Only problem is ldconfig is not available on my box – Esben Skov Pedersen May 6 '10 at 11:14
I found the problem. The symlink was broken and I didn't notice because the shell highlighted it in a color indicating a good link. – Esben Skov Pedersen May 6 '10 at 11:30
You can also check out the /etc/ file (used by ldconfig) and the LD_LIBRARY_PATH environment variable. – David May 6 '10 at 12:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.