简体   繁体   中英

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 command 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

我有相同的错误消息相同的问题,在我的情况下,这是一个权限问题,所以我使用以下命令:

# 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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