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

启动uwsgi时出现警告:

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

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

PHPz
PHPz

学习是最好的投资!

reply all(1)
Peter_Zhu
  1. First you need to add bin in the pcre installation directory to the PATH environment variable

    export PATH=/home/sae/tools/pcre-8.39/bin:$PATH
  2. Then add the lib of the pcre installation directory to the LD_LIBRARY_PATH environment variable

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

Reference: Here, the premise is that you have installed pcre and added the bin directory to the PATH path, that is, you can run pcre-config --version successfully

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template