Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation fails on Ubuntu 16.04 #108

Open
matthias-otto opened this issue Jun 20, 2017 · 3 comments
Open

installation fails on Ubuntu 16.04 #108

matthias-otto opened this issue Jun 20, 2017 · 3 comments

Comments

@matthias-otto
Copy link

I just started a fresh AWS machine and the installation fails with the following error:

creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o
    build/temp.linux-x86_64-2.7/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-SJXya7/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-BaYj0L-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-SJXya7/cryptography/

I entered the following commands after creating the machine:

sudo apt-get update
sudo apt-get install python-pip
sudo pip install --upgrade pip
sudo pip install cassandra_snapshotter
@tbarbugli
Copy link
Owner

tbarbugli commented Jun 20, 2017 via email

@matthias-otto
Copy link
Author

matthias-otto commented Jun 22, 2017 via email

@dan-tcell
Copy link

I had to add:
sudo apt-get install python-pip build-essential libffi-dev g++ libssl1.0.0 libssl-dev libyaml-dev libpython2.7-dev

But it really depends which AMI you are starting with. I don't think the pip installer should fetch and install the dependencies, but it could warn they are needed.

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

No branches or pull requests

3 participants