mac编译python3.7
cd src
配置 bash configure --prefix=/-/soft/Python-3.7.4/qidizi/ --enable-shared --enable-shared --disable-ipv6 --with-openssl=/-/soft/openssl-1.0.2s/qidizi/ --with-pydebug --with-assertions --enable-loadable-sqlite-extensions CFLAGS="-I/-/soft/sqlite-autoconf-3290000/qidizi/include/ -I/-/soft/xz/qidizi/include/" LDFLAGS="-L/-/soft/sqlite-autoconf-3290000/qidizi/lib/ -L/-/soft/xz/qidizi/lib/"
,
如果添加 --enable-profiling
选项,就会出现类似如下错误,大概看了configure逻辑,好像是osx相关,暂未细看,不清楚原因
checking size of size_t... configure: error: in `/Volumes/-/soft/Python-3.7.4':
configure: error: cannot compute sizeof (size_t)
See `config.log' for more details
mac:Python-3.7.4 qidizi$
编译 make
安装 make install
操作完成
发表于 2019.12.19 14:50:24