简体   繁体   English

mod_auth_token安装问题

[英]Problems with mod_auth_token installation

TOOLS TOOLS

 apache2 -v : Server version: Apache/2.4.7 (Ubuntu)
 ubuntu 14.04 LTS

I'd like to install mod_auth_token to secure some of my files but I'm having problems with the first command I need to run: 我想安装mod_auth_token来保护我的一些文件,但是我需要运行的第一个命令有问题:

Command 命令

./configure

Error message 错误信息

configure: error: APXS not found in $PATH, please use with-apxs to specify the location of the apxs binary

Except that locate apxs returns none so I guess it's nowhere and 除非locate apxs返回任何内容,所以我猜它不存在并且

 echo $PATH -> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

Any ideas ? 有任何想法吗 ?


UPDATE1 UPDATE1

Found it, apxs2 was missing, to add it apt-get install apache2-dev 找到它,缺少apxs2 ,将其添加到apt-get install apache2-dev

But now when I run make or make check or make install I get a warning and the installation stops: 但是现在当我运行makemake checkmake install我得到一个警告,安装停止:

mod_auth_token.c:65:3: warning: missing sentinel in funcgtion call [ -Wformat=]
ap_set_string_slot(cmd, config, apr_pstrcat(cmd->pool, arg, '/'));
^

Code

if (arg[len -1] != '/') {
  /*here*/   ap_set_string_slot(cmd, config, apr_pstrcat(cmd->pool, arg, '/'));
     conf->prefix_len = len + 1;
     ....

I was having this issue and developer here figured this for me (thanks Bill!). 我遇到这个问题,开发人员在这里为我解决了这个问题(感谢Bill!)。

According to Apache Docs https://apr.apache.org/docs/apr/1.6/group__apr__strings.html#ga7bd80c95ffb7b3f96bc78e7b5b5b0045 "The final string must be NULL" 根据Apache文档https://apr.apache.org/docs/apr/1.6/group__apr__strings.html#ga7bd80c95ffb7b3f96bc78e7b5b5b0045 “最终字符串必须为NULL”

He changed that line to: 他将该行更改为:

ap_set_string_slot(cmd, config, apr_pstrcat(cmd->pool, arg, '/', NULL));

and it compiled. 然后编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM