Here is how I installed CommonC++:
$ ./configure
...
$ make
...
$ make check
...
# make install
...
Then, I finally get a program to compile right, after reading some docs and stuff (thanks the person who replied about the threads, it is much clearer now).
Then I ran it and:
./a.out: error in loading shared libraries: libccxx-0.9.so.2: cannot open shared object file: No such file or directory
But I looked in /usr/local/lib/ and it was right there!
By the way, does anyone have info on building the sources for win32 (or at least prebuilt binaries)? I saw a makefile and configure stuff, is that for windows? I run on linux, but I need win32 compatibility.
Thanks for any help you can give.
Jeff Davis
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First, you might need to add /usr/local/lib to your /etc/ld.so.conf or alternately use --prefix=/usr, as this is where RedHat Linux systems tend to expect shared libraries to be. The GNU standard is traditionally to install things that are NOT part of the original distribution under /usr/local. Some UNIX vendors have ideas about using /opt and symlinking everywhere....
You can also directly generate a RPM with the rpm -ta option on a typical redhat system. If this is not a Linux specific question, then you might need to find your platform's equivillent of ld.so.conf or perhaps use a -L/usr/local/lib in your link flags.
As for win32, there are Visual Studio dsp project files provided. I am shortly going to begin using mingw32 under Linux to cross-compile Common C++ for Windows, however.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here is how I installed CommonC++:
$ ./configure
...
$ make
...
$ make check
...
# make install
...
Then, I finally get a program to compile right, after reading some docs and stuff (thanks the person who replied about the threads, it is much clearer now).
Then I ran it and:
./a.out: error in loading shared libraries: libccxx-0.9.so.2: cannot open shared object file: No such file or directory
But I looked in /usr/local/lib/ and it was right there!
By the way, does anyone have info on building the sources for win32 (or at least prebuilt binaries)? I saw a makefile and configure stuff, is that for windows? I run on linux, but I need win32 compatibility.
Thanks for any help you can give.
Jeff Davis
First, you might need to add /usr/local/lib to your /etc/ld.so.conf or alternately use --prefix=/usr, as this is where RedHat Linux systems tend to expect shared libraries to be. The GNU standard is traditionally to install things that are NOT part of the original distribution under /usr/local. Some UNIX vendors have ideas about using /opt and symlinking everywhere....
You can also directly generate a RPM with the rpm -ta option on a typical redhat system. If this is not a Linux specific question, then you might need to find your platform's equivillent of ld.so.conf or perhaps use a -L/usr/local/lib in your link flags.
As for win32, there are Visual Studio dsp project files provided. I am shortly going to begin using mingw32 under Linux to cross-compile Common C++ for Windows, however.
Thanks very much!
That worked. I had to also run /sbin/ldconfig (after adding /usr/local/lib to /etc/ld.so.conf ), but it works.
-Jeff Davis
I forgot about ldconfig! I should add that to the %post and %postun methods for the RPM spec file for Linux systems.