Menu

configure error

Help
qian
2007-11-29
2012-12-14
  • qian

    qian - 2007-11-29

    hi,

    when i make the configuration, then:

    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking for g++... g++
    checking for C++ compiler default output file name... a.out
    checking whether the C++ compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking for style of include used by make... GNU
    checking dependency style of g++... gcc3
    checking for gcc... gcc
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for ranlib... ranlib
    checking how to run the C preprocessor... gcc -E
    checking for GNU Pth... *FAILED*
    +------------------------------------------------------------------------+
    | Found pthsem 2.0.7 under /usr/local, but
    | was unable to perform a sanity execution check. This usually
    | means that the pthsem shared library libpthsem.so is present
    | but $LD_LIBRARY_PATH is incomplete to execute a Pth test.
    | In this case either disable this test via --without-pth-test,
    | or extend $LD_LIBRARY_PATH, or build pthsem as a static
    | library only via its --disable-shared Autoconf option.
    | We used the following build environment:
    |    CC="gcc"
    |    CFLAGS="-g -O2 -I/usr/local/include"
    |    LDFLAGS=" -L/usr/local/lib"
    |    LIBS=" -lpthsem"
    | See config.log for possibly more details.
    +------------------------------------------------------------------------+

    could you kindly please help me?

     
    • jef2000

      jef2000 - 2007-11-29

      I had this problem also some time ago.
      Now I always do "./configure --without-pth-test ..."

       
    • qian

      qian - 2007-11-29

      I have tried also without-pth-test, but when i try to run "linknx" under "src", i got the error:

      ./linknx: error while loading shared libraries: libpthsem.so.20: cannot open shared object file: No such file or directory

      maybe i run the wrong program?

       
    • jef2000

      jef2000 - 2007-11-29

      Hi,

      Have you executed "make install" (as root) in the pthsem source directory after compiling pthsem?
      In that case, the library should be installed in /usr/local/lib/ and you should see a bunch of libpthsem.so.* files.
      If you see these files, then I don't understand why it's not working.
      If you don't see them, pthsem is not correctly installed, or perhaps it's installed somewhere else. Try to install it once again to see where it was placed.

      Kind regards,

      Jean-François

       
    • qian

      qian - 2007-11-30

      there are some files such as below:

      libpthsem.la
      libpthsem.so
      libpthsem.so.20
      libpthsem.so.20.0.27

      and two sub-folders

      I don't know how many files mean "a bounch of", could you tell me , whether i missed some files in this folder?

       
    • qian

      qian - 2007-11-30

      I guess, the library-path is wrong.
      But i have not found which file is to configure the Path manually.
      Could you please tell me?

       
    • jef2000

      jef2000 - 2007-11-30

      Hi,

      You have to check if the directory "/usr/local/lib" (where the library is) is listed in the /etc/ld.so.conf
      If it's not, add it and launch ldconfig (as root)
      Another way to do it is to add /usr/local/lib to the LD_LIBRARY_PATH environemnt variable.
      With the bash shell, it looks like:
      export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

      Kind regards,

      Jean-François

       
    • qian

      qian - 2007-11-30

      hi,

      thank you very much for your help.
      now the program starts well like:

      starting TimerManager loop.

      is it right? Then i will try to use php to access it.

       

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.