您好,登錄后才能下訂單哦!
這篇文章將為大家詳細講解有關linux如何安裝php擴展腳本,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
測試環境:ubuntu 12.04 php 5.3.x
#!/bin/bash #Program: # Accomplish to expand the specified function only one key #History: # 2013/11/15 pankai<530911044@qq.com> first release test ! -f ./ext_skel && echo "The shell script of 'ext_skel' doesn't exist in current directory.\n" && exit 0 [ ! -d "skeleton" ] && echo "The directory of 'skeleton' doesn't exist in current directory.\n" && exit 0 #include "./ext_skel" read -p "Please input the extension name: " ext_name #echo -e "hello $ext_name" #The blank space is necessary #Error: # like: if[ ! -d "$ext_name" ]; then if [ ! -d "$ext_name" ]; then ./ext_skel --extname=$ext_name fi file="./$ext_name/config.m4" copy="./$ext_name/config" if [ ! -f "./$ext_name/configs" ]; then # Create a new file and clear it if it exists :> "$copy" cat "$file" | while read line #for line in $( cat ./zend/config.m4 ) do string=$( echo $line | grep 'PHP_ARG_ENABLE' ) if [ "$string" != "" ]; then echo $line | cut -c5- >> $copy read line echo $line | cut -c5- >> $copy read line echo $line | cut -c5- >> $copy read line fi echo $line >> $copy done mv "$file" "./$ext_name/configs" mv "$copy" "./$ext_name/config.m4" fi cd $ext_name phpize ./configure
關于“linux如何安裝php擴展腳本”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。