Closed zxkane closed 2 years ago
Installing dependencies of certbot failed due to below message,
certbot
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Run certificate build.
[Container] 2021/10/31 01:02:59 Running command pip3 install -i https://opentuna.cn/pypi/web/simple pyopenssl cryptography==3.3.2 -- 896 | Looking in indexes: https://opentuna.cn/pypi/web/simple 897 | Collecting pyopenssl 898 | Downloading https://opentuna.cn/pypi/web/packages/85/3a/fe3c98435856a1ed798977981f3da82d2685cf9df97e4d9546340d2b83db/pyOpenSSL-21.0.0-py2.py3-none-any.whl (55kB) 899 | Collecting cryptography==3.3.2 900 | Downloading https://opentuna.cn/pypi/web/packages/32/48/ec2a3e98d8b61d2c65e4c6905aad370049c4bd4a6b1b1d78f8983d38effe/cryptography-3.3.2-cp36-abi3-manylinux1_x86_64.whl (2.7MB) 901 | Requirement already satisfied: six>=1.5.2 in /usr/lib/python3/dist-packages (from pyopenssl) (1.12.0) 902 | Collecting cffi>=1.12 (from cryptography==3.3.2) 903 | Downloading https://opentuna.cn/pypi/web/packages/00/9e/92de7e1217ccc3d5f352ba21e52398372525765b2e0c4530e6eb2ba9282a/cffi-1.15.0.tar.gz (484kB) 904 | Collecting pycparser (from cffi>=1.12->cryptography==3.3.2) 905 | Downloading https://opentuna.cn/pypi/web/packages/ae/e7/d9c3a176ca4b02024debf82342dab36efadfc5776f9c8db077e8f6e71821/pycparser-2.20-py2.py3-none-any.whl (112kB) 906 | Building wheels for collected packages: cffi 907 | Running setup.py bdist_wheel for cffi: started 908 | Running setup.py bdist_wheel for cffi: finished with status 'error' 909 | Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-3l94swa0/cffi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-oa13bjh7 --python-tag cp37: 910 | running bdist_wheel 911 | running build 912 | running build_py 913 | creating build 914 | creating build/lib.linux-x86_64-3.7 915 | creating build/lib.linux-x86_64-3.7/cffi 916 | copying cffi/lock.py -> build/lib.linux-x86_64-3.7/cffi 917 | copying cffi/verifier.py -> build/lib.linux-x86_64-3.7/cffi 918 | copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.7/cffi 919 | copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.7/cffi 920 | copying cffi/error.py -> build/lib.linux-x86_64-3.7/cffi 921 | copying cffi/commontypes.py -> build/lib.linux-x86_64-3.7/cffi 922 | copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.7/cffi 923 | copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.7/cffi 924 | copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.7/cffi 925 | copying cffi/__init__.py -> build/lib.linux-x86_64-3.7/cffi 926 | copying cffi/api.py -> build/lib.linux-x86_64-3.7/cffi 927 | copying cffi/model.py -> build/lib.linux-x86_64-3.7/cffi 928 | copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.7/cffi 929 | copying cffi/cparser.py -> build/lib.linux-x86_64-3.7/cffi 930 | copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.7/cffi 931 | copying cffi/recompiler.py -> build/lib.linux-x86_64-3.7/cffi 932 | copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.7/cffi 933 | copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.7/cffi 934 | copying cffi/_embedding.h -> build/lib.linux-x86_64-3.7/cffi 935 | copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.7/cffi 936 | running build_ext 937 | building '_cffi_backend' extension 938 | creating build/temp.linux-x86_64-3.7 939 | creating build/temp.linux-x86_64-3.7/c 940 | x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.7/c/_cffi_backend.o 941 | c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory 942 | #include <ffi.h> 943 | ^~~~~~~ 944 | compilation terminated. 945 | error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 946 | 947 | ---------------------------------------- 948 | Failed building wheel for cffi 949 | Running setup.py clean for cffi 950 | Failed to build cffi 951 | Installing collected packages: pycparser, cffi, cryptography, pyopenssl 952 | Running setup.py install for cffi: started 953 | Running setup.py install for cffi: finished with status 'error' 954 | Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-3l94swa0/cffi/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-record-428cim13/install-record.txt --single-version-externally-managed --compile: 955 | running install 956 | running build 957 | running build_py 958 | creating build 959 | creating build/lib.linux-x86_64-3.7 960 | creating build/lib.linux-x86_64-3.7/cffi 961 | copying cffi/lock.py -> build/lib.linux-x86_64-3.7/cffi 962 | copying cffi/verifier.py -> build/lib.linux-x86_64-3.7/cffi 963 | copying cffi/vengine_cpy.py -> build/lib.linux-x86_64-3.7/cffi 964 | copying cffi/backend_ctypes.py -> build/lib.linux-x86_64-3.7/cffi 965 | copying cffi/error.py -> build/lib.linux-x86_64-3.7/cffi 966 | copying cffi/commontypes.py -> build/lib.linux-x86_64-3.7/cffi 967 | copying cffi/setuptools_ext.py -> build/lib.linux-x86_64-3.7/cffi 968 | copying cffi/cffi_opcode.py -> build/lib.linux-x86_64-3.7/cffi 969 | copying cffi/pkgconfig.py -> build/lib.linux-x86_64-3.7/cffi 970 | copying cffi/__init__.py -> build/lib.linux-x86_64-3.7/cffi 971 | copying cffi/api.py -> build/lib.linux-x86_64-3.7/cffi 972 | copying cffi/model.py -> build/lib.linux-x86_64-3.7/cffi 973 | copying cffi/ffiplatform.py -> build/lib.linux-x86_64-3.7/cffi 974 | copying cffi/cparser.py -> build/lib.linux-x86_64-3.7/cffi 975 | copying cffi/vengine_gen.py -> build/lib.linux-x86_64-3.7/cffi 976 | copying cffi/recompiler.py -> build/lib.linux-x86_64-3.7/cffi 977 | copying cffi/_cffi_include.h -> build/lib.linux-x86_64-3.7/cffi 978 | copying cffi/parse_c_type.h -> build/lib.linux-x86_64-3.7/cffi 979 | copying cffi/_embedding.h -> build/lib.linux-x86_64-3.7/cffi 980 | copying cffi/_cffi_errors.h -> build/lib.linux-x86_64-3.7/cffi 981 | running build_ext 982 | building '_cffi_backend' extension 983 | creating build/temp.linux-x86_64-3.7 984 | creating build/temp.linux-x86_64-3.7/c 985 | x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-x86_64-3.7/c/_cffi_backend.o 986 | c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory 987 | #include <ffi.h> 988 | ^~~~~~~ 989 | compilation terminated. 990 | error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
This is :bug: Bug Report
resolved
Installing dependencies of
certbot
failed due to below message,Reproduction Steps
Run certificate build.
Error Log
Environment
Other
This is :bug: Bug Report