Error when install AWS CLI

Error when install AWS CLI

七月 05, 2019

In this tutorial, I’ll show an issue when I installed AWS CLI tool in Fedora 29.

  1. According to this documentation to install AWS CLI tool.

Error snapshot:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[steven@mysql workspace]$ ./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer
...
BUILD FAILED (Fedora 29 using python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20190705113750.21451
Results logged to /tmp/python-build.20190705113750.21451.log

Last 10 log lines:
File "/tmp/tmpw0xp4zsx/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/main_parser.py", line 12, in <module>
File "/tmp/tmpw0xp4zsx/pip-18.1-py2.py3-none-any.whl/pip/_internal/commands/__init__.py", line 6, in <module>
File "/tmp/tmpw0xp4zsx/pip-18.1-py2.py3-none-any.whl/pip/_internal/commands/completion.py", line 6, in <module>
File "/tmp/tmpw0xp4zsx/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 18, in <module>
File "/tmp/tmpw0xp4zsx/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 38, in <module>
File "/tmp/tmpw0xp4zsx/pip-18.1-py2.py3-none-any.whl/pip/_internal/utils/glibc.py", line 3, in <module>
File "/tmp/python-build.20190705113750.21451/Python-3.7.2/Lib/ctypes/__init__.py", line 7, in <module>
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
make: *** [Makefile:1130: install] Error 1
Exiting due to failure

==============================================
II. Creating self-contained EBCLI installation
==============================================
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: line 51: /home/steven/.pyenv/versions/3.7.2/bin/python: No such file or directory
./aws-elastic-beanstalk-cli-setup/scripts/bundled_installer: line 28: echo_with_indentation: command not found

Solution

1
sudo dnf install libffi-devel