- 在centos7.6上使用rpm包安装了mysql8.0.35,现在使用pip安装MySQL-python
| |
| yum -y install wget |
| |
| wget https://bootstrap.pypa.io/get-pip.py |
| curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py |
| python get-pip.py |
- 安装报错:
EnvironmentError: mysql_config not found
| [root@slave1 yum.repos.d]# pip install MySQL-python |
| DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. |
| Collecting MySQL-python |
| Using cached MySQL-python-1.2.5.zip (108 kB) |
| ERROR: Command errored out with exit status 1: |
| command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sWhiYy/mysql-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sWhiYy/mysql-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info |
| cwd: /tmp/pip-install-sWhiYy/mysql-python/ |
| Complete output (10 lines): |
| sh: mysql_config: 未找到命令 |
| Traceback (most recent call last): |
| File "<string>", line 1, in <module> |
| File "/tmp/pip-install-sWhiYy/mysql-python/setup.py", line 17, in <module> |
| metadata, options = get_config() |
| File "setup_posix.py", line 43, in get_config |
| libs = mysql_config("libs_r") |
| File "setup_posix.py", line 25, in mysql_config |
| raise EnvironmentError("%s not found" % (mysql_config.path,)) |
| EnvironmentError: mysql_config not found |
| |
| ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. |
| |
| tar -zxvf MySQL-python-1.2.3.tar.gz |
| |
| [root@slave1 home] |
| [root@slave1 MySQL-python-1.2.3] |
| doc HISTORY metadata.cfg MySQLdb MySQL_python.egg-info pymemcompat.h setup.cfg setup_posix.py setup_windows.py tests |
| ez_setup.py MANIFEST.in _mysql.c _mysql_exceptions.py PKG-INFO README setup_common.py setup.py site.cfg |
| [root@slave1 MySQL-python-1.2.3] |
| sh: mysql_config: 未找到命令 |
| Traceback (most recent call last): |
| File "setup.py", line 15, in <module> |
| metadata, options = get_config() |
| File "/home/MySQL-python-1.2.3/setup_posix.py", line 43, in get_config |
| libs = mysql_config("libs_r") |
| File "/home/MySQL-python-1.2.3/setup_posix.py", line 24, in mysql_config |
| raise EnvironmentError("%s not found" % (mysql_config.path,)) |
| EnvironmentError: mysql_config not found |
| |
| yum -y install mysql-devel |
| |
| |
| [root@slave1 home]# rpm -qa | grep mysql |
| mysql-community-client-8.0.35-1.el7.x86_64 |
| mysql-community-common-8.0.35-1.el7.x86_64 |
| mysql-community-icu-data-files-8.0.35-1.el7.x86_64 |
| mysql-community-client-plugins-8.0.35-1.el7.x86_64 |
| mysql-community-libs-8.0.35-1.el7.x86_64 |
| mysql-community-server-8.0.35-1.el7.x86_64 |
| [root@slave1 opt] |
| mysql-community-devel-8.0.35-1.el7.x86_64.rpm |
| |
| |
| [root@slave1 opt] |
| 警告:mysql-community-devel-8.0.35-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY |
| 错误:依赖检测失败: |
| pkgconfig(openssl) 被 mysql-community-devel-8.0.35-1.el7.x86_64 需要 |
| |
| |
| [root@slave1 opt] |
| |
| |
| [root@slave1 opt] |
| 警告:mysql-community-devel-8.0.35-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID 3a79bd29: NOKEY |
| 准备中... |
| 正在升级/安装... |
| 1:mysql-community-devel-8.0.35-1.el |
- 再次安装报错:
_mysql.c:29:20: 致命错误:Python.h:没有那个文件或目录
查看详情
| [root@slave1 opt] |
| DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/ |
| Collecting MySQL-python |
| Using cached MySQL-python-1.2.5.zip (108 kB) |
| Building wheels for collected packages: MySQL-python |
| Building wheel for MySQL-python (setup.py) ... error |
| ERROR: Command errored out with exit status 1: |
| command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rEpTA1/mysql-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rEpTA1/mysql-python/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-JxHwNo |
| cwd: /tmp/pip-install-rEpTA1/mysql-python/ |
| Complete output (30 lines): |
| running bdist_wheel |
| running build |
| running build_py |
| creating build |
| creating build/lib.linux-x86_64-2.7 |
| copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.7 |
| creating build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/release.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/times.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| creating build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| running build_ext |
| building '_mysql' extension |
| creating build/temp.linux-x86_64-2.7 |
| gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -m64 |
| _mysql.c:29:20: 致命错误:Python.h:没有那个文件或目录 |
| |
| ^ |
| 编译中断。 |
| error: command 'gcc' failed with exit status 1 |
| ---------------------------------------- |
| ERROR: Failed building wheel for MySQL-python |
| Running setup.py clean for MySQL-python |
| Failed to build MySQL-python |
| Installing collected packages: MySQL-python |
| Running setup.py install for MySQL-python ... error |
| ERROR: Command errored out with exit status 1: |
| command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rEpTA1/mysql-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rEpTA1/mysql-python/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-NqT9xm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/MySQL-python |
| cwd: /tmp/pip-install-rEpTA1/mysql-python/ |
| Complete output (30 lines): |
| running install |
| running build |
| running build_py |
| creating build |
| creating build/lib.linux-x86_64-2.7 |
| copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.7 |
| creating build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/release.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/times.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| creating build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| running build_ext |
| building '_mysql' extension |
| creating build/temp.linux-x86_64-2.7 |
| gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -m64 |
| _mysql.c:29:20: 致命错误:Python.h:没有那个文件或目录 |
| |
| ^ |
| 编译中断。 |
| error: command 'gcc' failed with exit status 1 |
| ---------------------------------------- |
| ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-rEpTA1/mysql-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-rEpTA1/mysql-python/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-NqT9xm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/MySQL-python Check the logs for full command output. |
| yum -y install gcc |
| yum install python-devel |
| yum install gcc libffi-devel python-devel openssl-devel |
| yum install -y libffi-devel python-devel openssl-devel |
- 再次安装报错:
_mysql.c:44:23: 致命错误:my_config.h:没有那个文件或目录
查看详情
| [root@slave1 opt] |
| DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/ |
| Collecting MySQL-python |
| Using cached MySQL-python-1.2.5.zip (108 kB) |
| Building wheels for collected packages: MySQL-python |
| Building wheel for MySQL-python (setup.py) ... error |
| ERROR: Command errored out with exit status 1: |
| command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sOahox/mysql-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sOahox/mysql-python/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-o8pMJU |
| cwd: /tmp/pip-install-sOahox/mysql-python/ |
| Complete output (30 lines): |
| running bdist_wheel |
| running build |
| running build_py |
| creating build |
| creating build/lib.linux-x86_64-2.7 |
| copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.7 |
| creating build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/release.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/times.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| creating build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| running build_ext |
| building '_mysql' extension |
| creating build/temp.linux-x86_64-2.7 |
| gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -m64 |
| _mysql.c:44:23: 致命错误:my_config.h:没有那个文件或目录 |
| |
| ^ |
| 编译中断。 |
| error: command 'gcc' failed with exit status 1 |
| ---------------------------------------- |
| ERROR: Failed building wheel for MySQL-python |
| Running setup.py clean for MySQL-python |
| Failed to build MySQL-python |
| Installing collected packages: MySQL-python |
| Running setup.py install for MySQL-python ... error |
| ERROR: Command errored out with exit status 1: |
| command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sOahox/mysql-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sOahox/mysql-python/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-IqmjKi/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/MySQL-python |
| cwd: /tmp/pip-install-sOahox/mysql-python/ |
| Complete output (30 lines): |
| running install |
| running build |
| running build_py |
| creating build |
| creating build/lib.linux-x86_64-2.7 |
| copying _mysql_exceptions.py -> build/lib.linux-x86_64-2.7 |
| creating build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/converters.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/connections.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/cursors.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/release.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| copying MySQLdb/times.py -> build/lib.linux-x86_64-2.7/MySQLdb |
| creating build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/__init__.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/CR.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/FIELD_TYPE.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/ER.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/FLAG.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/REFRESH.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| copying MySQLdb/constants/CLIENT.py -> build/lib.linux-x86_64-2.7/MySQLdb/constants |
| running build_ext |
| building '_mysql' extension |
| creating build/temp.linux-x86_64-2.7 |
| gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/include/mysql -I/usr/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -m64 |
| _mysql.c:44:23: 致命错误:my_config.h:没有那个文件或目录 |
| |
| ^ |
| 编译中断。 |
| error: command 'gcc' failed with exit status 1 |
| ---------------------------------------- |
| ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-sOahox/mysql-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-sOahox/mysql-python/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-IqmjKi/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python2.7/MySQL-python Check the logs for full command output. |
| [root@slave1 opt]# vim /usr/include/my_config.h |
查看详情
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #ifndef MY_CONFIG_H |
| #define MY_CONFIG_H |
| |
| |
| |
| |
| |
| |
| |
| #define HAVE_LIBM 1 |
| |
| #define HAVE_LIBCRYPT 1 |
| |
| #define HAVE_LIBDL 1 |
| #define HAVE_LIBRT 1 |
| |
| |
| |
| |
| #define HAVE_ALLOCA_H 1 |
| #define HAVE_ARPA_INET_H 1 |
| #define HAVE_DLFCN_H 1 |
| #define HAVE_EXECINFO_H 1 |
| #define HAVE_FPU_CONTROL_H 1 |
| #define HAVE_GRP_H 1 |
| |
| #define HAVE_LANGINFO_H 1 |
| |
| #define HAVE_MALLOC_H 1 |
| #define HAVE_NETINET_IN_H 1 |
| #define HAVE_POLL_H 1 |
| #define HAVE_PWD_H 1 |
| #define HAVE_STRINGS_H 1 |
| #define HAVE_SYS_CDEFS_H 1 |
| #define HAVE_SYS_IOCTL_H 1 |
| #define HAVE_SYS_MMAN_H 1 |
| #define HAVE_SYS_RESOURCE_H 1 |
| #define HAVE_SYS_SELECT_H 1 |
| #define HAVE_SYS_SOCKET_H 1 |
| #define HAVE_TERM_H 1 |
| #define HAVE_TERMIOS_H 1 |
| #define HAVE_TERMIO_H 1 |
| #define HAVE_UNISTD_H 1 |
| #define HAVE_SYS_WAIT_H 1 |
| #define HAVE_SYS_PARAM_H 1 |
| #define HAVE_FNMATCH_H 1 |
| #define HAVE_SYS_UN_H 1 |
| |
| #define HAVE_SASL_SASL_H 1 |
| |
| |
| |
| |
| #define HAVE_SYS_EPOLL_H 1 |
| #define HAVE_TAILQFOREACH 1 |
| |
| |
| |
| #define HAVE_BACKTRACE 1 |
| |
| #define HAVE_INDEX 1 |
| #define HAVE_CHOWN 1 |
| #define HAVE_CUSERID 1 |
| |
| #define HAVE_FTRUNCATE 1 |
| #define HAVE_FCHMOD 1 |
| #define HAVE_FCNTL 1 |
| #define HAVE_FDATASYNC 1 |
| #define HAVE_DECL_FDATASYNC 1 |
| #define HAVE_FEDISABLEEXCEPT 1 |
| #define HAVE_FSEEKO 1 |
| #define HAVE_FSYNC 1 |
| |
| #define HAVE_GETNAMEINFO 1 |
| #define HAVE_GETPASS 1 |
| |
| #define HAVE_GETPWNAM 1 |
| #define HAVE_GETPWUID 1 |
| #define HAVE_GETRLIMIT 1 |
| #define HAVE_GETRUSAGE 1 |
| #define HAVE_INITGROUPS 1 |
| |
| #define HAVE_GETUID 1 |
| #define HAVE_GETEUID 1 |
| #define HAVE_GETGID 1 |
| #define HAVE_GETEGID 1 |
| |
| #define HAVE_MADVISE 1 |
| #define HAVE_MALLOC_INFO 1 |
| #define HAVE_MEMRCHR 1 |
| #define HAVE_MLOCK 1 |
| #define HAVE_MLOCKALL 1 |
| #define HAVE_MMAP64 1 |
| #define HAVE_POLL 1 |
| #define HAVE_POSIX_FALLOCATE 1 |
| #define HAVE_POSIX_MEMALIGN 1 |
| #define HAVE_PREAD 1 |
| #define HAVE_PTHREAD_CONDATTR_SETCLOCK 1 |
| #define HAVE_PTHREAD_SIGMASK 1 |
| |
| #define HAVE_SIGACTION 1 |
| #define HAVE_SLEEP 1 |
| #define HAVE_STPCPY 1 |
| #define HAVE_STPNCPY 1 |
| |
| |
| #define HAVE_STRSIGNAL 1 |
| |
| #define HAVE_STRSEP 1 |
| |
| #define HAVE_VASPRINTF 1 |
| #define HAVE_MEMALIGN 1 |
| #define HAVE_NL_LANGINFO 1 |
| |
| #define HAVE_EPOLL 1 |
| |
| #define HAVE_INET_NTOP 1 |
| |
| #define HAVE_TIMERADD 1 |
| #define HAVE_TIMERCLEAR 1 |
| #define HAVE_TIMERCMP 1 |
| #define HAVE_TIMERISSET 1 |
| |
| |
| #define HAVE_SYS_TIME_H 1 |
| #define HAVE_SYS_TIMES_H 1 |
| #define HAVE_TIMES 1 |
| #define HAVE_GETTIMEOFDAY 1 |
| |
| |
| #define HAVE_LRAND48 1 |
| #define GWINSZ_IN_SYS_IOCTL 1 |
| #define FIONREAD_IN_SYS_IOCTL 1 |
| |
| |
| #define HAVE_ISINF 1 |
| |
| |
| |
| #define HAVE_POSIX_TIMERS 1 |
| |
| |
| |
| |
| |
| #define SIZEOF_VOIDP 8 |
| #define SIZEOF_CHARP 8 |
| #define SIZEOF_LONG 8 |
| #define SIZEOF_SHORT 2 |
| #define SIZEOF_INT 4 |
| #define SIZEOF_LONG_LONG 8 |
| #define SIZEOF_OFF_T 8 |
| #define SIZEOF_TIME_T 8 |
| #define HAVE_ULONG 1 |
| #define HAVE_U_INT32_T 1 |
| |
| |
| #define HAVE_VISIBILITY_HIDDEN 1 |
| |
| |
| #define HAVE_CLOCK_GETTIME 1 |
| #define HAVE_CLOCK_REALTIME 1 |
| #define DNS_USE_CPU_CLOCK_FOR_ID 1 |
| #define STACK_DIRECTION -1 |
| #define TIME_WITH_SYS_TIME 1 |
| |
| #define HAVE_PAUSE_INSTRUCTION 1 |
| |
| |
| #define HAVE_ABI_CXA_DEMANGLE 1 |
| #define HAVE_BUILTIN_UNREACHABLE 1 |
| #define HAVE_BUILTIN_EXPECT 1 |
| #define HAVE_BUILTIN_STPCPY 1 |
| #define HAVE_GCC_ATOMIC_BUILTINS 1 |
| #define HAVE_GCC_SYNC_BUILTINS 1 |
| |
| #define HAVE_SYS_GETTID 1 |
| |
| |
| #define HAVE_INTEGER_PTHREAD_SELF 1 |
| #define HAVE_PTHREAD_SETNAME_NP 1 |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #define MACHINE_TYPE "x86_64" |
| |
| #define HAVE_LINUX_LARGE_PAGES 1 |
| |
| |
| #define SYSTEM_TYPE "Linux" |
| |
| |
| |
| |
| |
| |
| #define MAX_INDEXES 64U |
| |
| |
| |
| #define ENABLED_PROFILING 1 |
| |
| |
| |
| #define DEFAULT_MYSQL_HOME "/usr/local/mysql" |
| #define SHAREDIR "/usr/local/mysql/share" |
| #define DEFAULT_BASEDIR "/usr/local/mysql" |
| #define MYSQL_DATADIR "/usr/local/mysql/data" |
| #define MYSQL_KEYRINGDIR "/usr/local/mysql/keyring" |
| #define DEFAULT_CHARSET_HOME "/usr/local/mysql" |
| #define PLUGINDIR "/usr/local/mysql/lib/plugin" |
| #define DEFAULT_SYSCONFDIR "/usr/local/mysql/etc" |
| #define DEFAULT_TMPDIR P_tmpdir |
| #define INSTALL_SBINDIR "/usr/local/mysql/bin" |
| #define INSTALL_BINDIR "/usr/local/mysql/bin" |
| #define INSTALL_MYSQLSHAREDIR "/usr/local/mysql/share" |
| #define INSTALL_SHAREDIR "/usr/local/mysql/share" |
| #define INSTALL_PLUGINDIR "/usr/local/mysql/lib/plugin" |
| #define INSTALL_INCLUDEDIR "/usr/local/mysql/include" |
| #define INSTALL_MYSQLDATADIR "/usr/local/mysql/data" |
| #define INSTALL_MYSQLKEYRINGDIR "/usr/local/mysql/keyring" |
| #define INSTALL_PLUGINTESTDIR "/export/home/pb2/build/sb_0-28300276-1524216144.25/source/plugin/x//tests" |
| #define INSTALL_INFODIR "/usr/local/mysql/docs" |
| #define INSTALL_MYSQLTESTDIR "/usr/local/mysql/mysql-test" |
| #define INSTALL_DOCREADMEDIR "/usr/local/mysql/." |
| #define INSTALL_DOCDIR "/usr/local/mysql/docs" |
| #define INSTALL_MANDIR "/usr/local/mysql/man" |
| #define INSTALL_SUPPORTFILESDIR "/usr/local/mysql/support-files" |
| #define INSTALL_LIBDIR "/usr/local/mysql/lib" |
| |
| |
| |
| |
| #define HAVE_MBSTATE_T |
| #define HAVE_LANGINFO_CODESET |
| #define HAVE_WCSDUP |
| #define HAVE_WCHAR_T 1 |
| #define HAVE_WINT_T 1 |
| #define HAVE_CURSES_H 1 |
| |
| #define USE_LIBEDIT_INTERFACE 1 |
| #define HAVE_HIST_ENTRY 1 |
| |
| |
| |
| |
| |
| #define HAVE_DECL_TGOTO 1 |
| |
| |
| |
| |
| #define MYSQL_DEFAULT_CHARSET_NAME "utf8mb4" |
| #define MYSQL_DEFAULT_COLLATION_NAME "utf8mb4_0900_ai_ci" |
| |
| |
| |
| |
| #define WITH_PERFSCHEMA_STORAGE_ENGINE 1 |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #define MYSQL_VERSION_MAJOR 8 |
| #define MYSQL_VERSION_MINOR 0 |
| #define MYSQL_VERSION_PATCH 11 |
| #define MYSQL_VERSION_EXTRA "" |
| #define PACKAGE "mysql" |
| #define PACKAGE_BUGREPORT "" |
| #define PACKAGE_NAME "MySQL Server" |
| #define PACKAGE_STRING "MySQL Server 8.0.11" |
| #define PACKAGE_TARNAME "mysql" |
| #define PACKAGE_VERSION "8.0.11" |
| #define VERSION "8.0.11" |
| #define PROTOCOL_VERSION 10 |
| |
| |
| |
| |
| #define CPU_LEVEL1_DCACHE_LINESIZE 64 |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| #define HAVE_FCNTL_H 1 |
| #define HAVE_GETADDRINFO 1 |
| #define HAVE_INTTYPES_H 1 |
| |
| #ifndef _WIN32 |
| #define HAVE_SELECT 1 |
| #endif |
| #define HAVE_SIGNAL_H 1 |
| #define HAVE_STDARG_H 1 |
| #define HAVE_STDINT_H 1 |
| #define HAVE_STDLIB_H 1 |
| #define HAVE_STRDUP 1 |
| #define HAVE_STRTOK_R 1 |
| #define HAVE_STRTOLL 1 |
| #define HAVE_SYS_STAT_H 1 |
| #define HAVE_SYS_TYPES_H 1 |
| #define SIZEOF_CHAR 1 |
| |
| |
| |
| |
| #define HAVE_SOCKLEN_T 1 |
| |
| |
| #define DEFAULT_SECURE_FILE_PRIV_DIR "NULL" |
| #define HAVE_LIBNUMA 1 |
| |
| |
| |
| |
| #define SO_EXT ".so" |
| |
| #endif |
| [root@slave1 opt] |
| DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. |
| Collecting MySQL-python |
| Using cached MySQL-python-1.2.5.zip (108 kB) |
| Building wheels for collected packages: MySQL-python |
| Building wheel for MySQL-python (setup.py) ... done |
| Created wheel for MySQL-python: filename=MySQL_python-1.2.5-cp27-cp27mu-linux_x86_64.whl size=84951 sha256=65460b3d223533e84a4447ed643e9380ed9fef7e7db0f74c950db769c8a36bdc |
| Stored in directory: /root/.cache/pip/wheels/55/eb/3b/661bdcd5ca5a576f0331400468db9d5dcbda118fb6c85fd3ee |
| Successfully built MySQL-python |
| Installing collected packages: MySQL-python |
| Successfully installed MySQL-python-1.2.5 |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?