Python 2.2 <-> Solaris 2.6 installation errors

Chris Wysocki news at chriswysocki.com
Wed Feb 13 02:03:14 EST 2002


I'm having the exact same problem with Python 2.2 on Solaris 7 & 8
only in my case the problem seems to be with the struct module
(possibly others if I can get past the struct module).
After the 'make' and before running 'make install' I can start Python
and import the struct module and it appears fine.  Make test also
seems fine.  However when I run 'make install' I get the same error as
Jeff.  When I try to run Python after the failure the struct  module
is no longer available.

I'm using gcc 3.0.3 and all other required packages are the current
packages from Sunfreeware.

Didn't have any of these problems building previous versions of Python
on the same machines.

Any ideas, things to try?

Chris

On Tue, 12 Feb 2002 14:54:32 -0600, Jeff Bauer <jbauer at rubic.com>
wrote:

>I'm having problems installing Python 2.2 onto
>my Solaris 2.6 workstation.
>
>I am doing the boilerplate ...
>
>  ./configure
>  make
>  make install
>
>... but it bombs, possibly because distutils
>is looking for something that isn't there?
>
>Earlier versions of Python install fine on
>this machine.
>
>-Jeff
>
>
>skipping 'rgbimg' extension (up-to-date)
>skipping 'readline' extension (up-to-date)
>WARNING: removing "readline" since importing it failed
>Traceback (most recent call last):
>  File "./setup.py", line 793, in ?
>    main()
>  File "./setup.py", line 787, in main
>    scripts = ['Tools/scripts/pydoc']
>  File "/export/home/jbauer/Python-2.2/Lib/distutils/core.py", 
>    line 138, in setup
>    dist.run_commands()
>  File "/export/home/jbauer/Python-2.2/Lib/distutils/dist.py", 
>    line 893, in run_commands
>    self.run_command(cmd)
>  File "/export/home/jbauer/Python-2.2/Lib/distutils/dist.py", 
>    line 913, in run_command
>    cmd_obj.run()
>  File "/export/home/jbauer/Python-2.2/Lib/distutils/command/build.py", 
>    line 107, in run
>    self.run_command(cmd_name)
>  File "/export/home/jbauer/Python-2.2/Lib/distutils/cmd.py", 
>    line 330, in run_command
>    self.distribution.run_command(command)
>  File "/export/home/jbauer/Python-2.2/Lib/distutils/dist.py", 
>    line 913, in run_command
>    cmd_obj.run()
>  File
>"/export/home/jbauer/Python-2.2/Lib/distutils/command/build_ext.py", 
>    line 256, in run
>    self.build_extensions()
>  File "./setup.py", line 147, in build_extensions
>    build_ext.build_extensions(self)
>  File
>"/export/home/jbauer/Python-2.2/Lib/distutils/command/build_ext.py", 
>    line 383, in build_extensions
>    self.build_extension(ext)
>  File "./setup.py", line 179, in build_extension
>    for filename in self._built_objects:
>  File "/export/home/jbauer/Python-2.2/Lib/distutils/cmd.py", 
>    line 107, in __getattr__
>    raise AttributeError, attr
>AttributeError: _built_objects
>make: *** [sharedmods] Error 1




More information about the Python-list mailing list