In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
First of all, download the source package of apache: http://www.apache.org/dyn/closer.cgi download httpd
Decompress tar-zxvf httpd-2.4.23.tar.gz & & cd http-2.4.23
Compiling. / configure will report an error at this time. I summarized the error report and solutions. (reproduced at http://cuisuqiang.iteye.com/blog/2068794)
When installing Apache on Linux, there was a compilation error:
Code
Checking for APR... No
Configure: error: APR not found. Please read the documentation
Install APR, download the required software package, and if the computer can access the Internet at this time, execute the command to download the file:
Code
Wget http://archive.apache.org/dist/apr/apr-1.4.5.tar.gz
Wget http://archive.apache.org/dist/apr/apr-util-1.3.12.tar.gz
Wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.10/pcre-8.10.zip
Apr not found problem
Code
Tar-zxf apr-1.4.5.tar.gz
Cd apr-1.4.5
. / configure-- prefix=/usr/local/apr
Make & & make install
The error will be reported when compiling and installing apr-1.5.2 is rm:cannot remove 'libtoolt':no such file or.
Solution: there are 3 orders circulated on the Internet how to solve, I tried not to
# autoreconf-force-install
# libtoolize-automake-force
# automake-force-add-missing
Check the libtool installation? Rpm-qa | grep libtool
No, just install it with yum.
After installation, the compiler still reported an error. Later, RM= `$ RM` was found in the configure file.
Add the-f solution or look for $RM "$cfgfile" in the file to drop this line (mine is this solution)
APR-util not found problem
Code
Tar-zxf apr-util-1.3.12.tar.gz
Cd apr-util-1.3.12
. / configure-- prefix=/usr/local/apr-util-with-apr=/usr/local/apr/bin/apr-1-config
Make & & make install
Pcre problem
Code
Unzip-o pcre-8.10.zip
Cd pcre-8.10
. / configure-- prefix=/usr/local/pcre
Make & & make install
The error libtool: line 990: command not found occurs during make pcre
Solution: yum-y install gcc+ gcc-c++
Finally, when compiling Apache, add:
Code
-with-apr=/usr/local/apr-with-apr-util=/usr/local/apr-util/-with-pcre=/usr/local/pcre
For example:
Code
. / configure-prefix=/usr/local/apache2-enable-so-with-apr=/usr/local/apr-with-apr-util=/usr/local/apr-util/-with-pcre=/usr/local/pcre
Finally, test whether apache is installed correctly.
Service httpd stop
/ usr/local/apache2/bin/apachectl start
Usually, the error will be reported for the first time here.
So I checked it on the Internet, and according to the experience of my predecessors, the problem was finally solved. To sum up, it is convenient to use in the future.
Reason: this problem should be that ServerName is not set in / etc/httpd/conf/httpd.conf. So apache will be replaced by the name of the host, first of all to find out if there is a definition of the host in / etc/hosts.
Solution:
(1 you can set the ServerName comment in the / etc/httpd/conf/httpd.conf file or remove the ServerName comment in / usr/local/apache2/conf/httpd.conf
(2 enter your host name bogon in / etc/hosts, as follows: 127.0.0.1 bogon (user name)
Vim / var/www/html/index.html and / usr/local/apache2/htdocs/index.html
After the change, test it and enter the local IP in the local browser.
The article draws lessons from the netizens' solution:
Http://blog.csdn.net/xiecj_2006/article/details/43087073
Http://www.cnblogs.com/Anker/p/3355039.html
Http://blog.sina.com.cn/s/blog_8f0b67a901010cp3.html
Http://www.mamicode.com/info-detail-1516391.html
Http://bbs.chinaunix.net/thread-3681247-1-1.html
Http://blog.csdn.net/yiluoak_47/article/details/22067185
Http://www.jbxue.com/article/3006.html?jdfwkey=7dvxy1
Http://cuisuqiang.iteye.com/blog/2068794
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.