rahul.deshmukhpatil
rahul.deshmukhpatil

Reputation: 997

How to see dynamic shared library specifications?

Which linux command shows library specs architecture and os-bits for which it is built?

Backtground: While loading shared library I am getting error "cannot open shared object: no such file or directory". With LD_DEBUG="binds" I found that loader is searching the correct lib path. I read here that it could be that library is built for other architecture(32 bit) and I am running 64 bit. so Which linux command shows library specs architecture and os-bits for which it is built?

Upvotes: 0

Views: 647

Answers (1)

Aaron Digulla
Aaron Digulla

Reputation: 328526

The file command will give you some generic info about any file. For libraries and programs, it will print the architecture it was built for.

objdump can be used for more detailed information.

Upvotes: 1

Related Questions