Thread: [Cppcms-users] error while loading shared libraries: libcppcms.so.1:
Brought to you by:
artyom-beilis
From: augustin <aug...@ov...> - 2010-07-13 08:51:53
|
Hello again, Thanks to your help, I finally could complete make test and make install successfully. Install the project... -- Install configuration: "RelWithDebInfo" -- Installing: /usr/local/lib/libcppcms.so.1.0.0 -- Installing: /usr/local/lib/libcppcms.so.1 -- Installing: /usr/local/lib/libcppcms.so -- Removed runtime path from "/usr/local/lib/libcppcms.so.1.0.0" But when following the "hello world" tutorial, I get: $ ./hello -c config.js ./hello: error while loading shared libraries: libcppcms.so.1: cannot open shared object file: No such file or directory $ ls -l /usr/local/lib/libcppcms.* /usr/local/lib/libcppcms.a /usr/local/lib/libcppcms.so -> libcppcms.so.1 /usr/local/lib/libcppcms.so.1 -> libcppcms.so.1.0.0 /usr/local/lib/libcppcms.so.1.0.0 At first, I thought it was a PATH problem, but it doesn't seem to be so: $ echo $PATH /usr/local/bin:/home/overshoot/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/overshoot/bin:/home/overshoot/bin Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-07-13 09:25:36
|
You have several options: 1. Simplest define environment variable export LD_LIBRARY_PATH=/usr/local/lib 2. Install CppCMS with prexix /usr (cmake -DCMAKE_INSTALL_PREFIX=/usr) (On Linux path for executables and shared libraries is different) 3. Update system configuration so it would search in /usr/local/lib for libraries. In /etc/ld.so.conf and rerun ldconfig READ man of ldconfig CAREFULLY!!! This is something related to installation of general libraries from sources and not something CppCMS specific. Artyom ----- Original Message ---- > > At first, I thought it was a PATH problem, but it doesn't seem to be so: > > $ echo $PATH >/usr/local/bin:/home/overshoot/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/overshoot/bin:/home/overshoot/bin >n > > |
From: augustin <aug...@ov...> - 2010-07-14 03:09:40
|
On Tuesday 13 July 2010 05:25:29 pm Artyom wrote: > You have several options: > > 1. Simplest define environment variable > > export LD_LIBRARY_PATH=/usr/local/lib > > 2. Install CppCMS with prexix /usr (cmake -DCMAKE_INSTALL_PREFIX=/usr) > > > (On Linux path for executables and shared libraries is different) > Thank you Artyom, It works! I've added a small note in the wiki: http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_build You are right to say it's not a cppcms specific problem. Still, some of the other info I added to wiki are not cppcms specific either, for example: how to find which process is blocking port 8080/1. The people who will join this project and use cppcms will have varying degrees of experience. I obviously belong to the least experienced as far as compiling stuff is concerned, and I am sure that the extra information will help future users. It'll save you time in the long run, because you won't have to answer the same question twice. A bit about myself: I am an experienced web application developer. I have been programming in PHP for 10 years. I have professionally developed Drupal modules and I know Drupal well (and that's precisely why I am interested in cppcms!! ;) Drupal is a hog and performance is always an issue!) However, I have no experience at all with C++. The few times I have had to compile stuff for my linux desktop computer, I simply followed blindly without understanding the instructions given with the software. Thus, it is often the simple things that seem obvious to you that I get stuck with. I wish your project to be very successful and others like me are bound to come, so documenting a bit more cannot hurt, I think. As I said, I am a C++ complete newbie, and this will be obvious in some of the questions I may ask in the future. But I am a quick learner. I am spending some time reading and learning from C++ tutorials and manuals available on the web. Artyom, I want to thank you again: I appreciate your making this tool available to us, and I doubly appreciate the speed with which you answer every question on the mailing list. Since I am not (yet) a great C++ developer, the least I can do is help with the wiki. Blessings, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |
From: Artyom <art...@ya...> - 2010-07-14 04:08:39
|
> > You have several options: > > > > 1. Simplest define environment variable > > > > export LD_LIBRARY_PATH=/usr/local/lib > > > > 2. Install CppCMS with prexix /usr (cmake -DCMAKE_INSTALL_PREFIX=/usr) > > > > > > (On Linux path for executables and shared libraries is different) > > > > Thank you Artyom, It works! > > I've added a small note in the wiki: > http://art-blog.no-ip.info/wikipp/en/page/cppcms_1x_build > This is not really correct, each user should decide where to install libraries, he may even want to install them to /opt/cppcms so he can easily remove them afterwards. Only packagers generally install to `/usr`. So I rolled back changed and added this to troubleshooting page with description of the issue so user can fix it even if library is installed into hist home directory. Generally most users that used any compiled library at least one know how to solve this issue/ Also the issue is common for every ELF platform like BSD, Solaris or Linux. > The people who will join this project and use cppcms will have varying degrees > > of experience. I obviously belong to the least experienced as far as compiling > > stuff is concerned, and I am sure that the extra information will help future > users. It'll save you time in the long run, because you won't have to answer > the same question twice. I agree, there lots of questions lately so updated FAQ is very useful! > > A bit about myself: I am an experienced web application developer. I have been > > programming in PHP for 10 years. I have professionally developed Drupal > modules and I know Drupal well (and that's precisely why I am interested in > cppcms!! ;) Drupal is a hog and performance is always an issue!) Your inputs would be more then wellcome. > > However, I have no experience at all with C++. The few times I have had to > compile stuff for my linux desktop computer, I simply followed blindly without > > understanding the instructions given with the software. > > Thus, it is often the simple things that seem obvious to you that I get stuck > with. I wish your project to be very successful and others like me are bound > to come, so documenting a bit more cannot hurt, I think. > CppCMS 0.99.1 is on beta stages so documentation is far from being complete, but it will be much better when the stable version will be released. > Since I am not (yet) a great C++ developer, the least I can do is help with > the wiki. This would be very useful, thanks, especially inputs from experienced web developer point of view - somebody who codes from other world. Regards, Artyom |
From: augustin <aug...@ov...> - 2010-07-14 04:44:40
|
On Wednesday 14 July 2010 12:08:32 pm Artyom wrote: > This is not really correct, each user should decide where to install > libraries, he may even want to install them to /opt/cppcms so he can > easily remove them afterwards. Only packagers generally install to `/usr`. > > So I rolled back changed and added this to troubleshooting page with > description of the issue so user can fix it even if library is installed > into hist home directory. Ok, that's great this way, too :) Thanks, Augustin. -- Friends: http://www.reuniting.info/ http://activistsolutions.org/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . |