c++ - gcc: error while loading shared libraries -> looks up wrong library version -


i upgraded system (to ubuntu 13.04) , somewhere in process gcc broke :-( i'm getting exception when trying compile something:

/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../x86_64-linux-gnu/bin/as: error while loading shared libraries: libopcodes-2.22-system.so: cannot open shared object file: no such file or directory 

actually libopcodes-2.22-system.so not exist, libopcodes-2.23.2-system.so does. if symlink 2.22 2.23 gcc fails library.

so reason looking wrong version. wildly tried solve reinstalling gcc, binutils, libc6 etc., problem still exists.

how can tell gcc use correct shared library version? / gcc gets information shared libraries use?

thx

thanks guys, comments made me @ right place.

this path made me suspicious:

/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../x86_64-linux-gnu/bin/as 

i thought must symlink /usr/bin/as, exposed /usr/x86_64-linux-gnu/bin complete copy of /usr/bin - not date , therefore incorrectly linked binaries. have no idea why copy of whole bin directory there , used gcc in favor of /usr/bin.

the compiler running fine after /usr/x86_64-linux-gnu was removed. edit: better check comments before doing same.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -