Support SSL for Solaris 10

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • campos

    Support SSL for Solaris 10

    Hi all,

    Last time I installed Python 2.5 by default, it didn't support SSL.
    When I tried to use HTTPS, the following error occured:
    AttributeError: 'module' object has no attribute 'ssl'

    In README file:
    ----------------------------------------------------------------------------------------------
    (a) the band-aid fix is to link the _socket module statically
    rather than dynamically (which is the default).

    To do this, run "./configure --with-threads=no" including any
    other options you need (--prefix, etc.). Then in Modules/Setup
    uncomment the lines:

    #SSL=/usr/local/ssl
    #_socket socketmodule.c \
    # -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
    # -L$(SSL)/lib -lssl -lcrypto

    and remove "local/" from the SSL variable. Finally, just run
    "make"!
    ----------------------------------------------------------------------------------------------

    I followed these steps. However I am puzzled with:
    "remove "local/" from the SSL variable"

    I tried several cases such as "/usr/ssl", "~/local/ssl", "/usr/local/
    ssl"
    All failed in building ssl module.

    How to solve it?
    Thanks in advance!

  • Trent Mick

    #2
    Re: Support SSL for Solaris 10

    campos wrote:
    Last time I installed Python 2.5 by default, it didn't support SSL.
    When I tried to use HTTPS, the following error occured:
    AttributeError: 'module' object has no attribute 'ssl'
    The ActivePython 2.5 builds for Solaris on SPARC (the "solaris8-sparc"
    build) supports OpenSSL. Note that the Solaris on *x86* ActivePython
    build does not because there were build errors for that extension that
    haven't yet been resolved.

    Explore Python solutions with ActiveState. Discover tips, tutorials, and best practices for secure, efficient Python development.


    Cheers,
    Trent

    --
    Trent Mick
    trentm at activestate.com

    Comment

    • John J. Lee

      #3
      Re: Support SSL for Solaris 10

      "campos" <huwenyan@gmail .comwrites:
      Hi all,
      >
      Last time I installed Python 2.5 by default, it didn't support SSL.
      When I tried to use HTTPS, the following error occured:
      AttributeError: 'module' object has no attribute 'ssl'
      ISTR that the sunfreeware.com 2.5 build supports that, if you have
      OpenSSL installed, assuming that by "use HTTPS" you mean "use httplib
      as an HTTPS client". At least, I needed the openssl package installed
      for some reason like getting module md5, or some such, so I assume
      that installing openssl will also give you HTTPS support in httplib.


      John

      Comment

      Working...