在gentoo上的nginx下安装mod_pagespeed

时间:2013-12-18 14:39:55

标签: linux nginx gentoo mod-pagespeed

我想使用emerge在gentoo下安装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";

1 个答案:

答案 0 :(得分:1)

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