./configure --prefix=/usr/local/python3 --enable-loadable-sqlite-extensions \
--enable-optimizations \
--enable-option-checking=fatal \
--enable-shared \
--with-system-expat
在Python的./configure脚本中,常用的–enable参数及其含义如下:
- –enable-ipv6:启用IPv6支持。
- –enable-unicode=ucs4:启用UCS-4编码的Unicode支持。
- –enable-shared:启用共享库的构建。
- –enable-optimizations:启用优化,对Python进行一些优化以提高性能。
- –enable-openssl:启用OpenSSL支持。
- –enable-threads:启用多线程支持。
- –enable-ssl-default-suites:启用默认的SSL密码套件。
这些参数可以根据你的需求进行配置,以便根据特定的功能或性能要求来构建Python。
在Python的./configure脚本中,常用的–with参数及其含义如下:
- –with-threads:指定线程库的类型,例如–with-threads=pthread。
- –with-dbmliborder:指定数据库访问库的优先顺序,例如–with-dbmliborder=gdbm:ndbm。
- –with-computed-gotos:启用computed goto优化。
- –with-ensurepip:指定ensurepip模块的安装方式,例如–with-ensurepip=upgrade。
- –with-system-expat:使用系统安装的expat库。
- –with-openssl:指定OpenSSL库的路径,例如–with-openssl=/usr/local/ssl。
这些参数可以根据你的需求进行配置,以便根据特定的功能或性能要求来构建Python。