configure with-jdk
-
java-1.7.0-openjdk-devel.x86_64
netxms-2.0-m3ll /usr/lib/jvm/java/jre/lib/amd64/server/ total 37028 -r--r--r-- 1 root root 25382912 Apr 13 10:02 classes.jsa lrwxrwxrwx 1 root root 13 Apr 13 10:02 libjsig.so -> ../libjsig.so -rwxr-xr-x 1 root root 12525760 Feb 27 07:03 libjvm.so -rw-r--r-- 1 root root 1423 Feb 27 06:51 Xusage.txtИспользовал
# для libjvm, но не работает, что я делаю не так ?LDFLAGS="-L/usr/lib/jvm/java/jre/lib/ -L/usr/lib/jvm/java/jre/lib/amd64/server/"# для jni.h
for i in -I/usr/lib/jvm/java/include{,/linux}; do java_inc="$java_inc $i" done CPPFLAGS="$java_inc $CPPFLAGS" export LDFLAGS CPPFLAGS./configure --prefix=/opt/netxms --with-client --with-server --with-agent --with-pgsql --with-openssl --with-snmp --with-jdk
В итоге получаю ошибку
checking jni.h usability... yes checking jni.h presence... yes checking for jni.h... yes checking for SQLAllocHandle in -ljvm... no configure: error: libjvm is required for Java support -
-
Это ошибка в configure.
Должна быть проверка на JNI_CreateJavaVM, а не SQLAllocHandle -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login