Solaris Weirdness with 2.1

Robert Roy rjroy at
Wed May 16 07:35:17 EDT 2001

On Tue, 15 May 2001 22:29:23 -0500, "Ben Wolfson"
<wolfson at> wrote:

>In article <200105151505.LAA18242 at>, "Michael P
>Collins" <mc7f+ at> wrote:
>> I've been trying to install Python 2.1 on a Solaris box and have run
>> into the following error messages during the make, any thoughts?
>I've also got what may be a Solaris-related problem (at least, it's
>happened on Solaris), so I'll piggyback.  I can compile Python just fine,
>but the following happens when I try to import the socket module:
>harper:~> tmp/python/bin/python 
>Python 2.1 (#1, May 14 2001, 21:05:03) 
>[GCC 2.95.2 19991024 (release)] on sunos5
>Type "copyright", "credits" or "license" for more information.
>>>> import socket
>Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File "/tmp/scratch/python/lib/python2.1/", line 41, in ?
>    from _socket import *
>ImportError: tmp/python/bin/python: fatal: open 
>failed: No such file or directory
>There is a -- what do I have to do to enable Python to pick
>it up?
>Barnabas T. Rumjuggler
>"Et tu, Brute?" sedulous.
> -- barry in indy, in apihna

I have had the same problem at time because I have some libraries in
non-standard locations.

If is not on one of the standard library search paths, it
won't be found. There is an environment variable that the dynamic
loader looks at that you can use set to add additional paths 

eg (under sh)


I am 99% sure I have the name of the variable right, but since I don't
have access to my office machine from home ...

Hopefully this will work for you.


More information about the Python-list mailing list