新聞中心

EEPW首頁 > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > LAMP 架構(gòu)的編譯安裝及錯(cuò)誤完全分析

LAMP 架構(gòu)的編譯安裝及錯(cuò)誤完全分析

作者: 時(shí)間:2016-09-12 來源:網(wǎng)絡(luò) 收藏

[root@localhost extra]# vi

[root@localhost bin]# pwd

/usr/local/apache2/bin

[root@localhost bin]# cp apachectl /etc/init.d/apache

[root@localhost ~]# service apache start

至于mysql5.6的編譯安裝可以參考

10、PHP的安裝-----我這里用了5.3.27版本的php,沒有用之前下載的5.3.10

./configure --with-apxs2=/usr/local/apache2/bin/apxs --disable-

ipv6 --with-libxml-dir=/usr --with-openssl=/usr --with-zlib=/usr --wit

h-bz2=/usr --with-curl=/usr --enable-ftp --with-mysql=/usr/local/mysq

l --with-mysql-sock=/var/run/mysqld/mysql5.socket --with-mysqli=/usr/

local/mysql/bin/mysql_config

.

######錯(cuò)誤###########錯(cuò)誤###########錯(cuò)誤###########錯(cuò)誤###########錯(cuò)誤###########錯(cuò)誤###########錯(cuò)誤###########錯(cuò)誤#####

錯(cuò)誤1

APR Version: 1.4.5

checking for chosen layout... apr

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: in `/usr/src/lamp/;:

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details.

configure failed for srclib/apr

出現(xiàn)這種錯(cuò)誤 很明顯,沒有安裝gcc、c語言編譯器

yum install gcc -y

-------------------------------

錯(cuò)誤 2

config.status: creating test/internal/Makefile

config.status: creating include/arch/unix/apr_private.h

config.status: executing libtool commands

rm: cannot remove `libtoolT': No such file or directory

config.status: executing default commands

config.status: include/apr.h is unchanged

首先yum install libtool還是一樣報(bào)錯(cuò),在configure里面 RM='$RM -f' 這里的$RM后面一定有一個(gè)空格。 如果后面沒有空格,直接連接減號(hào),就依

然會(huì)報(bào)錯(cuò)。把RM='$RM'改為RM='$RM -f‘

-------------------------------

錯(cuò)誤3

checking bzlib.h usability... no

checking bzlib.h presence... no

checking for bzlib.h... no

checking for BZ2_bzopen in -lbz2... no

checking readline/readline.h usability... no

checking readline/readline.h presence... no

checking for readline/readline.h... no

checking readline/history.h usability... no

checking readline/history.h presence... no

checking for readline/history.h... no

checking for readline in -lreadline... no

** Cannot --enable-pcregrep-libbz2 because bzlib.h was not found

yum install bzip2-devel -y

------------------------------

錯(cuò)誤4

/bin/sh ./libtool --tag=CXX --mode=compile -DHAVE_CONFIG_H -I. -c -o pcrecp

libtool: ignoring unknown tag CXX

libtool: unrecognized option `-DHAVE_CONFIG_H'

Try `libtool --help' for more information.

make[1]: *** [pcrecpp.lo] Error 1

make[1]: Leaving directory `/usr/src/lamp/pcre-7.9'

make: *** [all] Error 2

yum install gcc-c++ -y


上一頁 1 2 下一頁

關(guān)鍵詞:

評(píng)論


相關(guān)推薦

技術(shù)專區(qū)

關(guān)閉