我已经尝试使用Homebrew安装librets,但是却被淘汰了。如何在python上使用librets库而不必使用xcode从头开始构建。
答案 0 :(得分:3)
brew tap homebrew/boneyard
然后brew edit librets
然后粘贴我的公式并先保存,然后运行brew install librets
粘贴以下内容以替换旧公式(我更新为1.6.2,因此将旧的SHA1哈希注释为过时)
require 'formula'
class Librets < Formula
homepage 'http://code.crt.realtors.org/projects/librets'
url 'https://github.com/NationalAssociationOfRealtors/libRETS/archive/1.6.2.tar.gz'
#sha256 '2eaf3d163899c7f3ffa303b24d90c2e3ed4f4a92dc8b12d4d1bc4effa3962661' (uncomment if you like)
depends_on 'swig'
depends_on 'boost'
depends_on 'autoconf'
def install
system "./autogen.sh"
system "./configure", "--disable-debug",
"--enable-shared_dependencies",
"--prefix=#{prefix}",
"--disable-dotnet",
"--disable-java",
"--disable-perl",
"--disable-php",
"--disable-ruby"
system "make install"
end
end