2009/2/11 administrator <vzu...@volny.cz> > I tried as admin with Python-3.0 in my home directory but no success yet. > Is there another help? > > Macintosh:~ admin$ export > PATH=/opt/local/bin:/opt/local/sbin:/Developer/usr/bin:$PATH > Macintosh:~ admin$ echo $PATH > > /opt/local/bin:/opt/local/sbin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/admin:/usr/local/bin:/usr/X11/bin > Macintosh:~ admin$ cd ~/Python-3.0 > Macintosh:Python-3.0 admin$ pwd > /Users/admin/Python-3.0 > Macintosh:Python-3.0 admin$ sudo ./configure --enable-framework > checking for --with-universal-archs... 32-bit > checking MACHDEP... darwin > 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. > Macintosh:Python-3.0 admin$ >
What does config.log say? > > > Regards, Vladimir Zupka > > On 10.2.2009, at 14:35, Benjamin Kaplan wrote: > > > > On Tue, Feb 10, 2009 at 4:07 AM, Vladimír Župka <vzu...@volny.cz> wrote: > >> I tried this: >> PATH=$PATH:/Developer/usr/bin >> echo $PATH >> cd /Python-3.0 >> ./configure --enable-framework >> make >> sudo make install >> >> and the result is: >> >> Macintosh:~ vzupka$ /Users/vzupka/Desktop/Python.sh ; exit; >> >> /Library/Frameworks/Python.framework/Versions/Current/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Developer/usr/bin >> checking for --with-universal-archs... 32-bit >> checking MACHDEP... darwin >> 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.* >> make: *** No targets specified and no makefile found. Stop. >> >> WARNING: Improper use of the sudo command could lead to data loss >> or the deletion of important system files. Please double-check your >> typing when using sudo. Type "man sudo" for more information. >> >> To proceed, enter your password, or type Ctrl-C to abort. >> >> Password: >> logout >> >> [Process completed] >> >> What is wrong with C compiler? Where do I find the 'config.log'? >> > > > config.log should be in Python-3.0. I believe that you have a permissions > problem. ./configure needs to generate the makefiles that tell the compiler > what to do and then the make command will create the executables. Since > you're not in your home directory, you (as a standard user) don't have > permission to write to that directory. Either move Python-3.0 to somewhere > that you have write permissions or use sudo for the whole script. > > > > Vladimir Zupka >> >> On 9.2.2009, at 16:56, Benjamin Kaplan wrote: >> >> >> >> On Mon, Feb 9, 2009 at 9:05 AM, Vladimír Župka <vzu...@volny.cz> wrote: >> >>> I have Mac OS X Leopard 10.5.6 and I downloaded and unpacked Python 3.0 >>> into a folder (/Library/Frameworks/Python.framework) and ran commands: >>> >>> cd /Library/Frameworks/Python.framework/Python-3.0 >>> python setup.py install >>> >>> and got the message reporting a syntax error: >>> >>> Macintosh:~ vzupka$ /bin/csh >>> [Macintosh:~] vzupka% cd /Library/Frameworks/Python.framework/Python-3.0 >>> [Macintosh:Frameworks/Python.framework/Python-3.0] vzupka% python >>> setup.py install >>> File "setup.py", line 232 >>> except (CCompilerError, DistutilsError) as why: >>> ^ >>> SyntaxError: invalid syntax >>> [Macintosh:Frameworks/Python.framework/Python-3.0] vzupka% >>> >>> >>> >> >> You can't use setup.py because the python 2.5 on your system (or 2.6 if >> you installed it) is incompatible with Python 3 modules. You need to compile >> Python 3 yourself. It will then automatically call setup.py to create all >> the extension modules. >> >> Just unpack the tarball anywhere and use the following commands Python 3 >> is automatically installed as python3.0, so you don't need to worry about >> overwriting the default python on the system. >> >> ./configure --enable-framework >> make >> sudo make install >> >> more complete instructions are in the Mac/README file, except substitute >> "Python 3.0" everywhere it says "MacPython 2.6". You will probably need to >> install a whole bunch of packages to compile it. configure will tell you >> about them. MacPorts (www.macports.org) and fink (www.finkproject.org) >> provide an easy way to get them. >> >> >>> Regards, >>> Vladimír Župka >>> vzu...@volny.cz >>> >>> >>> >>> >>> >>> >>> -- >>> http://mail.python.org/mailman/listinfo/python-list >>> >>> >> >> Vladimír Župka >> vzu...@volny.cz >> >> >> >> >> >> > >
-- http://mail.python.org/mailman/listinfo/python-list