这是我第一次尝试以普通用户(非root用户)的身份在我的计算机上本地安装Apache HTTP服务器。
我已经下载了Apache HTTP服务器http://httpd.apache.org/download.cgi.的Apache2.4.1版本然而,当我尝试在我的机器中本地构建和安装时,我得到了以下错误:
httpd/httpd-2.4.1 1059> ./configure
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking for grep that handles l
我正在尝试用下面的配置选项编译Nginx,但它总是失败,并出现错误:
checking for kqueue AIO support ... not found
checking for Linux AIO support ... not found
checking for Linux AIO support (SYS_eventfd) ... not found
./configure: no supported file AIO was found
Currently file AIO is supported on FreeBSD 4.3+ and Linux 2.6.22+ on
我在使用Apache的CentOS系统上有一个工作设置,以及支持库(如PCRE、Apr、Apr-util等)。这是使用一个shell脚本完成的,该脚本将自定义补丁应用于源代码,使用MAKE配置、构建和安装这些库。
这些库中的每一个都是使用指定的步骤构建的,除了向src添加补丁之外,没有什么不同的操作。
问题始于4月-util的最新更新(1.6.x)。在运行Apr-util配置时,我得到了以下错误:
checking for pcre-config... false
configure: error: pcre-config for libpcre not found. PCRE is requ
我刚刚安装完Ubuntu 13.10。
我想尝试Phalcon,当我构建源代码(phalcon.so)时,我得到了这个错误:
from /home/fabrice/Downloads/cphalcon/build/32bits/phalcon.c:204:
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
#include "pcre.h"
^
compilation terminated.
mak
知道如何在OpenShift / RHEL上获得pcre (和pcre-devel)库吗?我不能通过百胜直接安装软件包。
就上下文而言,我试图在openshift上安装我的Yesod/haskell应用程序,并且在“阴谋安装”过程中遇到了这个pcre依赖项的麻烦。
remote: Configuring pcre-light-0.4.0.3...
remote: cabal: Missing dependency on a foreign library:
remote: * Missing C library: pcre
remote: This problem can usually be
我已经设法完全打破了我的终端,我害怕重新启动。我使用dpkg强制删除了一些东西,因为我安装了一个没有工作的.rpm,并且意外地删除了错误的一个。我打开了一个终端,但是每次我输入sudo,我都会得到这个:
sed: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory
ls: error while loading shared libraries: libpcre.so.3: cannot open shared object f
我刚刚升级到Mojave,正在尝试安装phalcon,它是在macOS以前的版本(高塞拉)上用标准编译安装顺利安装的。
git clone git://github.com/phalcon/cphalcon.git
cd cphalcon/build
sudo ./install
对于Mojave,它会给出跟随错误。
In file included from /usr/include/php/ext/spl/spl_iterators.h:27:
/usr/include/php/ext/pcre/php_pcre.h:29:10: fatal error: 'pcre.h'
我试着在我的mac电脑上安装openswoole。我在安装它时有这个问题。
/usr/local/Cellar/php@7.4/7.4.29/include/php/ext/pcre/php_pcre.h:25:10: fatal error: pcre2.h: No such file or directory
#include "pcre2.h"
按照其他人的建议,我使用命令brew install pcre修复了这个问题,但结果总是一样。我试图打开文件夹pcre,我只看到其中一个php_pcre.h文件。
我在处理我的错误时遇到了困难,我不得不自己解决这个问题。这一切始于我想要从PHP5.2升级到PHP5.3(天禁),有人告诉我,我们有各种各样的依赖关系混乱,因为我们有多个PHP包,没有其他人使用它,所以如果我想要它,我必须自己做。
我设法弄清楚了如何安装PHP5.3,但方法是删除所有以前的PHP版本并重新安装。现在,“我的”(有人离开了)代码依赖于PHPExcel,它依赖于php-pecl,而我显然没有。以下是我尝试过的几点:
用PECL
安装
# pecl install zip
No releases available for package "pecl.php.net/
我使用uwsgi在heroku上为我的应用程序提供服务。似乎在部署时不支持路由,因为不知何故uwsgi构建时没有正则表达式功能。日志上写着:
!!! no internal routing support, rebuild with pcre support !!!
我启用了来自的构建包,它似乎支持在heroku机器上安装pcre(perl兼容正则表达式)。
但是,uwsgi仍然无法使用pcre/routing进行编译:
>heroku run pip install -I uwsgi
.. wall of text ..
################# uWSGI config
我总是这样安装nginx:
wget ...nginx...
tar zxvf ...
cd nginx...
./configure --with-pcre=../pcre_source_path
make && make install
nginx和pcre将安装到/usr/local/
但是现在我想把它们安装到/usr/local/lnmp/,所以我尝试这样配置nginx:
./configure --with-pcre=../pcre_source_path --prefix=/usr/local/lnmp/nginx/
然后我就迷惑了:我的pcre安装在哪里?我找到了