[PyKDE] Installation problems with Mandrake7.1

Kevin McCormick kevmccor at cox-internet.com
Sat Jan 6 20:49:48 GMT 2001


I am having trouble getting PyQt-2.2 installed.  Any help would be
appreciated. My system is Mandrake 7.1, with Python 2.0, Qt-2.2.3,
SIP-2.2, all built and then installed under /usr/local.  I have
gcc-2.95.3 and egcs-2.91.66.  I also have python-1.5.2, qt-1.4.4, and
qt-2.1, which were installed/updated with the Mandrake rpm's under
/usr/lib.  I have done some upgrading/supplementing, since my Mandrake
7.1 "Complete" distribution was lacking some apparently necessary
libraries.  I am trying to put together a python development
environment, but I am finding that the sip/disutils type packages don't
seem to install, since I am having similar troubles with wxPython. 
However, tcl/tk, Pmw, and blt2.4 have installed with no problems. 
Anyway, I get the error message:

make[3]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
(cd /tmp;
PYTHONPATH=/usr/local/lib/python2.0/site-packages:/usr/local/lib/python2.0/site-packages
pyt
hon -c "import qt")
Traceback (innermost last):
  File "<string>", line 1, in ?
  File "/usr/local/lib/python2.0/site-packages/qt.py", line 43, in ?
    import libqtc
ImportError: /usr/local/lib/libsip.so.3: undefined symbol: PyObject_Init
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
make[2]: *** [install-data-am] Error 2

I have searched my system for "libqtc" and cannot find it. I do have
libqtcmodule-2.2.so in /usr/local/lib/python2.0/site-packages/ however.

Below are some hopefully helpful messages taken from the konsole screen:
=====
[root at mars PyQt-2.2]# ldd qt/sip_helper
        libstdc++-libc6.1-2.so.3 => /usr/lib/libstdc++-libc6.1-2.so.3
(0x00131000)
        libm.so.6 => /lib/libm.so.6 (0x00180000)
        libc.so.6 => /lib/libc.so.6 (0x0019e000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00110000)

[kevin at mars PyQt-2.2]$ ldd pyuic/pyuic
        libqt.so.2 => /usr/local/qt/lib/libqt.so.2 (0x00124000)
        libstdc++-libc6.1-2.so.3 => /usr/lib/libstdc++-libc6.1-2.so.3
(0x007ee000)
        libm.so.6 => /lib/libm.so.6 (0x0083d000)
        libc.so.6 => /lib/libc.so.6 (0x0085b000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00943000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00950000)
        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x00a02000)
        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x00a0c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00110000)

[root at mars PyQt-2.2]# make install
Making install in qt
make[1]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
make[2]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
/bin/sh ../mkinstalldirs /usr/local/lib/python2.0/site-packages
/bin/sh ../libtool  --mode=install /usr/bin/install -c libqtcmodule.la
/usr/local/lib/python2.0/site-packages/libqtcmodule.la
/usr/bin/install -c .libs/libqtcmodule-2.2.so
/usr/local/lib/python2.0/site-packages/libqtcmodule-2.2.so
(cd /usr/local/lib/python2.0/site-packages && rm -f libqtcmodule.so &&
ln -s libqtcmodule-2.2.so libqtcmodule.so)
/usr/bin/install -c .libs/libqtcmodule.lai
/usr/local/lib/python2.0/site-packages/libqtcmodule.la
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib/python2.0/site-packages
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib/python2.0/site-packages

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ../mkinstalldirs /usr/local/lib/python2.0/site-packages
 /usr/bin/install -c -m 644 ./qt.py
/usr/local/lib/python2.0/site-packages/qt.py
make  install-data-hook
make[3]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
(cd /tmp;
PYTHONPATH=/usr/local/lib/python2.0/site-packages:/usr/local/lib/python2.0/site-packages
pyt
hon -c "import qt")
Traceback (innermost last):
  File "<string>", line 1, in ?
  File "/usr/local/lib/python2.0/site-packages/qt.py", line 43, in ?
    import libqtc
ImportError: /usr/local/lib/libsip.so.3: undefined symbol: PyObject_Init
make[3]: *** [install-data-hook] Error 1
make[3]: Leaving directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
make[2]: *** [install-data-am] Error 2

[root at mars PyQt-2.2]# make test
make: *** No rule to make target `test'.  Stop.
[root at mars PyQt-2.2]# make check
Making check in qt
make[1]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/kevin/downloads/tars/PyQt-2.2/qt'
Making check in examples
make[1]: Entering directory
`/home/kevin/downloads/tars/PyQt-2.2/examples'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory
`/home/kevin/downloads/tars/PyQt-2.2/examples'
Making check in doc
make[1]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2/doc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/kevin/downloads/tars/PyQt-2.2/doc'
Making check in sip
make[1]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2/sip'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/kevin/downloads/tars/PyQt-2.2/sip'
Making check in pyuic
make[1]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2/pyuic'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/kevin/downloads/tars/PyQt-2.2/pyuic'
Making check in debugger
make[1]: Entering directory
`/home/kevin/downloads/tars/PyQt-2.2/debugger'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory
`/home/kevin/downloads/tars/PyQt-2.2/debugger'
make[1]: Entering directory `/home/kevin/downloads/tars/PyQt-2.2'
make[1]: Leaving directory `/home/kevin/downloads/tars/PyQt-2.2'




More information about the PyQt mailing list