473,544 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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_B ITS=64 -D_LARGE_FILES -D_LARGEFILE_SOU RCE=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_SOURC E" 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_B ITS=64 -D_LARGE_FILES -D_LARGEFILE_SOU RCE=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 1477

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

Similar topics

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 system for "3rd party" Haskell libraries (those not distributed with the compilers). Python's Distutils has come up a few times. The Haskell...
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 (name = "_pysimple", version = "1.0", maintainer = "AG", maintainer_email = "xxx@xx.co.uk", description = "Sample Python C++ DLL", ext_modules = ,
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 -> build/bdist.linux-i686/rpm/SOURCES
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 problems, at least the primes sample module shows a nice 25 to 30 fold speed increase over the pure python version. I used the distutils to...
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 'net that this isn't an entirely unusual thing to happen, and is likely the result of some misconfiguration on my part, or perhaps a version...
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 Studio 2005. With some few simple corrections, everything compile and Python run correctly. Unfortunately, distutils does not support...
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 reasons, but i have problems to have access to GPIO pins on the board to read and write on harware(pic, memories...) so i want to include into python a...
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 ~/pyspread in which my libraries are situated and two icons directories ~/pyspread/icons and ~/pyspread/icons/actions
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 doing wrong ? I'm using Python 2.4 on Debian Linux. ----------------------------------------------------- from distutils.core import setup
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.