Menu

Error Loading...

Help
Jeff Davis
2000-04-15
2000-04-16
  • Jeff Davis

    Jeff Davis - 2000-04-15

    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

     
    • David Sugar

      David Sugar - 2000-04-15

      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.

       
      • Jeff Davis

        Jeff Davis - 2000-04-16

        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

         
        • David Sugar

          David Sugar - 2000-04-16

          I forgot about ldconfig!  I should add that to the %post and %postun methods for the RPM spec file for Linux systems.

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.