The formula on installs clients for python2 not python3
Found this comment
Python3 is supported in the latest code from git (f79e9a8). Pass PYTHON=/usr/bin/python3 to configure to select Python3. Similarly, PYTHON=/usr/bin/python2, selects Python 2. When switching between them, a make dist-clean is necessary before configuring.
Consequently
I tried modifying the formula as follows but get the error below
class Hyperdex < Formula
homepage 'http://hyperdex.org'
url 'http://hyperdex.org/src/hyperdex-1.4.4.tar.gz'
sha1 'c5b126fc7862de66eab54fa5ef3c7cbb84b2bc9b'
depends_on 'autoconf'
depends_on 'automake'
depends_on 'autoconf-archive'
depends_on 'libtool'
depends_on 'pkg-config'
depends_on 'popt'
depends_on 'glog'
depends_on 'google-sparsehash'
depends_on 'json-c'
depends_on 'libpo6'
depends_on 'libe'
depends_on 'busybee'
depends_on 'hyperleveldb'
depends_on 'replicant'
option 'with-python-bindings', "Builds and installs Python client bindings"
option 'with-java-bindings', "Builds and installs Java client bindings"
option 'with-ruby-bindings', "Builds and installs Ruby client bindings"
option 'with-python3', "Python client bindings use /usr/local/bin/python3"
def patches
DATA
end
def install
ENV['PKG_CONFIG_PATH']="#{HOMEBREW_PREFIX}/lib/pkgconfig"
args = []
args << "--enable-java-bindings" if build.with? "java-bindings"
args << "--enable-python-bindings" if build.with? "python-bindings"
args << "--enable-ruby-bindings" if build.with? "ruby-bindings"
args << "PYTHON=/usr/local/bin/python3" if build.with? "python3"
system "./configure", "--prefix=#{prefix}", *args
system "make"
system "make install"
end
end
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
any idea how to fix it.
The formula on installs clients for python2 not python3
Found this comment
Python3 is supported in the latest code from git (f79e9a8). Pass PYTHON=/usr/bin/python3 to configure to select Python3. Similarly, PYTHON=/usr/bin/python2, selects Python 2. When switching between them, a make dist-clean is necessary before configuring.
Consequently
I tried modifying the formula as follows but get the error below
installed in some non-standard library path. If so, pass it to configure,
via the LDFLAGS environment variable.
Example: ./configure LDFLAGS="-L/usr/non-standard-path/python/lib"
any idea how to fix it.