-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install at Macosx lion #23
Comments
Similar issues here. You can get past the above by setting: and commenting out the relevant assignments further down. However, I still get this: python setup.py build_ext --inplace -f Would be really nice to play around with this but just can't get it to work on Mac OS X |
After doing the above, in iPython: In [1]: from jnius import autoclassImportError Traceback (most recent call last) /Users/Nick/workspace/python/pyjnius/jnius/init.py in () ImportError: dlopen(jnius/jnius.so, 2): Symbol not found: _JNI_CreateJavaVM |
Can you retry the compilation with the 64 bits Python? Or the inverse, use a 32 bits jvm instead :) |
I'm using 64-bit Python. Forcing it: arch -x86_64 python setup.py build_ext --inplac I will see if I can get a 32-bit JVM to work. But still not quite getting why it's not working. |
Ok, maybe the jvm is already 32 bits then, and you're using a 64 bits python? |
Hi tito, you can try to down load JDK from : and recompile it with 10:~ ytwu$ echo $JDK_HOME Modified below in setup.py: library_dirs = ['/Library/Java/JavaVirtualMachines/jdk1.7.0_07.jdk/Contents/Home/jre/lib/ you should be able to get jnius work on mac lion. |
Hi You can try this pull request: #42. |
@allfro I have use request. And it's could compile. But it throw an exception:
env : mac osx lion |
@dreampuf do 'man python' for instructions on how to make your version of python run in 32-bit mode. |
@allfro It's must 32-bit mode? I have try |
Not sure but I wanted to see what would happen. Did you download the latest of pyjnius and apple jvm? Did you compile from fresh sources? |
@allfro I don't know what's wrong of environment. I think my environment is broken (I'm use the homebrew and customize install path prefix of it's). Finally, I decide to use the VM to try these. |
When I install the pyjnius by pip, I get the JDK 7 and install it. then when I run
pip install pyjnius
, it's report the error as/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home/include/jni.h:45:10: fatal error: 'jni_md.h' file not found
(after I has set theJDK_HOME
andJRE_HOME
)And I find the file at '/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home/include/darwin/` and copy it to parent directory.
Then, I retry installing, and get the result like
clang: error: no such file or directory: '/Library/Java/JavaVirtualMachines/jdk1.7.0_06.jdk/Contents/Home/jre/lib/amd64/server'
.I can't find the
ire/lib/amd64/server
. what can I do?The text was updated successfully, but these errors were encountered: