python - pip安装uwsgi时,如何指定使用特定的pcre安装路径
PHPz
PHPz 2017-04-18 09:20:51
0
1
466

启动uwsgi时出现警告:

!!! no internal routing support, rebuild with pcre support !!!

网上说是需要先安装pcre,我这里的情况稍有不同,我安装pcre时不是使用root安装的,所以pip安装uwsgi时肯定没找到我安装的pcre,所以想问问如何指定我自己安装的pcre路径安装uwsgi?

PHPz
PHPz

学习是最好的投资!

Antworte allen(1)
Peter_Zhu
  1. 首先需要将pcre安装目录下的bin加入PATH环境变量

    export PATH=/home/sae/tools/pcre-8.39/bin:$PATH
  2. 然后将pcre安装目录的lib加入LD_LIBRARY_PATH环境变量

    export LD_LIBRARY_PATH=/home/sae/tools/pcre-8.39/lib:$LD_LIBRARY_PATH

参照:这里,前提是你已经安装pcre并将bin目录加入到PATH路径,即你运行pcre-config --version可以成功

Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage