毕业设计的辛酸路——Ubuntu10.04+apache安装
来源:互联网 发布:bilibili mac客户端 编辑:程序博客网 时间:2024/05/29 18:41
直接安装httpd, 如果没有错误提示直接可以略过一下的步骤,但是我在配置的过程中出现了很多错误,现在总结如下:
[root@kong test]# tar -zxf httpd-2.4.1.tar.gz
[root@kong httpd-2.4.1]# ./configure --prefix=/usr/local/apache2
1.出现的错误提示:apr not found
解决apr not found问题
APR和APR-UTIL的下载地址:http://apr.apache.org/download.cgi
[root@kong test]# tar -zxf apr-1.4.6.tar.gz
[root@kong apr-1.4.6]# ./configure --prefix=/usr/local/apr
[root@kong apr-1.4.6]# make
[root@kong apr-1.4.6]# make install
2.解决APR-util not found问题
[root@kong test]# tar -zxf apr-util-1.4.1.tar.gz
[root@kong apr-util-1.4.1]# ./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr/bin/apr-1-config
[root@kong apr-util-1.4.1]# make
[root@kong apr-util-1.4.1]# make install
3 ../configure仍提示APR-util not found
增加--with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util后出现
configure: error: pcre-config for libpcre not found. PCRE is required and available fromhttp://pcre.org/
#./configure –help | grep pcre
--with-pcre=PATH Use external PCRE library
#tar –zxvf pcre-8.10.tar.gz
#cd pcre-8.10
#./configure --prefix=/usr/local/pcre
#make
4.出现:libtool: line 990: g++: command not found错误
执行:apt-get install g++
再次执行make出现:
5.出现:
make[1]: *** [libpcrecpp.la]错误 1
make[1]: Leaving directory `/usr/local/pcre-8.10'
make: *** [all] 错误 2
执行:apt-get install buold-essential
6.执行./configure --disable-shared --with-pic
再执行:
#make
#make install
7.编译Apache
[root@kong httpd-2.4.1]# ./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util/ -with-pcre=/usr/local/pcre
[root@kong httpd-2.4.1]# make
[root@kong httpd-2.4.1]# make install
[root@kong httpd-2.4.1]# /usr/local/apache2/bin/apachectl start
在IE中输入地址,显示:
It works!
Apache安装完成。
- 毕业设计的辛酸路——Ubuntu10.04+apache安装
- 毕业设计辛酸路—Libcgi库的安装
- 毕业设计辛酸路—在ubuntu下安装mplayer以及遇到的问题
- 毕业设计辛酸路——嵌入式平台搭建
- 毕业设计辛酸路—mini2440 从VM中的Ubuntu nfs启动
- ubuntu10.04的安装
- Ubuntu10.04下安装svn+apache
- ubuntu10下安装apache
- 安装MySQL的辛酸历程
- compiz的ubuntu10.04安装
- Ubuntu10安装apache,mysql,php
- Ubuntu10下Apache-2.2安装
- Ubuntu10下Apache-2.2安装
- Ubuntu10下Apache-2.2安装
- 三大Web Server:Apache、Nginx、Lighttpd在 Ubuntu10.04 LTS 下的安装配置
- Ubuntu10.04安装iasp攻略(让你的ASP运行于Apache 2.0.59 )
- Ubuntu10.04安装iasp攻略(让你的ASP运行于Apache 2.0.59 )
- 技术之路的辛酸
- CVPR2012
- OpenGL 的渲染流水线
- 控件一:Gallery 之无限循环的问题
- 漏斗法营销
- jsp操作mysql
- 毕业设计的辛酸路——Ubuntu10.04+apache安装
- proj4 笔记
- 域安全通道和信任关系-- Nltest.exe
- GCC、ARM-LINUX-GCC、ARM-ELF-GCC浅析【原】
- 获得系统当前时间戳
- android里图片下载工具类AsyncImageLoader分析
- Web Application Penetration testing with Google Chrome Browser
- TemplateMethod模式
- android 开发中将十六进制 颜色代码 转换为int类型数值 方法 :