未定义对“jni\u getcreatedjavavms”的引用

o8x7eapl  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(279)

这是构建日志,有人能帮忙吗?

/usr/local/hadoop-2.5.1/lib/native/libhdfs.a(jni_helper.c.o): In function `getGlobalJNIEnv':

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:446: undefined reference to `JNI_GetCreatedJavaVMs'

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:505: undefined reference to `JNI_CreateJavaVM'

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:505: undefined reference to `JNI_CreateJavaVM'

/usr/local/hadoop-2.5.1/lib/native/libhdfs.a(jni_helper.c.o): In function `getJNIEnv':

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:570: undefined reference to `pthread_key_create'

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:579: undefined reference to `pthread_getspecific'

/data/elmerzeng/install/packages/hadoop-2.5.1-src/hadoop-hdfs-project/hadoop-hdfs/src/main/native/libhdfs/jni_helper.c:598: undefined reference to `pthread_setspecific'
collect2: error: ld returned 1 exit status

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题