Freebsd安装Mysql8后,python无法使用

freebsd12版本,之前pkg install python37安装py后,一切正常。然后pkg方式安装mysql8后,执行python3命令报错:

ld-elf.so.1: /usr/local/lib/libpython3.7m.so.1.0: Undefined symbol “stat@FBSD_1.5”

之后卸载py重装错误依然,安装mysql时依稀看到命令界面有安装python3.3的信息,不知道是不是这个原因导致?求解答!

Centos7.5安装python3.7.2

安装依赖

# yum install -y gcc
# yum install -y gcc-c++
# yum -y groupinstall "Development tools" 
# yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
# yum install libffi-devel -y

下载
# wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz

解压
# tar -zxvf Python-3.7.2.tgz

建一个目录存放python3程序
# mkdir /usr/local/python3

继续阅读“Centos7.5安装python3.7.2”