Software :: Unable To Link Shared Libraries While Doing Rpm Upgrade?
Mar 25, 2011
When performing rpm -Uvh, my rpm is not able to link the shared library. My rpm use shared libraries which are created by my software. when i do rpm -ivh everything is working fine My rpm creates the softlinks to the shared libraries. Now when i install the rpm using -Uvh switch which upgrade..the shared libraries are not loading.
I have an application consisting of different processes and all these processes are linked to shared libraries. I start the application (spawn all the different processes) as say user1. Now with the application up, if I run a process p1, the process gets activated and works. However, if I start the same process p1 as a different user, say user2, which is completely different from user1 the process complains of
"error while loading shared libraries:...."
I set LD_RUN_PATH both in compile and runtime environment. LD_LIBRARY_PATH is set correctly in both places.
All the above works if I set the absolute path of the required shared libraries in /etc/ld.so.conf file and rebuild the /etc/ld.so.cache
Alright, just loaded a fresh copy of OpenSuSE 11.3 x64, went to update manager and let it update, came back and computer was shut down. After booting it back up, I cannot update any software, nor run any commands.
Here is my output:
Code: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory I've tried searching for this error, some people came back saying to run this:
Code:
But all that happens is this:
Code:
Nor ls work either so I'm stuck and thinking about a reinstall.
I don't understand how this system could be so messed up after a failed update.. Used to trust SuSE, not sure anymore after this incident..
Installed Skype but it wont launch. Running the latest Opensuse Gnome. Ive uninstalled it and reinstalled several times but always with the same error. When I try to run it from terminal I get this:
ig@linux-ljqk:~> skype skype: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
Ive just now uninstalled skype and tried reinstalling it again via yast, but now I get the following error [PK_TMP_DIR|dir:///var/tmp/TmpDir.xftzR0] Repository already exists.
just installed Ubuntu 10.04 and installed the flightgear package and the fgfs-base package. I ran fgfs from a terminal and got this error:
Code: $ fgfs fgfs: error while loading shared libraries: libOpenThreads.so.12: cannot open shared object file: No such file or directory $ So then I did: Code: sudo apt-get install libopenthreads12 and it gave me these errors:
I'm trying to run Kega Fusion on my laptop, which can now FINALLY run Linux (ATI drivers finally work on it), and I can't get the emulator to work..
Code: brandon@brandon-laptop:~/Desktop/Fusion$ ./Fusion ./Fusion: error while loading shared libraries: libGLU.so.1: cannot open shared object file: No such file or directory brandon@brandon-laptop:~/Desktop/Fusion$ uname -a Linux brandon-laptop 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:20:59 UTC 2010 x86_64 GNU/Linux brandon@brandon-laptop:~/Desktop/Fusion$ Help? I have the ATI proprietary drivers installed. I tried without them and it still wouldn't work. (And OpenGL is seemingly working as Compiz Fusion is running. I also tried with Compiz disabled but the same error pops up).
I'm running lucid 32-bit. I get this error when I try to run the installer for Unreal Tournament GOTY:
Code: Verifying archive integrity... All good. Uncompressing Unreal Tournament 436-multilanguage.goty Installer. /home/computer/.setup1548: error while loading shared libraries: libgtk-1.2.so.0: cannot open shared object file: No such file or directory computer@computer-desktop:~/UnrealInstall$ I tried installing libgtk1.2 (as told by some people in other threads), but couldn't do that:
Code: E: Couldn't find package libgtk1.2 However, I checked that I do have libgtk2.0 So what should I do?
After finally getting my wireless/graphics drivers working yesterday (thanks to this forum ) I startx to realize that not a single KDE/Qt application will launch, along with Firefox, or Chrome/Chromium. (I did a full install from the DVD, not deselecting anything, and when I upgraded to -current, I also did the same.)
Ark said:
Quote:
ark: error while loading shared libraries: liblzma.so.0: cannot open shared object file: No such file or directory
but I managed to fix that one by commenting out 'aaa_elflibs' in /etc/slackpkg/blacklist (on a recommendation from #slackware), and running slackpkg upgrade-all again, but that's the only one (afaik) that was fixed. Ark still doesn't work, but it doesn't show that error anymore. When I run it, a box pops up that says "Unable to find Ark's KPart component, please check your installation."
Kate still says:
Quote:
kate: error while loading shared libraries: libkemoticons.so.4: cannot open shared object file: No such file or directory
Now, konsole, firefox, and Chromium's errors are a little different.
Konsole:
Quote:
konsole: symbol lookup error: /usr/lib/libphonon.so.4: undefined symbol: _ZN9QMetaType15registerTypedefEPKci
Firefox and Chrome basically say the same thing
Quote:
/usr/lib/firefox-3.6.13/firefox-bin: symbol lookup error: /usr/lib/mozilla/plugins/skypebuttons.so: undefined symbol: _ZN9QListData11detach_growEPii
again, I am completely baffled here, as I had kate, konsole and ark running before I upgraded to -current.
I upgrade the system from 11.1 to 11.2 seems everything work fine, no error no warning, after a reboot the consol show : mount error while loading shared libraries: libvolume_id.so.1: Cannot open shared object file: No such file or directory. when I try to repair the system the repair tool cannot find the root partion,
I installed the latest Gimp beta and it worked fine but then I couldn't open it. I removed it and I reinstalled but it didn't work, so I installed the latest stable version (no beta) and it still does not work, when I open it form Terminal, this is the response:gimp: error while loading shared libraries: libbabl-0.0.so.0: cannot open shared object file: No such file or directory
I've been trying to use the library boost/thread.hpp but I cant get it to link. Every time I try it looks like this: Code: tyler@TjLaptop01:~/Desktop$ g++ thing.CPP -o Desktop -lboost_thread /usr/bin/ld: cannot find -lboost_thread collect2: ld returned 1 exit status
I am stuck with a problem to link static libraries with gcc. There is no problem with source files since I am able to compile in a machine where the static library is installed. I am compiling with the following: Code: :~/Emotion/pjproject-1.0.3/third_party 157% gcc -Wall -I/portaudio/include -o rec patest_record.c -L./lib -lportaudio-x86_64-unknown-linux-gnu
I have a third party static library (libSTATIC.a) that I cannot recompile into a shared library. I want to create a shared library (libSHARED.so) that uses the functions in the static library libSTATIC.a. Is it possible to do this with gcc/g++?
In other words, when linking a C program with gcc/g++ by using the -shared flag, is it necessary that all libraries invoked anywhere in the program (even low level libraries such as libc for example) be available as shared libraries as well?
I have 2 questions... I couldn't find answers by Googling (more precisely, by Blackling) and in GCC documents, so I'm asking here.
1. There are 2 flags for position independent code, -fpic and -fPIC. All the examples I read use -fPIC... so when is -fpic useful and what is the difference?
2. Some tutorials use "g++ -shared" while others use "ld" for the creation of the shared library. Why? Does it matter which method I use? Is there a difference? Why does nobody mention both options?
I installed perl v5.8.5 built for i686-linux on my system recently. From that day if I want to run my vi edition I am getting the error as: Code: vim: error while loading shared libraries: libperl.so: cannot open shared object file: No such file or directory
I am using: Code: [root@station130 CORE]# uname -a Linux station130 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux
I'm trying to compile libetpan-0.57 on RedHat Enterprise Linux 5.2 64-bit and it is refusing to link against the 64 bit system libraries. I've tried everything I can think of. I've tried to hack libtool, run the command make was trying to run manually and changing the library search paths but nothing works. When I run the command make tried to run manually and change -L/usr/lib to -L/usr/lib64 most of the "skipping incompatible" library messages disappear except for "/usr/lib/libexpat.so: could not read symbols: File in wrong format." Below is the output when I run make code...
i have a notebook where i wont to install andorid SDK, I have a Debian 6, 64bit that work well.After install android sdk, i test installation but i have this
:~/android-sdk-linux_x86/tools$ ./emulator ./emulator: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory i use comand ldd :~/android-sdk-linux_x86/tools$ ldd ./emulator
A newbie trying his hand with openldap.Disclosure: I tried posting at openldap forum, but my message does not appear in the mailing list-- and I didn't receive anything back from that forum, so please don't flame.I use red hat 5.5.I didn't want to use the openldap that is bundled with and installed by the red hat, so I downloaded and installed BerkeleyDB-4.8.30 and openldap-2.4.23.
I can see that the file libdb-4.8.so is in /usr/local/lib and /usr/local/lib is in my path (in my .bashrc).. so why not "read" it from there?How do I solve this problem?
Any good tutorial on sharing dynamically allocated objects across shared libraries in the same process and between shared libaries and main(). In particular, I need to know what creation and destruction sequences are valid when libraries are being loaded and unloaded. For example, is it valid to allocate an object from inside a shared library procedure, and then delete that pointer from a different module, especially in the case where the allocating module has already been unloaded.
I imagine there might be all kinds of problems with this. Although my preliminary tests seem to work most of the time, I get crashes from time to time, but I'm not sure if they're caused by memory management or by threading issues. I've been restructuring my code to use a global context object to manage object creation and destruction from main(), but I'd like to find a clear exposition of the specific issues I'm dealing with before I go too much further.
I am having some trouble when I try to link my custom libraries to target executables. There are two libraries
liba libb
and an executable exec based on main.o The library libb has some reference to liba. Now if I put the libraries in same directories, I can compile the code as g++ -o exec main.o liba.a libb.a But, if I put the libraries in different directories, say d1 and d2, and use the command as g++ -o exec main.o d1/liba.a d2/libb.a I get an error as undefined reference to some function in liba. I am not sure if I am missing some thing in linking process. Also, if libb doesnot refer any functions in liba, there is no error in either of the case.
I get the following error: ssh-keygen: error while loading shared libraries: libssp.so.0: cannot open shared object file: No such file or directory
I know it used to work, but I'm not sure if that was on Debian, or Ubuntu (before I switched to Debian over a year ago).
Sorry if this is one of those questions with a blatantly obvious answer. I've spent hours searching the Internet for a solution, and trying various things, but to no avail.
I have even tried downloading libssp.so.0 and putting it into /lib/ and /usr/lib/, but the problem still exists. I've also tried reinstalling ssh, openssh-client, openssh-server, gcc, libc6 and several other packages after clearing Aptititudes cache. I'm aware that some of these may have absolutely nothing to do with the problem, but I am getting desperate here. I can also confirm that screaming and making threats to my monitor doesn't seem to help either. I have a screwdriver and a rather large hammer sat here to use as a last resort, but I hope it won't come to that..
I'm running openSUSE 11.0 (X86-64) and just installed skype 2.1.0.47. When starting it, I get skype: error while loading shared libraries: libQtDBus.so.4: wrong ELF class: ELFCLASS64 Where do I get the correct library from? Or which one should I point it to?
I installed octave in my OpenSUSE 11.2 KDE system from Yast. When I launch it with the command "octave" on my shell, this is the message I receive: "octave: error while loading shared libraries: liboctave.so: cannot open shared object file: No such file or directory". What's the problem? Is it a known problem to be solved in the 11.2 RC2 or I have to do something else?