Shedskin cannot find -lcrypto

75 views
Skip to first unread message

Righteousness

unread,
Apr 13, 2013, 1:45:30 AM4/13/13
to shedskin...@googlegroups.com
Using python 2.7.4, shedskin 0.9.3, OpenSSL installed, Windows 8 64bit.

I get an error when trying to make an extended library or executable that contains the hashlib module (specifically hashlib.md5)


"ld.exe: cannot find -lcrypto
collect2: returned 1 exit status
make *** [test] Error 1 "

I've searched my computer and can't find any file called lcrypto and google didn't turn up many results other than OpenSSL. Ideas?

Mark Dufour

unread,
Apr 15, 2013, 2:40:11 PM4/15/13
to shedskin-discuss
hello,

thanks for asking. please note that hashlib is not officially supported. I guess you took the hashlib files from examples/lib?

to get hashlib to work under windows, you probably need to find a precompiled 64-bit libcrypto dll, or compile it yourself (there seem to be quite a few pages with instructions on how to do this).

if you are compiling code for your own personal use, you may want to consider using (ubuntu) linux. it should work after installing libssl-dev ("sudo apt-get install libssl-dev").


thanks again,
mark.


--
You received this message because you are subscribed to the Google Groups "shedskin-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shedskin-discu...@googlegroups.com.
To post to this group, send email to shedskin...@googlegroups.com.
Visit this group at http://groups.google.com/group/shedskin-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
http://www.youtube.com/watch?v=E6LsfnBmdnk

John Yeung

unread,
Apr 15, 2013, 4:16:16 PM4/15/13
to shedskin...@googlegroups.com
> On Sat, Apr 13, 2013 at 7:45 AM, Righteousness <unknown....@gmail.com>
> wrote:
>>
>> Using python 2.7.4, shedskin 0.9.3, OpenSSL installed, Windows 8 64bit.

On Mon, Apr 15, 2013 at 2:40 PM, Mark Dufour <mark....@gmail.com> wrote:
>
> to get hashlib to work under windows, you probably need to find a
> precompiled 64-bit libcrypto dll, or compile it yourself (there seem to be
> quite a few pages with instructions on how to do this).

I think it's worth noting that a 32-bit Python can be installed on a
64-bit Windows. In such a situation, I believe compiled extensions
have to be built as 32-bit for use with Python.

John
Reply all
Reply to author
Forward
0 new messages