[英]How to install php svn extesion using brew?
I want to install php svn extension using brew . 我想使用brew安装php svn扩展名 。 I do not see any formula for my current php version (php56).
我当前的php版本(php56)没有看到任何公式。
I followed this link to add php-svn pecl extension for php eg 我按照此链接为php添加php-svn pecl扩展
vim /usr/local/Library/Taps/homebrew/homebrew-php/Formula/php56-svn.rb
edit 编辑
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.