[Pythonmac-SIG] attempting a framework install... and failing... horribly.

Jack Jansen Jack.Jansen@oratrix.com
Thu, 20 Mar 2003 22:35:59 +0100


On donderdag, maa 20, 2003, at 17:51 Europe/Amsterdam,  
elmlish@netscape.net wrote:
> building 'readline' extension
> gcc -Wl,-F. -bundle -framework Python  
> build/temp.darwin-6.4-Power_Macintosh-2.3/readline.o  
> -L/usr/lib/termcap -L/sw/lib -L/usr/local/lib -lreadline -lncurses -o  
> build/lib.darwin-6.4-Power_Macintosh-2.3/readline.so
> ld: warning -L: directory name (/usr/lib/termcap) does not exist
> ld: Undefined symbols:
> _tgoto referenced from libreadline expected to be defined in libSystem
> _tputs referenced from libreadline expected to be defined in libSystem
> _tgetent referenced from libreadline expected to be defined in  
> libSystem
> _tgetflag referenced from libreadline expected to be defined in  
> libSystem
> _tgetnum referenced from libreadline expected to be defined in  
> libSystem
> _tgetstr referenced from libreadline expected to be defined in  
> libSystem

The only thing I can imagine here is that you have an old libreadline  
(installed while you were still running 10.1?). Try updating it. Also  
try cleaning out all the build stuff (the whole "build" subdirectory)  
in your Python build directory.

> /bin/chmod:  
> /Library/Frameworks/../..//Applications/MacPython-2.3/ 
> PythonLauncher.app/Contents/Resources/PythonWSource.icns: Operation  
> not permitted
> ...failed SetMode  
> <ModeOwnerGroup>/Library/Frameworks/../..//Applications/MacPython-2.3/ 
> PythonLauncher.app ...
> ** BUILD FAILED **
> make[1]: *** [install_PythonLauncher] Error 1
> make: *** [frameworkinstallapps] Error 2
> [localhost:~/desktop/python-2.3a2] iz%
> ...
> Here it looks like I just don't have permissions to build this thing,  
> but I have an admin account and the directions said not to install  
> with sudo so here I suppose the mystery continues.

This looks like part of the install was done with sudo, and part  
wasn't. I would say clean out /Applications/MacPython-2.3 and try again.
>
>
> Then after deleting all copies of Python from my mac and running  
> configure, make, make frameworkinstall, and getting errors saying my  
> build failed, I type python in the terminal and get of all things  
> python2.2 which I though I had removed!

I don't know, maybe the remove didn't work? What you can at least try  
is do a "make frameworkinstallunixtools", which puts the interpreters  
into /usr/local/bin/{python,pythonw} even though the building of the  
apps fails. Then make sure /usr/local/bin is on your $PATH, rehash, and  
try again.
--
- Jack Jansen        <Jack.Jansen@oratrix.com>         
http://www.cwi.nl/~jack -
- If I can't dance I don't want to be part of your revolution -- Emma  
Goldman -