开发者

How to fix Error 1 installing Apache from source on Ubuntu

I'm installing Apache on Ubuntu following this install guide http://httpd.apache.org/docs/trunk/install.html but get an error on the last step when I run the command line below;

$ PREFIX/bin/apachectl -k start

I've noticed that the referred file (above) does not exist on my server on that path.

When I run ls -l, I get this:

-rwxr-xr-x 1 agenadinik agenadinik 7067 2011-03-22 14:08 apr-1-config

Does anyone know why this inconsistency exist?

The make install co开发者_Python百科mmand also had this error:

make[2]: *** [install] Error 1
make[2]: Leaving directory `/home/agenadinik/httpd-2.2.17/srclib/apr-util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/agenadinik/httpd-2.2.17/srclib'
make: *** [install-recursive] Error 1

Any idea what is happening incorrectly here and how to get it fixed?

I'm using Apache version 2.2.17 with the built folder name as httpd-2.2.17 in my home directory at /home/agenadinik/.


I think its a permissions issue. Try

sudo make install


# make clean install
# service mysqld stop

this will remove the above errors


I had the same problem with the same error message, in my case it was a permission problem so I used the following command:

# sudo make install


First, you need to run make clean install in the directory where you've compiled Apache.

Then, re-compile Apache from source with all necessary options as below;

All with sudo privileges, if required.

# ./buildconf
# ./configure --enable-ssl --enable-so --with-included-apr
# make
# make install

Options used above are:

  • --enable-ssl to enable SSL support,
  • --enable-so to enable dynamically loaded modules, and
  • --with-included-apr to make use of the Apache Portable Runtime (APR) supporting library in the srclib directory of your Apache project.

After a successful operation, you can now effectively start your Apache server.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜