麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 網站 > WEB服務 > 正文

在Mac OS上自行編譯安裝Apache服務器和PHP解釋器

2020-03-22 20:16:52
字體:
來源:轉載
供稿:網友
Apache 2.2.27和PHP 5.5.12在Mac OS X 10.8.5編譯安裝過程:
在開始之前首先升級Xcode的組件: preferences = Downloads = 下載Command Line Tools包然后進入Apache的源碼包,對于大部分的源碼包都可以使用下面這個指令來查看編譯選項:./configure --help配置編譯選項:./configure --prefix=/Users/levin/dev/apache2.2.27 --enable-modules=most --enable-mods-shared=all報錯:checking for APR-util... yeschecking for gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/ccchecking whether the C compiler works... noconfigure: error: in `/Users/levin/Downloads/httpd-2.2.27':configure: error: C compiler cannot create executablesSee `config.log' for more details上面的報錯是指路徑:/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc不存在解決方法:cd /Applications/Xcode.app/Contents/Developer/Toolchainssudo ln -s XcodeDefault.xctoolchain OSX10.8.xctoolchain接著編譯并安裝:make install編輯配置文件httpd.conf,一般修改監聽端口、運行Apache的用戶和組、服務器名稱、開啟gzip等配置。進入安裝好的目錄啟動Apache:./bin/apachectl start安裝PHP關于PHP編譯選項可以參考: PHP: List of core configure options - Manual./configure --prefix=/Users/levin/dev/php5.5.12 --with-apxs2=/Users/levin/dev/apache2.2.27/bin/apxs --with-config-file-path=/Users/levin/dev/php5.5.12/etc --with-openssl --with-zlib --enable-bcmath --with-bz2 --with-curl --enable-ftp --with-gd --enable-gd-native-ttf --with-mhash --enable-mbstring --enable-soap --enable-zip --enable-sockets --with-mysql=/usr/local/mysql-5.6.12-osx10.7-x86_64 --with-mysqli=/usr/local/mysql-5.6.12-osx10.7-x86_64/bin/mysql_config --with-iconv --with-pear --enable-opcache整個編譯過程需要5-10分鐘,視硬件配置而定,可以先去弄杯牛奶喝發生錯誤:Undefined symbols for architecture x86_64: "_res_9_init", referenced from: _zif_dns_get_mx in dns.o _zif_dns_get_record in dns.o _zif_dns_check_record in dns.o "_res_9_search", referenced from: _zif_dns_get_mx in dns.o _zif_dns_get_record in dns.o _zif_dns_check_record in dns.o "_res_9_dn_skipname", referenced from: _zif_dns_get_mx in dns.o _zif_dns_get_record in dns.o "_res_9_dn_expand", referenced from: _zif_dns_get_mx in dns.o _php_parserr in dns.old: symbol(s) not found for architecture x86_64collect2: ld returned 1 exit statusmake: *** [libs/libphp5.bundle] Error 1解決:export LDFLAGS=-lresolv錯誤:dyld: Library not loaded: libmysqlclient.18.dylib Referenced from: /Users/levin/Downloads/php-5.5.12/sapi/cli/php Reason: image not foundmake: *** [ext/phar/phar.php] Error 133解決:cd /usr/libln -s /usr/local/mysql-5.6.12-osx10.7-x86_64/lib/libmysqlclient.18.dylib libmysqlclient.18.dylib重新編譯并安裝:make clean && makemake install安裝完成,此時需要從PHP的源碼目錄copy一份配置文件到安裝目錄的etc文件夾下面并改名為php.ini,需要更改PHP的配置時就使用該文件即可。PHP教程

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 一级做a爰性色毛片免费 | 一级免费黄视频 | 中文字幕在线播放第一页 | 中文字幕涩涩久久乱小说 | 男女做性免费网站 | 性插视频 | www久| 欧美黄色大片免费观看 | 精品一区二区电影 | 色人久久| 新久草在线视频 | 国产精品视频专区 | 国产91久久久久 | 欧美性a视频| 国产无遮挡一区二区三区毛片日本 | 精品国产99久久久久久宅男i | 少妇一级淫片免费放4p | 久综合色 | 一级看片免费视频 | 久久久久久久久久性 | 91精品成人福利在线播放 | 国内精品久久久久久久久久 | 黄色一级片在线观看 | 午夜精品福利影院 | 成人毛片av在线 | 在线看国产视频 | 成人午夜a | 一级免费在线 | 午夜影院日韩 | 成人在线视频免费 | 国产精品一区二区羞羞答答 | 国产一区二区高清在线 | 成人免费观看49www在线观看 | 国产免费激情视频 | 成人免费福利网站 | 一区二区三区欧美日韩 | 午夜色视频在线观看 | 黄色av电影在线播放 | 国产69精品久久久久99尤 | 99sesese| 久久精品视频16 |