我尝试在Percona 57上使用RHEL7上的ansible mysql_user模块
但是失败了
python mysqldb模块是必需的
我已经安装了完整的Percona 57
我还尝试安装yum install MySQL-python。 (1.2.3)
但是在Python中当我尝试导入MySQLdb时我得到了
ImportError:libmysqlclient.so.18:无法打开共享对象文件:没有这样的文件或目录
pip安装MySQL-python因错误而失败(1.2.5)
unable to execute gcc: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-_9GWXZ/MySQL-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-rmYnmt-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-_9GWXZ/MySQL-python
还有其他人有这个问题吗?
最佳答案
所以最后我发现这是SELinux阻塞端口> <