macports安装db46的jni.h No such file or directory问题解决

May 1st, 2011 no comment

最近在我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

安装,问题解决。