LINUX下安装LAMP,在安装apache的时候,出错,错误提示如下
/usr/bin/install-c-m644expat.h/usr/local/apache2/includemake[4]:Leavingdirectory`/usr...
/usr/bin/install -c -m 644 expat.h /usr/local/apache2/include
make[4]: Leaving directory `/usr/local/src/httpd-2.2.9/srclib/apr-util/xml/expat/lib'
make[3]: Leaving directory `/usr/local/src/httpd-2.2.9/srclib/apr-util/xml/expat'
/bin/sh /usr/local/src/httpd-2.2.9/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apache2/lib
libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache2--sysconfdir=/etc/httpd/lib
make[2]: *** [install] Error 1
make[2]: Leaving directory `/usr/local/src/httpd-2.2.9/srclib/apr-util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/httpd-2.2.9/srclib'
make: *** [install-recursive] Error 1
执行命令为:
./configure \
> --prefix=/usr/local/apache2 \
> --sysconfdir=/etc/httpd \
> --with-z=/usr/local/zlib\
> --with-included-apr \
> --disable-userdir \
> --enable-so \
> --enable-deflate=shared\
> --enable-expires=shared \
> --enable-rewrite=shared \
> --enable-static-support
# make && make install 展开
make[4]: Leaving directory `/usr/local/src/httpd-2.2.9/srclib/apr-util/xml/expat/lib'
make[3]: Leaving directory `/usr/local/src/httpd-2.2.9/srclib/apr-util/xml/expat'
/bin/sh /usr/local/src/httpd-2.2.9/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libaprutil-1.la /usr/local/apache2/lib
libtool: install: error: cannot install `libaprutil-1.la' to a directory not ending in /usr/local/apache2--sysconfdir=/etc/httpd/lib
make[2]: *** [install] Error 1
make[2]: Leaving directory `/usr/local/src/httpd-2.2.9/srclib/apr-util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/httpd-2.2.9/srclib'
make: *** [install-recursive] Error 1
执行命令为:
./configure \
> --prefix=/usr/local/apache2 \
> --sysconfdir=/etc/httpd \
> --with-z=/usr/local/zlib\
> --with-included-apr \
> --disable-userdir \
> --enable-so \
> --enable-deflate=shared\
> --enable-expires=shared \
> --enable-rewrite=shared \
> --enable-static-support
# make && make install 展开
4个回答
展开全部
新手不建议如此的安装方式
建议新手使用deiban或者centos等系统
apt-get install 或 yum install 都是容易的,而且可以解决软件包的相互依赖问题
建议新手使用deiban或者centos等系统
apt-get install 或 yum install 都是容易的,而且可以解决软件包的相互依赖问题
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
改用2进制包装不就行了
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
是不是用root权限编译安装的?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询