Re: [Cppcms-users] error while loading shared libraries: libcppcms.so.1: cannot open shared object
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-08-11 08:15:10
|
Or just even simpler... During build provide cmake -DCMAKE_INSTALL_PREFIX=/usr (all other options) And it will go to /usr/lib and /usr/include Best Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ >________________________________ >From: kpeo <sla...@ya...> >To: cpp...@li... >Sent: Thursday, August 11, 2011 9:06 AM >Subject: Re: [Cppcms-users] error while loading shared libraries: libcppcms.so.1: cannot open shared object file: No such file or directory > > >Set LD_LIBRARY_PATH globally - is not a good unix practice. You can: >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); >2. set compiler options: -L /path_to_lib, -R /path_to_lib or -Wl -rpath,/path_to_lib >3. edit '/etc/ld.so.conf' or edit new file in '/etc/ld.so.conf.d' and add /path_to_lib. Then run ldconfig > >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 >11.08.2011, 07:23, "陈抒" <csf...@gm...>: >Another way is to configure your environment in ~/.bashrc file. >>LD_LIBRARY_PATH=/usr/local/lib >>then run : source ~/.bashrc >>If you want to re-install the cppcms and booster libraries,just execute 'make install' command under cppcms build folder again. >> >>陈抒 >>Best regards >>http://blog.csdn.net/sheismylife >> >> >> >>On Thu, Aug 11, 2011 at 10:38 AM, 陈抒 <csf...@gm...> wrote: >> >>Your idea is good.My way is very simple,just run the following commands: >>>sudo cp /usr/local/lib/libcppcms.* /usr/lib/ >>>I am using UBuntu. >>> >>>陈抒 >>>Best regards >>>http://blog.csdn.net/sheismylife >>> >>> >>> >>> >>>On Thu, Aug 11, 2011 at 9:40 AM, Tae Sandoval Murgan <tae...@gm...> wrote: >>> >>>On Wed, Aug 10, 2011 at 21:17, 陈抒 <csf...@gm...> wrote: >>>>> My libcppcms.so.1 is in /usr/lib foder. >>>>That's the solution. I made a symlink in that directory, and the error changed: >>>> >>>>./hello: error while loading shared libraries: libbooster.so.0: cannot >>>> >>>>open shared object file: No such file or directory >>>>I'm running Arch Linux and I'm pretty used to the repositories system. >>>>Can I specify the installation directory of libraries? If so, I would >>>>like to know a list of all the framework's files to delete them and >>>>then reinstall. >>>> >>>>Thanks, and cheers from Chile. >>>> >>>> >>>> >>>>------------------------------------------------------------------------------ >>>>Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >>>>user administration capabilities and model configuration. Take >>>>the hassle out of deploying and managing Subversion and the >>>>tools developers use with it. >>>>http://p.sf.net/sfu/wandisco-dev2dev >>>>_______________________________________________ >>>>Cppcms-users mailing list >>>>Cpp...@li... >>>>https://lists.sourceforge.net/lists/listinfo/cppcms-users >>------------------------------------------------------------------------------ >>Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >>user administration capabilities and model configuration. Take >>the hassle out of deploying and managing Subversion and the >>tools developers use with it. >>http://p.sf.net/sfu/wandisco-dev2dev >>_______________________________________________ >>Cppcms-users mailing list >>Cpp...@li... >>https://lists.sourceforge.net/lists/listinfo/cppcms-users >------------------------------------------------------------------------------ >Get a FREE DOWNLOAD! and learn more about uberSVN rich system, >user administration capabilities and model configuration. Take >the hassle out of deploying and managing Subversion and the >tools developers use with it. >http://p.sf.net/sfu/wandisco-dev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |