最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

linux安裝php擴展腳本分享

 更新時間:2014年03月05日 16:41:04   作者:  
本文主要介紹了linux下安裝php擴展的步驟,安裝是由shell批量執(zhí)行的,,需要的朋友可以參考下

測試環(huán)境:ubuntu 12.04 php 5.3.x

復(fù)制代碼 代碼如下:

#!/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

相關(guān)文章

最新評論

抚松县| 漯河市| 石泉县| 肇源县| 绵竹市| 西藏| 石首市| 清徐县| 宁夏| 腾冲县| 保亭| 博湖县| 乌鲁木齐市| 德安县| 巴里| 高青县| 中方县| 赤峰市| 唐海县| 阿鲁科尔沁旗| 哈巴河县| 龙岩市| 祁门县| 普兰店市| 景德镇市| 青神县| 远安县| 济阳县| 仙游县| 兰溪市| 南昌市| 读书| 旅游| 峨眉山市| 香格里拉县| 邵东县| 霍山县| 娄烦县| 土默特右旗| 遵义市| 五寨县|