[英]How to install php svn extesion using brew?
我按照此鏈接為php添加php-svn pecl擴展
vim /usr/local/Library/Taps/homebrew/homebrew-php/Formula/php56-svn.rb
編輯
require File.expand_path("../../Abstract/abstract-php-extension", __FILE__)
class Php56Svn < AbstractPhp56Extension
init
homepage 'http://pecl.php.net/package/svn'
url 'http://pecl.php.net/get/svn-1.0.2.tgz'
head 'http://pecl.php.net/package/svn'
depends_on 'subversion'
def install
Dir.chdir "svn-#{version}" unless build.head?
ENV.universal_binary if build.universal?
safe_phpize
system "./configure", "--prefix=#{prefix}", phpconfig
system "make"
prefix.install "modules/svn.so"
write_config_file if build.with? "config-file"
end
end
brew tap --repair
brew audit php56-svn
brew install php56-svn
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.