cassandra_snapshotter icon indicating copy to clipboard operation
cassandra_snapshotter copied to clipboard

installation fails on Ubuntu 16.04

Open matthias-otto opened this issue 7 years ago • 3 comments

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

matthias-otto avatar Jun 20 '17 09:06 matthias-otto

You are missing ssl libs, installing libssl and build-essentials should get you going or in the right direction

On Jun 20, 2017 11:43 AM, "matthias-otto" [email protected] wrote:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tbarbugli/cassandra_snapshotter/issues/108, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFanyW8WXCcn6TeFen8k4pbC59zpaaTks5sF5RJgaJpZM4N_VY3 .

tbarbugli avatar Jun 20 '17 15:06 tbarbugli

Yes, thank you ,as it turns out I was missing libssl.

Since usually an installer would also install its dependencies, it would probably be good if your installer also checked for those packages and installed them automatically if needed.

Thanks and best regards, Matthias Otto

-- incub8 Software Labs GmbH Pulverstraße 1 | 44225 Dortmund, Germany +49 (0)231 77656397 | +49 (0)1520 9395470 [email protected] | http://www.incub8.de/

Geschäftsführer: Jan Dörrenhaus | Sitz: Dortmund Registergericht: Amtsgericht Dortmund - HRB 25457 Steuernummer: 315/5748/1377 | USt.-Id.: DE287331286

Bankverbindung: Sparkasse Dortmund Kto.-Nr.: 911008424 | BLZ: 440 501 99

IBAN: DE64440501990911008424 | BIC: DORTDE33

2017-06-20 17:29 GMT+02:00 Tommaso Barbugli [email protected]:

You are missing ssl libs, installing libssl and build-essentials should get you going or in the right direction

On Jun 20, 2017 11:43 AM, "matthias-otto" [email protected] wrote:

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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tbarbugli/cassandra_snapshotter/issues/108, or mute the thread <https://github.com/notifications/unsubscribe-auth/ AAFanyW8WXCcn6TeFen8k4pbC59zpaaTks5sF5RJgaJpZM4N_VY3> .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tbarbugli/cassandra_snapshotter/issues/108#issuecomment-309796135, or mute the thread https://github.com/notifications/unsubscribe-auth/AIRnEN8ZtRYzKJq09yATGFygThHJvTOrks5sF-VPgaJpZM4N_VY3 .

matthias-otto avatar Jun 22 '17 08:06 matthias-otto

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.

dan-tcell avatar Sep 28 '17 20:09 dan-tcell