https://github.com/platypusguy/essayer
https://github.com/platypusguy/essayer
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/platypusguy/essayer
- Owner: platypusguy
- License: gpl-3.0
- Created: 2024-08-24T01:29:12.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-23T22:10:41.000Z (10 months ago)
- Last Synced: 2025-03-17T04:37:17.697Z (3 months ago)
- Size: 27.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
@platypusguy
I am trying to use the ```purego``` package with ```golang/main.go``` on Linux, Windows, and MacOS.
It turns out that purego.Dlopen of $JAVA_HOME/lib/libzip.so causes an implicit attempt to open $JAVA_HOME/lib/server/libjvm.so.
On Linux,
* Before running, if I export LD_LIBRARY_PATH=$JAVA_HOME/lib/server/libjvm.so, all is well. It works.
* But if I do not do that, it fails with error text "libjvm.so: cannot open shared object file: No such file or directory".When you look at the code, you will see that I successfully amend the LD_LIBRARY_PATH environment variable in the current shell with the directory holding the libjvm.so file.
Same (equivalent) on Windows and MacOS (not confident in that yet).
Clearly, I am missing something. Feel free to try it yourself and tell me how I screwed up! (: