Thread: [Cppcms-users] error while loading shared libraries: libcppcms.so.1: cannot open shared object file
Brought to you by:
artyom-beilis
From: Tae S. M. <tae...@gm...> - 2011-08-10 21:21:15
|
Hi there: I just installed the latest version, and now I am trying to run the Hello World example with no luck. After compiling the hello.cpp without errors, and write the config.js, I tried to run it, and I got the following error: ./hello: error while loading shared libraries: libcppcms.so.1: cannot open shared object file: No such file or directory Reviewing the output of the installation process, I found the following errors, all in the output of cmake .. / $ cmake ../ -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Warning at /usr/share/cmake-2.8/Modules/CPack.cmake:236 (MESSAGE): CPack.cmake has already been included!! Call Stack (most recent call first): booster/CMakeLists.txt:14 (include) -- Looking for ICU libraries -- ICU Found, building booster locale -- Performing Test LIBC_ICONV -- Performing Test LIBC_ICONV - Success -- Performing Test GCC_IS_GCC4 -- Performing Test GCC_IS_GCC4 - Success -- Looking for dlopen -- Looking for dlopen - not found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Performing Test BOOSTER_HAS_GCC_SYNC -- Performing Test BOOSTER_HAS_GCC_SYNC - Success -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_EXECINFO -- Performing Test BOOSTER_HAVE_EXECINFO - Success -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed -- Performing Test BOOSTER_HAVE_STDINT_H -- Performing Test BOOSTER_HAVE_STDINT_H - Success -- Performing Test BOOSTER_HAVE_INTTYPES_H -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success -- Performing Test CPPCMS_HAVE_STDINT_H -- Performing Test CPPCMS_HAVE_STDINT_H - Success -- Performing Test CPPCMS_HAVE_INTTYPES_H -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success -- Looking for atoll -- Looking for atoll - found -- Looking for _atoi64 -- Looking for _atoi64 - not found -- Looking for snprintf -- Looking for snprintf - found -- Looking for stat -- Looking for stat - found -- Looking for _stat -- Looking for _stat - not found -- Performing Test CPPCMS_HAVE_STD_WSTRING -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success -- Performing Test CPPCMS_HAVE_BSD_TM -- Performing Test CPPCMS_HAVE_BSD_TM - Success -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Failed -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed -- Performing Test CPPCMS_HAVE_GCC_TYPEOF -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success -- Looking for dlopen -- Looking for dlopen - not found -- Looking for dlopen in dl -- Looking for dlopen in dl - found -- Looking for socket -- Looking for socket - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for canonicalize_file_name -- Looking for canonicalize_file_name - found -- Configuring done -- Generating done -- Build files have been written to: /home/tae/Webs/cppcms-0.99.9/build Can that be the problem? Thanks beforehand. |
From: Daniel V. <chi...@gm...> - 2011-08-10 22:03:39
|
Hello Try with export LD_LIBRARY_PATH=/path/to/library and then ./hello -c config.js where "/path/to/library/" is the actual directory where libcppcms.so.1 lives. Good bye. On Wed, 2011-08-10 at 17:20 -0400, Tae Sandoval Murgan wrote: > Hi there: > > I just installed the latest version, and now I am trying to run the > Hello World example with no luck. > > After compiling the hello.cpp without errors, and write the config.js, > I tried to run it, and I got the following error: > > ./hello: error while loading shared libraries: libcppcms.so.1: cannot > open shared object file: No such file or directory > > Reviewing the output of the installation process, I found the > following errors, all in the output of cmake .. / > > $ cmake ../ > -- The C compiler identification is GNU > -- The CXX compiler identification is GNU > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > CMake Warning at /usr/share/cmake-2.8/Modules/CPack.cmake:236 (MESSAGE): > CPack.cmake has already been included!! > Call Stack (most recent call first): > booster/CMakeLists.txt:14 (include) > > > -- Looking for ICU libraries > -- ICU Found, building booster locale > -- Performing Test LIBC_ICONV > -- Performing Test LIBC_ICONV - Success > -- Performing Test GCC_IS_GCC4 > -- Performing Test GCC_IS_GCC4 - Success > -- Looking for dlopen > -- Looking for dlopen - not found > -- Looking for socket > -- Looking for socket - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Performing Test BOOSTER_HAS_GCC_SYNC > -- Performing Test BOOSTER_HAS_GCC_SYNC - Success > -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD > -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed > -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD > -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success > -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC > -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_EXECINFO > -- Performing Test BOOSTER_HAVE_EXECINFO - Success > -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC > -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC > -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_STDINT_H > -- Performing Test BOOSTER_HAVE_STDINT_H - Success > -- Performing Test BOOSTER_HAVE_INTTYPES_H > -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success > -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 > -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success > -- Performing Test CPPCMS_HAVE_STDINT_H > -- Performing Test CPPCMS_HAVE_STDINT_H - Success > -- Performing Test CPPCMS_HAVE_INTTYPES_H > -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success > -- Looking for atoll > -- Looking for atoll - found > -- Looking for _atoi64 > -- Looking for _atoi64 - not found > -- Looking for snprintf > -- Looking for snprintf - found > -- Looking for stat > -- Looking for stat - found > -- Looking for _stat > -- Looking for _stat - not found > -- Performing Test CPPCMS_HAVE_STD_WSTRING > -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success > -- Performing Test CPPCMS_HAVE_BSD_TM > -- Performing Test CPPCMS_HAVE_BSD_TM - Success > -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING > -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed > -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO > -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Failed > -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE > -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed > -- Performing Test CPPCMS_HAVE_GCC_TYPEOF > -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success > -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF > -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success > -- Looking for dlopen > -- Looking for dlopen - not found > -- Looking for dlopen in dl > -- Looking for dlopen in dl - found > -- Looking for socket > -- Looking for socket - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Looking for canonicalize_file_name > -- Looking for canonicalize_file_name - found > -- Configuring done > -- Generating done > -- Build files have been written to: /home/tae/Webs/cppcms-0.99.9/build > > Can that be the problem? > > Thanks beforehand. > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |
From: Tae S. M. <tae...@gm...> - 2011-08-10 22:21:02
|
I found the library: /usr/local/lib/libcppcms.so.1 But export LD_LIBRARY_PATH=/usr/local/lib/libcppcms.so.1 didn't work :( |
From: 陈抒 <csf...@gm...> - 2011-08-11 01:17:44
|
My libcppcms.so.1 is in /usr/lib foder. 陈抒 Best regards http://blog.csdn.net/sheismylife On Thu, Aug 11, 2011 at 6:14 AM, Tae Sandoval Murgan <tae...@gm...>wrote: > I found the library: /usr/local/lib/libcppcms.so.1 > > But > > export LD_LIBRARY_PATH=/usr/local/lib/libcppcms.so.1 > > didn't work :( > > > ------------------------------------------------------------------------------ > 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 > |
From: Tae S. M. <tae...@gm...> - 2011-08-11 01:40:38
|
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. |
From: 陈抒 <csf...@gm...> - 2011-08-11 02:39:10
|
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 > |
From: 陈抒 <csf...@gm...> - 2011-08-11 03:22:38
|
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 >> > > |
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> |
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 > > > |
From: kpeo <sla...@ya...> - 2011-08-11 06:18:53
|
It's usefull document on this: http://www.eyrie.org/~eagle/notes/rpath.html For analyse of your search path use "ldd -v ./application" or "ldd -ss ./application" on Solaris. Also see my previous letter about how to fix it. 11.08.2011, 01:20, "Tae Sandoval Murgan" <tae...@gm...>: > Hi there: > > I just installed the latest version, and now I am trying to run the > Hello World example with no luck. > > After compiling the hello.cpp without errors, and write the config.js, > I tried to run it, and I got the following error: > > ./hello: error while loading shared libraries: libcppcms.so.1: cannot > open shared object file: No such file or directory > > Reviewing the output of the installation process, I found the > following errors, all in the output of cmake .. / > > $ cmake ../ > -- The C compiler identification is GNU > -- The CXX compiler identification is GNU > -- Check for working C compiler: /usr/bin/gcc > -- Check for working C compiler: /usr/bin/gcc -- works > -- Detecting C compiler ABI info > -- Detecting C compiler ABI info - done > -- Check for working CXX compiler: /usr/bin/c++ > -- Check for working CXX compiler: /usr/bin/c++ -- works > -- Detecting CXX compiler ABI info > -- Detecting CXX compiler ABI info - done > CMake Warning at /usr/share/cmake-2.8/Modules/CPack.cmake:236 (MESSAGE): > CPack.cmake has already been included!! > Call Stack (most recent call first): > booster/CMakeLists.txt:14 (include) > > -- Looking for ICU libraries > -- ICU Found, building booster locale > -- Performing Test LIBC_ICONV > -- Performing Test LIBC_ICONV - Success > -- Performing Test GCC_IS_GCC4 > -- Performing Test GCC_IS_GCC4 - Success > -- Looking for dlopen > -- Looking for dlopen - not found > -- Looking for socket > -- Looking for socket - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Performing Test BOOSTER_HAS_GCC_SYNC > -- Performing Test BOOSTER_HAS_GCC_SYNC - Success > -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD > -- Performing Test BOOSTER_HAVE_GCC_BITS_EXCHANGE_AND_ADD - Failed > -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD > -- Performing Test BOOSTER_HAVE_GCC_EXT_EXCHANGE_AND_ADD - Success > -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC > -- Performing Test BOOSTER_HAVE_FREEBSD_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_EXECINFO > -- Performing Test BOOSTER_HAVE_EXECINFO - Success > -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC > -- Performing Test BOOSTER_HAVE_SOLARIS_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC > -- Performing Test BOOSTER_HAVE_MAC_OS_X_ATOMIC - Failed > -- Performing Test BOOSTER_HAVE_STDINT_H > -- Performing Test BOOSTER_HAVE_STDINT_H - Success > -- Performing Test BOOSTER_HAVE_INTTYPES_H > -- Performing Test BOOSTER_HAVE_INTTYPES_H - Success > -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 > -- Performing Test BOOSTER_AIO_HAVE_PF_INET6 - Success > -- Performing Test CPPCMS_HAVE_STDINT_H > -- Performing Test CPPCMS_HAVE_STDINT_H - Success > -- Performing Test CPPCMS_HAVE_INTTYPES_H > -- Performing Test CPPCMS_HAVE_INTTYPES_H - Success > -- Looking for atoll > -- Looking for atoll - found > -- Looking for _atoi64 > -- Looking for _atoi64 - not found > -- Looking for snprintf > -- Looking for snprintf - found > -- Looking for stat > -- Looking for stat - found > -- Looking for _stat > -- Looking for _stat - not found > -- Performing Test CPPCMS_HAVE_STD_WSTRING > -- Performing Test CPPCMS_HAVE_STD_WSTRING - Success > -- Performing Test CPPCMS_HAVE_BSD_TM > -- Performing Test CPPCMS_HAVE_BSD_TM - Success > -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING > -- Performing Test CPPCMS_HAVE_CPP0X_UXSTRING - Failed > -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO > -- Performing Test CPPCMS_HAVE_CPP_0X_AUTO - Failed > -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE > -- Performing Test CPPCMS_HAVE_CPP_0X_DECLTYPE - Failed > -- Performing Test CPPCMS_HAVE_GCC_TYPEOF > -- Performing Test CPPCMS_HAVE_GCC_TYPEOF - Success > -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF > -- Performing Test CPPCMS_HAVE_UNDERSCORE_TYPEOF - Success > -- Looking for dlopen > -- Looking for dlopen - not found > -- Looking for dlopen in dl > -- Looking for dlopen in dl - found > -- Looking for socket > -- Looking for socket - found > -- Looking for gethostbyname > -- Looking for gethostbyname - found > -- Looking for canonicalize_file_name > -- Looking for canonicalize_file_name - found > -- Configuring done > -- Generating done > -- Build files have been written to: /home/tae/Webs/cppcms-0.99.9/build > > Can that be the problem? > > Thanks beforehand. > > ------------------------------------------------------------------------------ > uberSVN's rich system and user administration capabilities and model > configuration take the hassle out of deploying and managing Subversion and > the tools developers use with it. Learn more about uberSVN and get a free > download at: http://p.sf.net/sfu/wandisco-dev2dev > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users |