Re: [Cppcms-users] error while loading shared libraries: libcppcms.so.1: cannot open shared object
Brought to you by:
artyom-beilis
From: kpeo <sla...@ya...> - 2011-08-11 06:06:51
|
<div>Set LD_LIBRARY_PATH globally - is not a good unix practice. You can:</div><div>1. set it locally before running the application: LD_LIBRARY_PATH=/path_to_lib ./application (but in this case, priority of libraries searching will be for this path);</div><div>2. set compiler options: -L /path_to_lib, -R /path_to_lib or -Wl -rpath,/path_to_lib</div><div>3. edit '/etc/ld.so.conf' or edit new file in '/etc/ld.so.conf.d' and add /path_to_lib. Then run ldconfig</div><div> </div><div>I prefer 1 - when this is a single case of start application, 2 - when i can compile application by myself, 3 - when this is not a single case of start application & for usual paths like /usr/local/lib</div><div>11.08.2011, 07:23, "陈抒" <csf...@gm...>:</div><blockquote>Another way is to configure your environment in ~/.bashrc file.<div>LD_LIBRARY_PATH=/usr/local/lib</div><div>then run : source ~/.bashrc</div><div>If you want to re-install the cppcms and booster libraries,just execute 'make install' command under cppcms build folder again.</div><div><div><br />陈抒 <br />Best regards<br /><a href="http://blog.csdn.net/sheismylife" target="_blank">http://blog.csdn.net/sheismylife</a><br /> <br /><br /><div>On Thu, Aug 11, 2011 at 10:38 AM, 陈抒 <span dir="ltr"><<a href="mailto:csf...@gm...">csf...@gm...</a>></span> wrote:<br /><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid #cccccc;padding-left:1ex;"><div>Your idea is good.My way is very simple,just run the following commands:</div><div>sudo cp /usr/local/lib/libcppcms.* /usr/lib/</div><div>I am using UBuntu.</div><div><br />陈抒 <br /> Best regards<br /><a href="http://blog.csdn.net/sheismylife" target="_blank">http://blog.csdn.net/sheismylife</a><br /> <br /><br /></div><div><div> </div><div><div>On Thu, Aug 11, 2011 at 9:40 AM, Tae Sandoval Murgan <span dir="ltr"><<a href="mailto:tae...@gm..." target="_blank">tae...@gm...</a>></span> wrote:<br /><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid #cccccc;padding-left:1ex;"><div>On Wed, Aug 10, 2011 at 21:17, 陈抒 <<a href="mailto:csf...@gm..." target="_blank">csf...@gm...</a>> wrote:<br /> > My libcppcms.so.1 is in /usr/lib foder.<br /> </div>That's the solution. I made a symlink in that directory, and the error changed:<br /> <br /> ./hello: error while loading shared libraries: libbooster.so.0: cannot<br /><div>open shared object file: No such file or directory<br /> </div>I'm running Arch Linux and I'm pretty used to the repositories system.<br /> Can I specify the installation directory of libraries? If so, I would<br /> like to know a list of all the framework's files to delete them and<br /> then reinstall.<br /> <br /> Thanks, and cheers from Chile.<br /><div><div> </div><div><br /> ------------------------------------------------------------------------------<br /> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,<br /> user administration capabilities and model configuration. Take<br /> the hassle out of deploying and managing Subversion and the<br /> tools developers use with it.<br /> <a href="http://p.sf.net/sfu/wandisco-dev2dev" target="_blank">http://p.sf.net/sfu/wandisco-dev2dev</a><br /> _______________________________________________<br /> Cppcms-users mailing list<br /> <a href="mailto:Cpp...@li..." target="_blank">Cpp...@li...</a><br /> <a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a></div></div></blockquote></div></div></div></blockquote></div></div></div><p>------------------------------------------------------------------------------<br />Get a FREE DOWNLOAD! and learn more about uberSVN rich system, <br />user administration capabilities and model configuration. Take <br />the hassle out of deploying and managing Subversion and the <br />tools developers use with it. <br /><a href="http://p.sf.net/sfu/wandisco-dev2dev">http://p.sf.net/sfu/wandisco-dev2dev</a></p><p>_______________________________________________<br />Cppcms-users mailing list<br /><a href="mailto:Cpp...@li...">Cpp...@li...</a><br /><a href="https://lists.sourceforge.net/lists/listinfo/cppcms-users">https://lists.sourceforge.net/lists/listinfo/cppcms-users</a></p></blockquote> |