gpt4 book ai didi

linux - 在gentoo上nginx下安装mod_pagespeed

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:00:34 25 4
gpt4 key购买 nike

我想在 gentoo 下使用 emerge 安装 mod_pagespeen。我在 make.conf 中添加了 NGINX_ADD_MODULES="/root/ngx_pagespeed-1.7.30.1-beta"。

当我尝试通过 emerge (emerge -D nginx) 编译 nginx 时,我收到以下消息:

adding module in /root/ngx_pagespeed-1.7.30.1-beta
./configure: error: no /root/ngx_pagespeed-1.7.30.1-beta/config was found

ERROR: www-servers/nginx-1.4.4::gentoo failed (configure phase):
configure failed *
Call stack:
ebuild.sh, line 93: Called src_configure
environment, line 3640: Called die
The specific snippet of code:
./configure --prefix="${EPREFIX}"/usr --conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf --error-log-path="${EPREFIX}"/var/log/${PN}/error_log --pid-path="${EPREFIX}"/run/${PN}.pid --lock-path="${EPREFIX}"/run/lock/${PN}.lock --with-cc-opt="-I${EROOT}usr/include" --with-ld-opt="-L${EROOT}usr/lib" --http-log-path="${EPREFIX}"/var/log/${PN}/access_log --http-client-body-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/client --http-proxy-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/proxy --http-fastcgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/fastcgi --http-scgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/scgi --http-uwsgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/uwsgi ${myconf} || die "configure failed";
the folder /root/ngx_pagespeed-1.7.30.1-beta/ exists on my compter:

dev ~ # ls -alh /root/ngx_pagespeed-1.7.30.1-beta/
total 89M
drwxr-xr-x 6 root root 4.0K Dec 18 22:07 .
drwx------ 14 root root 4.0K Dec 18 22:44 ..
-rw-r--r-- 1 root root 30 Nov 8 18:36 .gitignore
-rw-r--r-- 1 root root 89M Nov 7 21:00 1.7.30.1.tar.gz
-rw-r--r-- 1 root root 12K Nov 8 18:36 LICENSE
-rw-r--r-- 1 root root 4.8K Nov 8 18:36 README.md
-rw-r--r-- 1 root root 8.0K Nov 8 18:36 config
-rw-r--r-- 1 root root 2.9K Nov 8 18:36 cpp_feature
drwxr-x--- 4 182960 5000 4.0K Nov 7 15:59 psol
drwxr-xr-x 2 root root 4.0K Nov 8 18:36 scripts
drwxr-xr-x 2 root root 4.0K Nov 8 18:36 src
drwxr-xr-x 2 root root 4.0K Nov 8 18:36 test

如您所见,文件 (/root/ngx_pagespeed-1.7.30.1-beta/config) 在那里,但我仍然收到错误消息。

你能帮帮我吗?

对于第一个答案。感谢您的帮助!我将 ngx_pagespeed-1.7.30.1-beta 移动到/opt 并将其权限更改为 portage:portage。结果是一样的:

adding module in /opt/ngx_pagespeed-1.7.30.1-beta ./configure: error: no /opt/ngx_pagespeed-1.7.30.1-beta/config was found * ERROR: www-servers/nginx-1.4.4::gentoo failed (configure phase): * configure failed * * Call stack: * ebuild.sh, line 93: Called src_configure * environment, line 3640: Called die * The specific snippet of code: * ./configure --prefix="${EPREFIX}"/usr --conf-path="${EPREFIX}"/etc/${PN}/${PN}.conf --error-log-path="${EPREFIX}"/var/log/${PN}/error_log --pid-path="${EPREFIX}"/run/${PN}.pid --lock-path="${EPREFIX}"/run/lock/${PN}.lock --with-cc-opt="-I${EROOT}usr/include" --with-ld-opt="-L${EROOT}usr/lib" --http-log-path="${EPREFIX}"/var/log/${PN}/access_log --http-client-body-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/client --http-proxy-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/proxy --http-fastcgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/fastcgi --http-scgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/scgi --http-uwsgi-temp-path="${EPREFIX}/${NGINX_HOME_TMP}"/uwsgi ${myconf} || die "configure failed";

最佳答案

这可能是权限问题。您可能启用了 userpriv Portage FEATURE,这意味着软件包将不会以 root 身份构建。将目录移动到世界可读的地方。

关于linux - 在gentoo上nginx下安装mod_pagespeed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20661041/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com