其他的庫沒有進行安裝的使用編譯安裝。。。。。
–獲得安裝包,從網上直接下載或者其他途徑,這里直接wget# wgethttp://curl.haxx.se/download/curl-7.17.1.tar.gz–解壓到當前目錄# tar -zxf curl-7.17.1.tar.gz–進入解壓后的目錄內# cd curl-7.17.1–配置,指定安裝的目錄,這里是“/usr/local/curl”# ./configure –PRefix=/usr/local/curl–# make–安裝# make install–安裝完畢
使用:將curl命令加入環境變量,命令行里執行(僅對本會話起作用,或者在.bash_profile、.bashrc文件里配置環境變量):# export PATH=$PATH:/usr/local/curl/bin然后就可以使用了
其他的沒有安裝的包自己找源下載后編譯安裝。。。。
現在安裝php:
cd /home/oldboy/tools/
wget http://mirrors.sohu.com/php/php-5.3.27.tar.gz
tar -zxf php-5.3.27.tar.gz
cd php-5.3.27
./configure /
--prefix=/application/php5.3.27
--with-apxs2=/application/apache/bin/apxs
--with-MySQL=mysqlnd /
--with-pdo-mysql=mysqlnd /
--with-iconv-dir=/usr/local/libiconv /
--with-freetype-dir /
--with-jpeg-dir /
--with-zlib /
--disable-rpath /
--enable-safe-mode /
--enable-bcmath /
--enable-shmop /
--enable-sysvsem /
--enable-inline-optimization /
--with-curl /
--with-curlwrappers /
--enable-mbstring /
--with-mcrypt /
--with-gd /
--enable--gd-native-ttf /
--with-openssl /
--with-mhash /
--enable-sockets /
--with-xmlrpc /
--enable-zip /
--enable-soap /
--enable-short-tags /
--enable-zend-multibyte /
--enable-static /
--with-xsl /
--enable-ftp
新聞熱點
疑難解答