Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Accumulo >> mail # dev >> Compiling Native Map - jni.h: No such file or directory


+
David Medinets 2012-11-16, 17:50
Copy link to this message
-
Re: Compiling Native Map - jni.h: No such file or directory
Do you have JAVA_HOME set?

On Fri, Nov 16, 2012 at 9:50 AM, David Medinets <[EMAIL PROTECTED]>wrote:

> My C++ compilation skills are antiquated so I can't help much to debug
> this issue. I did a fast web search but did not see anything relevant.
> The compilation was working in the past. I am using Ubuntu.
>
> $ cd /usr/local/accumulo-1.5.0-SNAPSHOT/server/src/main/c++
> $ make
> cd nativeMap ; make
> make[1]: Entering directory
> `/usr/local/accumulo-1.5.0-SNAPSHOT/server/src/main/c++/nativeMap'
> mkdir -p ../../../../../lib/native/map
> g++ -g -fPIC -shared -O2 -fno-omit-frame-pointer -fno-strict-aliasing
> -Wall -I/include/linux -I/include -m32 -o
> libNativeMap-Linux-i386-32.so
> org_apache_accumulo_server_tabletserver_NativeMap.cc util.cc
> In file included from
> org_apache_accumulo_server_tabletserver_NativeMap.cc:17:0:
> org_apache_accumulo_server_tabletserver_NativeMap.h:18:17: fatal
> error: jni.h: No such file or directory
> compilation terminated.
> util.cc: In function ‘size_t getMemUsage()’:
> util.cc:35:30: warning: ignoring return value of ‘int fscanf(FILE*,
> const char*, ...)’, declared with attribute warn_unused_result
> [-Wunused-result]
> make[1]: *** [libNativeMap-Linux-i386-32.so] Error 1
> make[1]: Leaving directory
> `/usr/local/accumulo-1.5.0-SNAPSHOT/server/src/main/c++/nativeMap'
> make: *** [nm] Error 2
>
+
David Medinets 2012-11-16, 20:51
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB