LetsEncrypt - podczas instalacji error: command 'x86 64-linux-gnu-gcc' failed with exit status 4: Różnice pomiędzy wersjami
Przejdź do nawigacji
Przejdź do wyszukiwania
(Utworzono nową stronę "Podczas instalacji klienta LetsEncrypt wyświetlany jest błąd <pre> creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7 x86_64-linux-gnu-gcc -pthrea...") |
|||
Linia 24: | Linia 24: | ||
swapon /swap1 | swapon /swap1 | ||
</pre> | </pre> | ||
Automatyczne montowanie po restarcie | |||
<pre> | |||
nano /etc/fstab | |||
</pre> | |||
<pre> | |||
/swap1 none swap sw 0 0 | |||
</pre> |
Wersja z 23:31, 29 gru 2016
Podczas instalacji klienta LetsEncrypt wyświetlany jest błąd
creating build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7 x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -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 x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions. error: command 'x86_64-linux-gnu-gcc' failed with exit status 4 ---------------------------------------- Command "/root/.local/share/letsencrypt/bin/python2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-cXBqK3/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Dp1ZaT-record/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/letsencrypt/include/site/python2.7/cryptography" failed with error code 1 in /tmp/pip-build-cXBqK3/cryptography
Aplikacja wymaga dużej ilości pamięci aby została skompilowana - dodanie swap rozwiązuje problem
Rozwiązanie
dd if=/dev/zero of=/swap1 bs=1M count=1024 mkswap /swap1 chown root:root /swap1 chmod 0600 /swap1 swapon /swap1
Automatyczne montowanie po restarcie
nano /etc/fstab
/swap1 none swap sw 0 0