[SciPy-user] X11 Build Problem

Cory Davis cdavis at staffmail.ed.ac.uk
Fri Aug 26 05:05:45 CDT 2005


Hi there,

Its been a while since I built scipy, but this might work ...

python setup.py build_ext --library-dirs=/usr/X11R6/lib64 install

HTH

Cory.

Alan Bromborsky wrote:
> I am trying to build SciPy on the following system:
>     Fedora Core 3 X86_64
>     Dual Opteron processors
>     Python 2.3.4
> 
> I get the error during linking that the linker cannot find -lX11.  On my 
> system it is in '/usr/X11R6/lib64'.  Note that setup_xplt.py uses 
> get_info('x11').  The actual error messages are:
> 
> */usr/bin/ld: cannot find -lX11
> collect2: ld returned 1 exit status
> /usr/bin/ld: cannot find -lX11
> collect2: ld returned 1 exit status
> error: Command "gcc -pthread -shared 
> build/temp.linux-x86_64-2.3/Lib/xplt/pygist/gistCmodule.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/gist.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/tick.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/tick60.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/engine.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/gtext.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/draw.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/draw0.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/clip.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/gread.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/gcntr.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/hlevel.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/ps.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/cgm.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/eps.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/style.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/xfancy.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/gist/xbasic.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/dir.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/files.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/fpuset.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/pathnm.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/timew.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/uevent.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/ugetc.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/umain.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/usernm.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/unix/slinks.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/colors.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/connect.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/cursors.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/errors.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/events.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/fills.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/fonts.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/images.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/lines.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/pals.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/pwin.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/resource.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/rgbread.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/textout.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/rect.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/clips.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/x11/points.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/hash.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/hash0.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/mm.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/alarms.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/pstrcpy.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/pstrncat.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/p595.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/bitrev.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/bitlrot.o 
> build/temp.linux-x86_64-2.3/Lib/xplt/src/play/all/bitmrot.o -LLib/xplt/. 
> -LLib/xplt/src -L/usr/lib -Lbuild/temp.linux-x86_64-2.3 -lX11 -lm -o 
> build/lib.linux-x86_64-2.3/scipy/xplt/gistC.so" failed with exit status 1
> 
> *Any suggestions would be appreciated!*
> 
> 
> *
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user

-- 
---------------------------------------------------
Cory Davis
Institute for Atmospheric and Environmental Science
Room 307, Crew Building, Kings Buildings,
University of Edinburgh. Edinburgh EH9 3JN
phone: +44 131 6505092
www: http://www.geos.ed.ac.uk/contacts/homes/cdavis



More information about the SciPy-user mailing list