简体   繁体   English

找不到apxs2或目录

[英]apxs2 not found or not a directory

I'm trying to compile PHP 5 in ubuntu server, it's a larger explanation the why I need a compilated version and just download and install. 我正在尝试在ubuntu服务器中编译PHP 5,这是一个更大的解释,为什么我需要一个编译版本并仅下载并安装。 So, the thing is that in the process I get this error: 因此,问题是在执行过程中出现此错误:

Can't exec "a2enmod": No such file or directory at /usr/bin/apxs2 line 578.
'a2enmod php5' failed

So , I went to that directory and there's a file called apxs2 so whats wrong? 因此,我转到该目录,并且有一个名为apxs2的文件,那apxs2了?

Try to make: 尝试使:

cd /usr/bin
sudo ln -s /path/to/binary binary-name

in your case binary-name is a2enmod, to determine your path try to run: 在您的情况下,二进制名称为a2enmod,以确定要尝试运行的路径:

locate a2enmod

This file should be in /usr/sbin directory 该文件应该在/ usr / sbin目录中

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

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