title: openNLP on a mac
body: <p>I am not familiar with Mac (I use Windows and Linux Mint) but have a package that I need to be able to tell people on all platforms how to build.  This package relies on <code>openNLP</code> and because of <a href="http://www.r-project.org/nosvn/R.check/r-release-macosx-ix86/openNLP-00check.html" rel="nofollow noreferrer">encoding issues</a> with the MacOS X does not install via <code>install.packages(&quot;openNLP&quot;)</code>.</p>
  <p>I have had people tell me you can still install using <code>install.packages(&quot;openNLP&quot;, type=&quot;source&quot;)</code> but I get the following message:</p>
  <pre><code>&gt; install.packages(&quot;openNLP&quot;, type=&quot;source&quot;)
  trying URL 'http://cran.rstudio.com/src/contrib/openNLP_0.0-8.tar.gz'
  Content type 'application/x-gzip' length 807784 bytes (788 Kb)
  opened URL
  ==================================================
  downloaded 788 Kb
  
  * installing *source* package ‘openNLP’ ...
  /Library/Frameworks/R.framework/Resources/bin/config: line 142: make:
  command not found
  /Library/Frameworks/R.framework/Resources/bin/config: line 143: make:
  command not found
  /Library/Frameworks/R.framework/Resources/bin/config: line 219: make:
  command not found
  Could not determine the Java interpreter.
  Maybe run R CMD javareconf?
  ERROR: configuration failed for package ‘openNLP’
  * removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/openNLP’
  
  The downloaded source packages are in
          ‘/private/var/folders/YW/YWal638NEwi-tFse3NsBFk+++TM/-Tmp-/RtmpaWdKnC/downloaded_packages’
  Warning message:
  In install.packages(&quot;openNLP&quot;, type = &quot;source&quot;) :
    installation of package ‘openNLP’ had non-zero exit status
  </code></pre>
  <p>So I use Mac''s temrinal to do the suggested <code>R CMD javareconf</code>:</p>
  <pre><code>Java interpreter : /usr/bin/java
  Java version     : 1.6.0_37
  Java home path   :
  /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  Java compiler    : /usr/bin/javac
  Java headers gen.: /usr/bin/javah
  Java archive tool: /usr/bin/jar
  Java library path:
  JNI linker flags : -framework JavaVM
  JNI cpp flags    : -I$(JAVA_HOME)/include
  
  Updating Java configuration in /Library/Frameworks/R.framework/Resources
  Done.
  </code></pre>
  <p>And try closing out R, re-opening and then <code>install.packages(&quot;openNLP&quot;, type=&quot;source&quot;)</code> but the same message occurs.  Google has not helped me here and I am very unfamiliar with Mac.  I assume it has to do with the type of java installed but know too little about Mac to play aimlessly as this is not my Mac machine.</p>
  <p>Please direct me with getting openNLP to install correctly.</p>