2011/2/27 Tirtha Chatterjee
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