Skip to content


Various fixes to random small Linux problems

Not enough material to make a full post, but I don’t want to waste my search results.

error while loading shared libraries: [library name]: “wrong ELF class: ELFCLASS32”

This occurs on 64 bits Linux. It means that you are attempting to use the 32 bits version of the mentioned library while the program you want to run requires the 64 bits version. The solution is obviously to install the 64 bits version of the lib. Source.

[library name]: cannot open shared object file: No such file or directory

It means that the mentioned library is missing. If you’re running on a Linux environment without administrative privilege (like, say, your lab’s cluster) and need a quick fix before the sysop installs the library properly, you can grab the library on another installation, place it in your personal folder, and add this folder to the path, like this:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/where/you/placed/the/library
Source

Posted in Linux.


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Sorry about the CAPTCHA that requires JS. If you really don't want to enable JS and still want to comment, you can send me your comment via e-mail and I'll post it for you.

Please solve the CAPTCHA below in order to fight spamWordPress CAPTCHA