macports – 夏清然的日志 https://www.qingran.net Xia Qingran Geek Blog Sun, 07 Aug 2016 09:50:33 +0000 en-US hourly 1 https://wordpress.org/?v=4.6.1 112893047 macports安装db46的jni.h No such file or directory问题解决 https://www.qingran.net/2011/05/macports%e5%ae%89%e8%a3%85db46%e7%9a%84jni-h-no-such-file-or-directory%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3/ https://www.qingran.net/2011/05/macports%e5%ae%89%e8%a3%85db46%e7%9a%84jni-h-no-such-file-or-directory%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3/#respond Sun, 01 May 2011 05:31:55 +0000 https://www.qingran.net/?p=1089 最近在我macbook上安装mercurial和git一直报错,而且都是在安装db46的时候,今天放假实在忍不了了,追了一下日志发现是jni.h头文件找不到:

 

:info:build /usr/bin/gcc-4.2 -c -I. -I../dist/.. -I/opt/local/include -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -pipe -O2 -arch x86_64 -fno-strict-aliasing ../dist/../libdb_java/db_java_wrap.c -fno-common -DPIC -o .libs/db_java_wrap.o
:info:build ../dist/../libdb_java/db_java_wrap.c:123:17: error: jni.h: No such file or directory

 

这下简单了就是java的开发包需要update一下,于是在此下载最新的

Java for Mac OS X 10.6 Update 4 Developer Package Download

安装,问题解决。

]]>
https://www.qingran.net/2011/05/macports%e5%ae%89%e8%a3%85db46%e7%9a%84jni-h-no-such-file-or-directory%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3/feed/ 0 1089