Ver código fonte

Fix pecl_yar

lj2007331@gmail.com 6 anos atrás
pai
commit
ac3c4e2fb8
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      include/pecl_yar.sh

+ 3 - 3
include/pecl_yar.sh

@@ -15,11 +15,11 @@ Install_pecl_yar() {
     PHP_main_ver=${PHP_detail_ver%.*}
     if [[ "${PHP_main_ver}" =~ ^7.[0-3]$ ]]; then
       phpExtensionDir=$(${php_install_dir}/bin/php-config --extension-dir)
-      src_url=https://pecl.php.net/get/yar-${yar_ver}.tar.gz && Download_src
-      tar xzf yar-${yar_ver}.tar.gz
+      src_url=https://pecl.php.net/get/yar-${yar_ver}.tgz && Download_src
+      tar xzf yar-${yar_ver}.tgz
       pushd yar-${yar_ver} > /dev/null
       ${php_install_dir}/bin/phpize
-      ./configure --with-php-config=${php_install_dir}/bin/php-config
+      ./configure --with-php-config=${php_install_dir}/bin/php-config --with-curl=${curl_install_dir}
       make -j ${THREAD} && make install
       popd > /dev/null
       if [ -f "${phpExtensionDir}/yar.so" ]; then