tbarbugli / cassandra_snapshotter

A tool to backup cassandra nodes using snapshots and incremental backups on S3
Other
222 stars 122 forks source link

installation fails on Ubuntu 16.04 #108

Open matthias-otto opened 7 years ago

matthias-otto commented 7 years ago

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 commented 7 years ago

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" notifications@github.com 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 .

matthias-otto commented 7 years ago

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 info@incub8.de | 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 notifications@github.com:

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" notifications@github.com 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 .

dan-tcell commented 6 years ago

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.