Menu

can't install BTManager

Help
Yoshiki-X
2005-01-14
2013-04-01
  • Yoshiki-X

    Yoshiki-X - 2005-01-14

    Hi people, I installed fedora core 3 recently and I'm a Linux newbie. I downloaded the latest version, I followed the instructions on the INSTALL file, but when I run the linprep.sh script I got an error, here is the output:

    running build
    running build_py
    creating build
    creating build/lib.linux-i686-2.3
    creating build/lib.linux-i686-2.3/BTP
    copying BTP/RPC.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Tracker.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Container.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Chooser.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Monitor.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Storage.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Network.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Utils.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Connection.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Property.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/Choker.py -> build/lib.linux-i686-2.3/BTP
    copying BTP/__init__.py -> build/lib.linux-i686-2.3/BTP
    running build_ext
    building 'BTBitField' extension
    creating build/temp.linux-i686-2.3
    gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -D_LITTLE_ENDIAN -I/usr/share/btmanager -I/usr/include/python2.3 -c BTBitField.c -o build/temp.linux-i686-2.3/BTBitField.o
    BTBitField.c:34:16: gd.h: No such file or directory
    In file included from /usr/include/python2.3/Python.h:8,
                     from BTBitField.h:34,
                     from BTBitField.c:36:
    /usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
    In file included from /usr/include/math.h:27,
                     from BTBitField.c:31:
    /usr/include/features.h:150:1: warning: this is the location of the previous definition
    BTBitField.c:63: error: syntax error before "img"
    BTBitField.c: In function `gd_vfade':
    BTBitField.c:76: error: `img' undeclared (first use in this function)
    BTBitField.c:76: error: (Each undeclared identifier is reported only once
    BTBitField.c:76: error: for each function it appears in.)
    BTBitField.c:80: error: `y' undeclared (first use in this function)
    BTBitField.c:80: error: `dy' undeclared (first use in this function)
    BTBitField.c:82: error: `coeff' undeclared (first use in this function)
    BTBitField.c:82: error: `fg' undeclared (first use in this function)
    BTBitField.c:82: error: `bg' undeclared (first use in this function)
    BTBitField.c:86: error: `x' undeclared (first use in this function)
    BTBitField.c: In function `BTBitField_progress':
    BTBitField.c:812: error: `gdImagePtr' undeclared (first use in this function)
    BTBitField.c:812: error: syntax error before "img"
    BTBitField.c:882: error: `img' undeclared (first use in this function)
    error: command 'gcc' failed with exit status 1
    cp: cannot stat `build/lib.linux-i686-2.3/*.so': No such file or directory
    Ready to go...

    Any advice would be great
    Thanks

     
    • Ezekiel

      Ezekiel - 2005-01-16

      You're missing the gd development libraries; you can find get them with 'yum install gd-devel' if your configured repositories have them, or from http://www.boutell.com/gd

       
    • Yoshiki-X

      Yoshiki-X - 2005-01-20

      Hi ezekielda, thanks for the reply, I installed gd-devel as you said me, now I'm getting a different error. Here it is:

      running build
      running build_py
      creating build
      creating build/lib.linux-i686-2.3
      creating build/lib.linux-i686-2.3/BTP
      copying BTP/RPC.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Tracker.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Container.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Chooser.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Monitor.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Storage.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Network.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Utils.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Connection.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Property.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/Choker.py -> build/lib.linux-i686-2.3/BTP
      copying BTP/__init__.py -> build/lib.linux-i686-2.3/BTP
      running build_ext
      building 'BTBitField' extension
      creating build/temp.linux-i686-2.3
      gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -D_LITTLE_ENDIAN -I/usr/share/btmanager -I/usr/include/python2.3 -c BTBitField.c -o build/temp.linux-i686-2.3/BTBitField.o
      In file included from /usr/include/python2.3/Python.h:8,
                       from BTBitField.h:34,
                       from BTBitField.c:36:
      /usr/include/python2.3/pyconfig.h:850:1: warning: "_POSIX_C_SOURCE" redefined
      In file included from /usr/include/math.h:27,
                       from BTBitField.c:31:
      /usr/include/features.h:150:1: warning: this is the location of the previous definition
      gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOURCE -fPIC -fPIC -D_LITTLE_ENDIAN -I/usr/share/btmanager -I/usr/include/python2.3 -c btpmain.c -o build/temp.linux-i686-2.3/btpmain.o
      gcc -pthread -shared build/temp.linux-i686-2.3/btpmain.o build/temp.linux-i686-2.3/BTBitField.o -lgd -lpng -lz -ljpeg -o build/lib.linux-i686-2.3/BTBitField.so
      /usr/bin/ld: cannot find -lpng
      collect2: ld returned 1 exit status
      error: command 'gcc' failed with exit status 1
      cp: cannot stat `build/lib.linux-i686-2.3/*.so': No such file or directory
      Ready to go...

      Any advice?
      Thanks in advance

       
    • Ezekiel

      Ezekiel - 2005-01-25

      You're missing another library it seems :)

      I can't remember how many I had to install to get BTManager to compile but I had the same problems you're having. Basically, what you want to do is look through the error messages you're getting and try to find something that indicates a missing library.

      In your first post, the line :
      "BTBitField.c:34:16: gd.h: No such file or directory "

      was the hint that the gd-devel lib was missing; in your second post, this line :
      "/usr/bin/ld: cannot find -lpng "

      would seem to indicate you need to install libpng-devel.

      If you run into anymore of these issues, your best bet   is probably to try to find which library seems to be missing and use "yum search <library_name>" to see if  there's a library matching that name you could install. I don't know if this is the "right" way to do things (I'm fairly new to linux too), but at least it worked for me !

      Good luck :)

       

Log in to post a comment.