Error in compiling Python on OS X

K

Kevin

I am trying to compile Python 2.6.2 on Mac OS X 10.5.7. I have Xcode
3.1.3 installed.

The error I got is below.

$ ./configure --prefix=/Users/me/python
checking for --with-universal-archs... 32-bit
checking MACHDEP... darwin
checking EXTRAPLATDIR... $(PLATMACDIRS)
checking machine type as reported by uname -m... i386
checking for --without-gcc... no
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

Please send any ideas.
 
D

Diez B. Roggisch

Kevin said:
I am trying to compile Python 2.6.2 on Mac OS X 10.5.7. I have Xcode
3.1.3 installed.

The error I got is below.

$ ./configure --prefix=/Users/me/python

Use a framework-build.
checking for --with-universal-archs... 32-bit
checking MACHDEP... darwin
checking EXTRAPLATDIR... $(PLATMACDIRS)
checking machine type as reported by uname -m... i386
checking for --without-gcc... no
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

Please send any ideas.

What happens if you write a simple test.c like this:


int main() {
return 0;
}


and compile it with gcc on the commandline? There must be a file called
"a.out" afterwards.

diez
 
K

Kevin

Use a framework-build.



What happens if you write a simple test.c like this:

int main() {
    return 0;

}

and compile it with gcc on the commandline? There must be a file called
"a.out" afterwards.

diez

I have solved my problem. I think something was wrong with my
compiler. After I installed Xcode again, I was able to compile with
no problems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top