新聞中心

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

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

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

        [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)閉
        主站蜘蛛池模板: 鄂伦春自治旗| 枝江市| 祁东县| 南漳县| 通许县| 柳河县| 盐边县| 额尔古纳市| 辛集市| 通辽市| 古田县| 来宾市| 夏河县| 满城县| 崇礼县| 临邑县| 镇平县| 全州县| 将乐县| 龙泉市| 外汇| 习水县| 巍山| 泸定县| 新安县| 泰来县| 富民县| 南召县| 报价| 天长市| 靖远县| 凤山县| 视频| 昂仁县| 卓资县| 得荣县| 湾仔区| 宝山区| 栖霞市| 石门县| 习水县|