色婷婷AⅤ一区二区三区|亚洲精品第一国产综合亚AV|久久精品官方网视频|日本28视频香蕉

          新聞中心

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

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

          作者: 時間: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

          .

          ######錯誤###########錯誤###########錯誤###########錯誤###########錯誤###########錯誤###########錯誤###########錯誤#####

          錯誤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)這種錯誤 很明顯,沒有安裝gcc、c語言編譯器

          yum install gcc -y

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

          錯誤 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還是一樣報錯,在configure里面 RM='$RM -f' 這里的$RM后面一定有一個空格。 如果后面沒有空格,直接連接減號,就依

          然會報錯。把RM='$RM'改為RM='$RM -f‘

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

          錯誤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

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

          錯誤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)鍵詞:

          評論


          相關(guān)推薦

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

          關(guān)閉