Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

centos 6 libcrypto.so not found #50

Open
scopenco opened this issue Jan 5, 2016 · 5 comments
Open

centos 6 libcrypto.so not found #50

scopenco opened this issue Jan 5, 2016 · 5 comments

Comments

@scopenco
Copy link

scopenco commented Jan 5, 2016

When i try to use chef library on centos 6, i get:

    import chef
  File "/usr/lib64/python2.7/site-packages/chef/__init__.py", line 5, in <module>
    from chef.api import ChefAPI, autoconfigure
  File "/usr/lib64/python2.7/site-packages/chef/api.py", line 18, in <module>
    from chef.rsa import Key
  File "/usr/lib64/python2.7/site-packages/chef/rsa.py", line 9, in <module>
    _eay = CDLL('libcrypto.so')
  File "/usr/lib64/python2.7/ctypes/__init__.py", line 360, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: libcrypto.so: cannot open shared object file: No such file or directory

package openssl098e has only these libs:

# rpm -ql openssl098e-0.9.8e-18.el6_5.2.x86_64| grep libcrypto.so
/usr/lib64/.libcrypto.so.0.9.8e.hmac
/usr/lib64/.libcrypto.so.6.hmac
/usr/lib64/libcrypto.so.0.9.8e
/usr/lib64/libcrypto.so.6

chef library installed from pip2.7
PyChef-0.2.3

@dmitrytokarev
Copy link

@scopenco pychef has six and requests dependencies:
https://github.com/coderanger/pychef/blob/master/setup.py#L32
Make sure those are installed

@coderanger
Copy link
Owner

This should be resolved in master, can you try that?

@tobmat
Copy link

tobmat commented May 25, 2016

I had this same issue in cent 7. To fix it I needed to run the following:

sudo yum install openssl-devel

Here is info on the instance:
Operating System: CentOS Linux 7 (Core)
Kernel: Linux 3.10.0-123.8.1.el7.x86_64

@foogod
Copy link

foogod commented Mar 9, 2017

I ran into this same issue, and after reading this I can confirm it appears to be fixed in master.

It looks like this has been fixed for quite a while but no new package has been published since then.. Would it be possible to get an updated package in PyPI with these fixes?

Thanks!

@jason-kane
Copy link

sudo apt install libssl-dev on ubuntu

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants