Here's how I fixed it (note the bold)<div><br></div><div>$ export JAVA_CPPFLAGS="-I/Library/Java/Home/include"<br>$ export JAVA_LDFLAGS="-L/Library/Java/Home/bundle/Libraries -Wl,-rpath -Wl,/Library/Java/Home/bundle/Libraries <b>-framework JavaVM</b>"<br>
$ export JAVAC="/Library/Java/Home/bin/javac"</div><div>$ ./configure ...<br><br><div class="gmail_quote">On Thu, Feb 18, 2010 at 5:04 AM, Amit Gupta <span dir="ltr"><<a href="mailto:amit.gupta221@gmail.com">amit.gupta221@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Take a look at the config.log and try to figure out what is wrong. My guess is that JNI_CreateJavaVM function check has failed for some reason. Check for this line "checking for JNI_CreateJavaVM in -ljvm" and the result of it in your config.log.<br>
<br>Regards<br><font color="#888888">Amit</font><div><div></div><div class="h5"><br><div class="gmail_quote">On Sat, Feb 6, 2010 at 10:30 AM, Geoffrey Arnold <span dir="ltr"><<a href="mailto:geoffrey@geoffreyarnold.com" target="_blank">geoffrey@geoffreyarnold.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
Hi Florian, any ideas?<br>
<div><br>
On Feb 4, 2010, at 2:52 PM, Geoffrey Arnold wrote:<br>
<br>
> Message bounced because of attachment size. Here's the bzip'd config.log:<br>
><br>
</div>> <config.log.bz2><br>
<div><div></div><div>> On Feb 4, 2010, at 2:38 PM, Geoffrey Arnold wrote:<br>
><br>
>> Hi Octo,<br>
>><br>
>> I started fresh and ran collectd-4.9.1/configure with the following options:<br>
>><br>
>> $ export JAVA_CPPFLAGS="-I/Library/Java/Home/include"<br>
>> $ export JAVA_LDFLAGS="-L/Library/Java/Home/bundle/Libraries -Wl,-rpath -Wl,/Library/Java/Home/bundle/Libraries"<br>
>> $ export JAVAC="/Library/Java/Home/bin/javac"<br>
>> $ ./configure --prefix=$HOME/Applications/collectd-4.9.1 --enable-java<br>
>><br>
>> ... and received the same error:<br>
>><br>
>> libjvm . . . . . . . no (libjvm not found)<br>
>> ...<br>
>> configure: error: "Some plugins are missing dependencies - see the summary above for details"<br>
>><br>
>> Attached is config.log.<br>
>><br>
>> Thanks!<br>
>> Geoff.<br>
>><br>
</div></div>>> <config.log><br>
<div>>><br>
>> On Feb 4, 2010, at 3:58 AM, Florian Forster wrote:<br>
>><br>
</div><div>>>> Hi Geoff,<br>
>>><br>
>>> On Wed, Feb 03, 2010 at 05:43:51PM -0500, Geoffrey Arnold wrote:<br>
>>>> I tweaked the configure script to reflect the location of the required<br>
>>>> directories (the issue is that the `find` command used in the<br>
>>>> configure script does not traverse symlinks by default)<br>
>>><br>
>>> Unfortunatly, the option required to follow symbolic links is not<br>
>>> specified by POSIX and failed on some systems, iIrc some BSDs.<br>
>>><br>
>>> But you don't have to edit the configure script to specify the paths<br>
>>> manually. Try this:<br>
>>><br>
</div>>>> JAVA_CPPFLAGS="-I/Library/Java/Home/include" \<br>
>>> JAVA_LDFLAGS="-L/Library/Java/Home/bundle/Libraries -Wl,-rpath -Wl,/Library/Java/Home/bundle/Libraries" \<br>
<div>>>> JAVAC="/Library/Java/Home/bin/javac" \<br>
</div><div>>>> ./configure $MORE_OPTIONS<br>
>>><br>
>>> This way you can manually specify the CPP-, C- and LD-flags used when<br>
>>> compiling the java plugin. It's not nice, but it should work for all<br>
>>> installations of Java.<br>
>>><br>
>>>> I believe that the issue is with finding libjvm.dylib.<br>
>>><br>
>>> Can you provide the "config.log" created by the "configure" script? It<br>
>>> should contain *why* the java plugin was disabled.<br>
>>><br>
>>> Regards,<br>
>>> -octo<br>
>>> --<br>
>>> Florian octo Forster<br>
>>> Hacker in training<br>
>>> GnuPG: 0x91523C3D<br>
>>> <a href="http://verplant.org/" target="_blank">http://verplant.org/</a><br>
>><br>
><br>
<br>
<br>
</div><div><div></div><div>_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org" target="_blank">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/listinfo/collectd</a><br>
<br></blockquote></div><br></div>