473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

distutils problem: using wrong compiler and specs

I've got a system where I try to install extensions using

/usr/local/bin/python setup.py install

But, it fails when it tries to use a non-existant compiler path
and specs file. I suspect it's trying to use the compieler
that was used to build /usr/bin/python.

How do I get it to use the compiler settings that were used for
/usr/local/bin/python?

Here's an example of the failure when I try to install pygame:

~/pygame/pygame-1.7.1release ~/pygame
sh: line 1: smpeg-config: command not found
Using UNIX configuration...

WARNING, No "Setup" File Exists, Running "config.py"

Hunting dependencies...
WARNING: "smpeg-config" failed!
SDL : found 1.2.12
FONT : not found
IMAGE : not found
MIXER : not found
SMPEG : not found
NUMERIC : not found
Warning, some of the pygame dependencies were not found. Pygame can still
compile and install, but games that depend on those missing dependencies
will not run. Would you like to continue the configuration? [Y/n]:
If you get compiler errors during install, doublecheck
the compiler flags in the "Setup" file.
Continuing With "setup.py"
running build
running build_py
creating build
creating build/lib.linux-arm-2.3
creating build/lib.linux-arm-2.3/pygame
copying lib/__init__.py -build/lib.linux-arm-2.3/pygame
copying lib/color.py -build/lib.linux-arm-2.3/pygame
copying lib/colordict.py -build/lib.linux-arm-2.3/pygame
copying lib/cursors.py -build/lib.linux-arm-2.3/pygame
copying lib/locals.py -build/lib.linux-arm-2.3/pygame
copying lib/macosx.py -build/lib.linux-arm-2.3/pygame
copying lib/pkgdata.py -build/lib.linux-arm-2.3/pygame
copying lib/sprite.py -build/lib.linux-arm-2.3/pygame
copying lib/sysfont.py -build/lib.linux-arm-2.3/pygame
copying lib/version.py -build/lib.linux-arm-2.3/pygame
running build_ext
building 'pygame.base' extension
creating build/temp.linux-arm-2.3
creating build/temp.linux-arm-2.3/src

gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -I/usr/local//lib/wx/include/gtk2-unicode-debug-2.8 -I/usr/local//include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXDEBUG__ -D__WXGTK__ -pthread -fPIC -D_GNU_SOURCE= -D_REENTRANT -I/usr/local/include/SDL -I/scratchbox/tools/include/python2.3 -c src/base.c -o build/temp.linux-arm-2.3/src/base.o
In file included from /scratchbox/tools/include/python2.3/Python.h:8,
from src/pygame.h:57,
from src/base.c:24:
/scratchbox/tools/include/python2.3/pyconfig.h:831:1: warning: "_GNU_SOURCE" redefined
<command line>:9:1: warning: this is the location of the previous definition
/scratchbox/compilers/host-gcc/bin/gcc -specs=/scratchbox/compilers/host-gcc/host-gcc.specs -pthread -shared --asdf -I/usr/local//lib/wx/include/gtk2-unicode-debug-2.8 -I/usr/local//include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXDEBUG__ -D__WXGTK__ -pthread build/temp.linux-arm-2.3/src/base.o -L/usr/local/lib -lSDL -lpthread -o build/lib.linux-arm-2.3/pygame/base.so -Wl,-rpath,/usr/local/lib
unable to execute /scratchbox/compilers/host-gcc/bin/gcc: No such file or directory
error: command '/scratchbox/compilers/host-gcc/bin/gcc' failed with exit status 1
--
Nov 17 '07 #1
0 1464

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Isaac Jones | last post by:
Hello Python Community. I bring greetings from the Haskell community (http://www.haskell.org) ;) There has been a lot of discussion of late about creating a grand-unified build & distribution...
0
by: Andrew Gregory | last post by:
In Python 2.2, I compiled some C++ code on Windows (MinGW compiler) to create an extension using distutils and the following setup.py file: from distutils.core import setup, Extension setup...
0
by: Jeremy Sanders | last post by:
Hi - I'm trying to build a Psyco rpm on Fedora 1. I try the command xpc5:~/psyco-1.1.1> python setup.py bdist_rpm this fails with: .... copying dist/psyco-1.1.1.tar.gz ->...
0
by: Maarten Sneep | last post by:
I'm trying to build PyBison on Mac OS X, and I'm running into some problems with the distutils. Just for starters: PyBison requires Pyrex. This is not a problem, and Pyrex seems to work without...
0
by: Gary Cote | last post by:
>Description: I've recently compiled mysql 4.0.14 on redhat 8.0. The installation fails, however, when running mysql_install_db. I've attached a transcript below. I gather from searching the...
8
by: mg | last post by:
Hello, I try to compile Python and several packages (like Numarray) with Visual Studio 2005. I downloaded the last version of Python from Subversion, and project files are provided for Visual...
1
by: Otacon22 | last post by:
Hi all, I want to create a robot with a router board based on processor atheros 2.6, called "fonera". I have installed a version of linux, Openwrt and python and i want to use it for some...
1
by: Martin Manns | last post by:
Hi, I have the following problem with the distutils package: (I have now spent hours reading and searching the manuals and tutorials, and I am still stuck.) I have a working directory...
1
by: rocksportrocker | last post by:
Hi, I've got some problems with the following setup.py file. using "python setup.py install -f" it shows that wrap_ica.so is copied to /usr and not to ..../site-packages as I assumed. What am I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.