我曾尝试使用 Homebrew 安装 libret,但被淘汰了。如何在 python 上使用 librets 库而无需使用 xcode 从头开始构建。
问问题
333 次
1 回答
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
于 2016-12-29T17:23:11.950 回答