tugraph-db
tugraph-db copied to clipboard
Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Environment:
- OS: [e.g. Ubuntu 18.04] mac
- CPU: [e.g. Intel Xeon xxxx] Intel
- Compiler: [e.g. GCC 8.0]
Additional context Add any other context about the problem here.
CMake Error at /usr/local/Cellar/cmake/3.22.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message): Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) Call Stack (most recent call first): /usr/local/Cellar/cmake/3.22.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE) /usr/local/Cellar/cmake/3.22.1/share/cmake/Modules/FindJNI.cmake:382 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) src/BuildClients.cmake:18 (find_package) src/CMakeLists.txt:10 (include)
Install java 1.8 in your os environment or use cmake -DENABLE_FULLTEXT_INDEX=OFF
to remove the dependency on java.
BTW, it is recommended to use centos
or ubuntu
to compile, mac os has not been verified.
some references:
https://github.com/TuGraph-db/tugraph-db/blob/master/ci/images/centos7/Dockerfile