[zypp-devel] Zypper Build Problem
I downloaded the libzypp and zypper source code from git and compiled it using cmake. I used the following commands -- cd libzypp mkdir build mkdir usr cd build cmake -DCMAKE_INSTALL_PREFIX=/home/tirtha/libzypp .. make make install cd ../.. cd zypper mkdir build mkdir usr mkdir etc mkdir man cd build cmake -DCMAKE_INSTALL_PREFIX=/home/tirtha/zypper/usr/ -DZYPP_PREFIX=/home/tirtha/libzypp/usr/ -DSYSCONFDIR=/home/tirtha/zypper/etc -DMANDIR=/home/tirtha/zypper/man .. make make install cd .. usr/bin/zypper se abcd it is giving this runtime error: error while loading shared libraries: libzypp.so.810: cannot open shared object file: No such file or directory I did this: cp /home/tirtha/libzypp/usr/lib/libzypp.so.810 /usr/lib And it worked. What is causing this error? How should I resolve this? Any help is welcome. -- Tirtha Chatterjee National Institue of Technology, Durgapur -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
2011/2/27 Tirtha Chatterjee <tirtha.p.chatterjee@gmail.com>:
mkdir usr mkdir etc mkdir man
Do you really need to do that? make install fails otherwise?
cd build cmake -DCMAKE_INSTALL_PREFIX=/home/tirtha/zypper/usr/ -DZYPP_PREFIX=/home/tirtha/libzypp/usr/ -DSYSCONFDIR=/home/tirtha/zypper/etc -DMANDIR=/home/tirtha/zypper/man .. make make install cd .. usr/bin/zypper se abcd
it is giving this runtime error: error while loading shared libraries: libzypp.so.810: cannot open shared object file: No such file or directory
I did this: cp /home/tirtha/libzypp/usr/lib/libzypp.so.810 /usr/lib
And it worked.
What is causing this error? How should I resolve this? Any help is welcome.
Totally normal. The "-DZYPP_PREFIX" only says it where the development files are, no information is stored for runtime but the library soname. At runtime is the dynamic linker the one that decides where it should search for the library with such soname, and /home/tirtha/libzypp/usr/lib is not in the list. You need to set LD_LIBRARY_PATH (or create an entry in /etc/ld.so.conf.d) if you want the dynamic linker to search in your home dir. -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Hi Tirtha, On 02/27/2011 03:27 PM, Tirtha Chatterjee wrote:
it is giving this runtime error: error while loading shared libraries: libzypp.so.810: cannot open shared object file: No such file or directory
I did this: cp /home/tirtha/libzypp/usr/lib/libzypp.so.810 /usr/lib
And it worked.
What is causing this error? How should I resolve this? Any help is welcome.
When executing a command, the dynamic linker does not look for libzypp.so in your /home/tirtha/libzypp/usr/lib unless you tell it to. You can tell it e.g. by dropping a file, say 'tirtha.conf', into /etc/ld.so.conf.d and adding the dir, or multiple dirs into it. You can do this also ad-hoc by writing LD_LIBRARY_PATH=/your/dir/lib:$LD_LIBRARY_PATH anycommand HTH -- cheers, jano -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (3)
-
Cristian Morales Vega
-
Jano Kuepc
-
Tirtha Chatterjee