Discussion:
Installing pylucene on machos 10.11
Tom Kealy Kealy
2016-07-04 10:58:19 UTC
Permalink
Dear Lucene-dev,

I'm having difficulty installing pylucene on mac OS X 'El Captian' 10.11.

I've checked out the jcc source code:

svn co http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc bcc

i've got idk 1.8, and have edited the setup.py file to target idk 1.8.

When I try to build with the following commands

$ python setup.py build
$ sudo python setup.py install

I get the following error:

found JAVAHOME =
/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
found JAVAFRAMEWORKS = /System/Library/Frameworks/JavaVM.framework

/Users/tk12098/anaconda/lib/python2.7/site-packages/setuptools-20.3-py2.7.egg/pkg_resources/__init__.py:194:
RuntimeWarning: You have iterated over the result of
pkg_resources.parse_version. This is a legacy behavior which is
inconsistent with the new version class introduced in setuptools 8.0. In
most cases, conversion to a tuple is unnecessary. For comparison of
versions, sort the Version instances directly. If you have another use case
requiring the tuple, please file a bug with the setuptools project
describing that need.
Traceback (most recent call last):
File "setup.py", line 209, in <module>
''')
RuntimeError:

Please set the environment variable MACOSX_DEPLOYMENT_TARGET to at
least 10.5.

This happens after the second command ('sudo python setup.py install').

I've checked with `printenv` and `MACOSX_DEPOLYMENT_TARGET=10.11`.

I'm not sure how to resolve this.

Tom
Andi Vajda
2016-07-04 18:00:45 UTC
Permalink
Post by Tom Kealy Kealy
Dear Lucene-dev,
I'm having difficulty installing pylucene on mac OS X 'El Captian' 10.11.
svn co http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc bcc
i've got idk 1.8, and have edited the setup.py file to target idk 1.8.
When I try to build with the following commands
$ python setup.py build
$ sudo python setup.py install
found JAVAHOME =
/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
found JAVAFRAMEWORKS = /System/Library/Frameworks/JavaVM.framework
RuntimeWarning: You have iterated over the result of
pkg_resources.parse_version. This is a legacy behavior which is
inconsistent with the new version class introduced in setuptools 8.0. In
most cases, conversion to a tuple is unnecessary. For comparison of
versions, sort the Version instances directly. If you have another use case
requiring the tuple, please file a bug with the setuptools project
describing that need.
File "setup.py", line 209, in <module>
''')
Please set the environment variable MACOSX_DEPLOYMENT_TARGET to at
least 10.5.
This happens after the second command ('sudo python setup.py install').
So JCC builds but does not install ?
Post by Tom Kealy Kealy
I've checked with `printenv` and `MACOSX_DEPOLYMENT_TARGET=10.11`.
Is that the case under 'sudo', though ?
What does 'sudo printenv' return ?

Andi..
Post by Tom Kealy Kealy
I'm not sure how to resolve this.
Tom
Loading...