another attempt<div><br></div><div><div>&gt; &gt; install.packages(&quot;rJava&quot;)</div><div>Error: unexpected &#39;&gt;&#39; in &quot;&gt;&quot;</div><div>&gt; Installing package(s) into ‘/home/richard/R/i686-redhat-linux-gnu-library/2.15’</div>
<div>Error: unexpected symbol in &quot;Installing package&quot;</div><div>&gt; (as ‘lib’ is unspecified)</div><div>Error: unexpected input in &quot;(as �&quot;</div><div>&gt; trying URL &#39;<a href="http://cran.stat.sfu.ca/src/contrib/rJava_0.9-3.tar.gz">http://cran.stat.sfu.ca/src/contrib/rJava_0.9-3.tar.gz</a>&#39;</div>
<div>Error: unexpected symbol in &quot;trying URL&quot;</div><div>&gt; Content type &#39;application/x-gzip&#39; length 537153 bytes (524 Kb)</div><div>Error: unexpected symbol in &quot;Content type&quot;</div><div>&gt; opened URL</div>
<div>Error: unexpected symbol in &quot;opened URL&quot;</div><div>&gt; ==================================================</div><div>Error: unexpected &#39;==&#39; in &quot;==&quot;</div><div>&gt; downloaded 524 Kb</div><div>
Error: unexpected numeric constant in &quot;downloaded 524&quot;</div><div>&gt; </div><div>&gt; * installing *source* package ‘rJava’ ...</div><div>Error: unexpected &#39;*&#39; in &quot;*&quot;</div><div>&gt; ** package ‘rJava’ successfully unpacked and MD5 sums checked</div>
<div>Error: unexpected &#39;^&#39; in &quot;**&quot;</div><div>&gt; checking for gcc... gcc -m32 -std=gnu99</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for C compiler default output file name... a.out</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking whether the C compiler works... yes</div><div>Error: unexpected symbol in &quot;checking whether&quot;</div><div>&gt; checking whether we are cross compiling... no</div>
<div>Error: unexpected symbol in &quot;checking whether&quot;</div><div>&gt; checking for suffix of executables... </div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for suffix of object files... o</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking whether we are using the GNU C compiler... yes</div><div>Error: unexpected symbol in &quot;checking whether&quot;</div><div>&gt; checking whether gcc -m32 -std=gnu99 accepts -g... yes</div>
<div>Error: unexpected symbol in &quot;checking whether&quot;</div><div>&gt; checking for gcc -m32 -std=gnu99 option to accept ISO C89... none needed</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div>
<div>&gt; checking how to run the C preprocessor... gcc -m32 -std=gnu99 -E</div><div>Error: unexpected symbol in &quot;checking how&quot;</div><div>&gt; checking for grep that handles long lines and -e... /usr/bin/grep</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for egrep... /usr/bin/grep -E</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for ANSI C header files... yes</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for sys/wait.h that is POSIX.1 compatible... yes</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for sys/types.h... yes</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for sys/stat.h... yes</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for stdlib.h... yes</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for string.h... yes</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for memory.h... yes</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for strings.h... yes</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for inttypes.h... yes</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for stdint.h... yes</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for unistd.h... yes</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for string.h... (cached) yes</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking sys/time.h usability... yes</div>
<div>Error: unexpected symbol in &quot;checking sys&quot;</div><div>&gt; checking sys/time.h presence... yes</div><div>Error: unexpected symbol in &quot;checking sys&quot;</div><div>&gt; checking for sys/time.h... yes</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for unistd.h... (cached) yes</div><div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking for an ANSI C-conforming const... yes</div>
<div>Error: unexpected &#39;for&#39; in &quot;checking for&quot;</div><div>&gt; checking whether time.h and sys/time.h may both be included... yes</div><div>Error: unexpected symbol in &quot;checking whether&quot;</div><div>
&gt; configure: checking whether gcc -m32 -std=gnu99 supports static inline...</div><div>Error: unexpected symbol in &quot;configure: checking whether&quot;</div><div>&gt; yes</div><div>Error: object &#39;yes&#39; not found</div>
<div>&gt; checking whether setjmp.h is POSIX.1 compatible... yes</div><div>Error: unexpected symbol in &quot;checking whether&quot;</div><div>&gt; checking whether sigsetjmp is declared... yes</div><div>Error: unexpected symbol in &quot;checking whether&quot;</div>
<div>&gt; checking whether siglongjmp is declared... yes</div><div>Error: unexpected symbol in &quot;checking whether&quot;</div><div>&gt; checking Java support in R... present:</div><div>Error: unexpected symbol in &quot;checking Java&quot;</div>
<div>&gt; interpreter : &#39;/bin/java&#39;</div><div>Error: object &#39;interpreter&#39; not found</div><div>&gt; archiver    : &#39;/bin/jar&#39;</div><div>Error: object &#39;archiver&#39; not found</div><div>&gt; compiler    : &#39;/bin/javac&#39;</div>
<div>Error: object &#39;compiler&#39; not found</div><div>&gt; header prep.: &#39;/bin/javah&#39;</div><div>Error: unexpected symbol in &quot;header prep.&quot;</div><div>&gt; cpp flags   : &#39;-I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/../include -I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/../include/linux&#39;</div>
<div>Error: unexpected symbol in &quot;cpp flags&quot;</div><div>&gt; java libs   : &#39;-L/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/lib/i386 -L/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/lib/i386/client -ljvm&#39;</div>
<div>Error: unexpected symbol in &quot;java libs&quot;</div><div>&gt; checking whether JNI programs can be compiled... </div><div>Error: unexpected symbol in &quot;checking whether&quot;</div><div>&gt; configure: error: Cannot compile a simple JNI program. See config.log for details.</div>
<div>Error: unexpected symbol in &quot;configure: error: Cannot compile&quot;</div><div>&gt; </div><div>&gt; Make sure you have Java Development Kit installed and correctly registered in R.</div><div>Error: unexpected symbol in &quot;Make sure&quot;</div>
<div>&gt; If in doubt, re-run &quot;R CMD javareconf&quot; as root.</div><div>Error: unexpected &#39;in&#39; in &quot;If in&quot;</div><div>&gt; </div><div>&gt; ERROR: configuration failed for package ‘rJava’</div><div>Error: unexpected symbol in &quot;ERROR: configuration failed&quot;</div>
<div>&gt; * removing ‘/home/richard/R/i686-redhat-linux-gnu-library/2.15/rJava’</div><div>Error: unexpected &#39;*&#39; in &quot;*&quot;</div><div>&gt; * restoring previous ‘/home/richard/R/i686-redhat-linux-gnu-library/2.15/rJava’</div>
<div>Error: unexpected &#39;*&#39; in &quot;*&quot;</div><div>&gt; Warning in install.packages :</div><div>Error: unexpected &#39;in&#39; in &quot;Warning in&quot;</div><div>&gt;   installation of package ‘rJava’ had non-zero exit status</div>
<div>Error: unexpected symbol in &quot;  installation of&quot;</div><div>&gt; </div><div>&gt; The downloaded source packages are in</div><div>Error: unexpected symbol in &quot;The downloaded&quot;</div><div>&gt; ‘/tmp/Rtmpz86WUb/downloaded_packages’</div>
<div>Error: unexpected input in &quot;�&quot;</div><div>&gt; &gt; library(JGR)</div><div>Error: unexpected &#39;&gt;&#39; in &quot;&gt;&quot;</div><div>&gt; Loading required package: rJava</div><div>Error: unexpected symbol in &quot;Loading required&quot;</div>
<div>&gt; Error : .onLoad failed in loadNamespace() for &#39;rJava&#39;, details:</div><div>Error: unexpected symbol in &quot;Error : .onLoad failed&quot;</div><div>&gt;   call: dyn.load(file, DLLpath = DLLpath, ...)</div>
<div>Error: &#39;...&#39; used in an incorrect context</div><div>&gt;   error: unable to load shared object &#39;/home/richard/R/i686-redhat-linux-gnu-library/2.15/rJava/libs/rJava.so&#39;:</div><div>Error: unexpected symbol in &quot;  error: unable to&quot;</div>
<div>&gt;   libjvm.so: cannot open shared object file: No such file or directory</div><div>Error: unexpected symbol in &quot;  libjvm.so: cannot open&quot;</div><div>&gt; Error: package ‘rJava’ could not be loaded</div><div>
Error: unexpected input in &quot;Error: package �&quot;</div><div>&gt; install.package(rJava)</div><div>Error: could not find function &quot;install.package&quot;</div><div>&gt; install.packages(&quot;rJava&quot;)</div><div>
Installing package(s) into ‘/home/richard/R/i686-redhat-linux-gnu-library/2.15’</div><div>(as ‘lib’ is unspecified)</div><div>--- Please select a CRAN mirror for use in this session ---</div><div>Loading Tcl/Tk interface ... done</div>
<div>trying URL &#39;<a href="http://cran.stat.sfu.ca/src/contrib/rJava_0.9-3.tar.gz">http://cran.stat.sfu.ca/src/contrib/rJava_0.9-3.tar.gz</a>&#39;</div><div>Content type &#39;application/x-gzip&#39; length 537153 bytes (524 Kb)</div>
<div>opened URL</div><div>==================================================</div><div>downloaded 524 Kb</div><div><br></div><div>* installing *source* package ‘rJava’ ...</div><div>** package ‘rJava’ successfully unpacked and MD5 sums checked</div>
<div>checking for gcc... gcc -m32 -std=gnu99</div><div>checking for C compiler default output file name... a.out</div><div>checking whether the C compiler works... yes</div><div>checking whether we are cross compiling... no</div>
<div>checking for suffix of executables... </div><div>checking for suffix of object files... o</div><div>checking whether we are using the GNU C compiler... yes</div><div>checking whether gcc -m32 -std=gnu99 accepts -g... yes</div>
<div>checking for gcc -m32 -std=gnu99 option to accept ISO C89... none needed</div><div>checking how to run the C preprocessor... gcc -m32 -std=gnu99 -E</div><div>checking for grep that handles long lines and -e... /usr/bin/grep</div>
<div>checking for egrep... /usr/bin/grep -E</div><div>checking for ANSI C header files... yes</div><div>checking for sys/wait.h that is POSIX.1 compatible... yes</div><div>checking for sys/types.h... yes</div><div>checking for sys/stat.h... yes</div>
<div>checking for stdlib.h... yes</div><div>checking for string.h... yes</div><div>checking for memory.h... yes</div><div>checking for strings.h... yes</div><div>checking for inttypes.h... yes</div><div>checking for stdint.h... yes</div>
<div>checking for unistd.h... yes</div><div>checking for string.h... (cached) yes</div><div>checking sys/time.h usability... yes</div><div>checking sys/time.h presence... yes</div><div>checking for sys/time.h... yes</div>
<div>checking for unistd.h... (cached) yes</div><div>checking for an ANSI C-conforming const... yes</div><div>checking whether time.h and sys/time.h may both be included... yes</div><div>configure: checking whether gcc -m32 -std=gnu99 supports static inline...</div>
<div>yes</div><div>checking whether setjmp.h is POSIX.1 compatible... yes</div><div>checking whether sigsetjmp is declared... yes</div><div>checking whether siglongjmp is declared... yes</div><div>checking Java support in R... present:</div>
<div>interpreter : &#39;/bin/java&#39;</div><div>archiver    : &#39;/bin/jar&#39;</div><div>compiler    : &#39;/bin/javac&#39;</div><div>header prep.: &#39;/bin/javah&#39;</div><div>cpp flags   : &#39;-I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/../include -I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/../include/linux&#39;</div>
<div>java libs   : &#39;-L/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/lib/i386 -L/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/lib/i386/client -ljvm&#39;</div><div>checking whether JNI programs can be compiled... configure: error: Cannot compile a simple JNI program. See config.log for details.</div>
<div><br></div><div>Make sure you have Java Development Kit installed and correctly registered in R.</div><div>If in doubt, re-run &quot;R CMD javareconf&quot; as root.</div><div><br></div><div>ERROR: configuration failed for package ‘rJava’</div>
<div>* removing ‘/home/richard/R/i686-redhat-linux-gnu-library/2.15/rJava’</div><div>* restoring previous ‘/home/richard/R/i686-redhat-linux-gnu-library/2.15/rJava’</div><div><br></div><div>The downloaded source packages are in</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>‘/tmp/Rtmp6R1lbj/downloaded_packages’</div><div>Warning message:</div><div>In install.packages(&quot;rJava&quot;) :</div><div>  installation of package ‘rJava’ had non-zero exit status</div>
<br><div class="gmail_quote">On Mon, Oct 22, 2012 at 6:39 PM, Richard Vickery <span dir="ltr">&lt;<a href="mailto:richard.vickeryrv@gmail.com" target="_blank">richard.vickeryrv@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
sorry I mistakenly deleted the R discussion from my inbox. Here is what I get back:<div><br></div><div><span style="border-collapse:separate;font-family:&#39;DejaVu Sans Mono&#39;;font-size:13px;line-height:16px;white-space:pre-wrap;border-spacing:0px;background-color:rgb(225,226,229)"><pre style="font-family:&#39;DejaVu Sans Mono&#39;;font-size:10pt!important;outline:none;border-style:none;white-space:pre-wrap!important;margin-top:0px;margin-bottom:0px;line-height:1.25">
<span style="white-space:pre-wrap;color:blue">&gt; </span><span style="color:blue">install.packages(&quot;rJava&quot;)
</span><span>Installing package(s) into ‘/home/richard/R/i686-redhat-linux-gnu-library/2.15’
(as ‘lib’ is unspecified)
</span><span>trying URL &#39;<a href="http://cran.stat.sfu.ca/src/contrib/rJava_0.9-3.tar.gz" target="_blank">http://cran.stat.sfu.ca/src/contrib/rJava_0.9-3.tar.gz</a>&#39;
</span><span>Content type &#39;application/x-gzip&#39;</span><span> length 537153 bytes (524 Kb)
</span><span>opened URL
</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>=</span><span>
</span><span>downloaded 524 Kb

</span><span>* installing *source* package ‘rJava’ ...
</span><span>** package ‘rJava’ successfully unpacked and MD5 sums checked
</span>checking for gcc... gcc -m32 -std=gnu99
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -m32 -std=gnu99 accepts -g... yes
checking for gcc -m32 -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -m32 -std=gnu99 -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
configure: checking whether gcc -m32 -std=gnu99 supports static inline...
yes
checking whether setjmp.h is POSIX.1 compatible... yes
checking whether sigsetjmp is declared... yes
checking whether siglongjmp is declared... yes
checking Java support in R... present:
interpreter : &#39;/bin/java&#39;
archiver    : &#39;/bin/jar&#39;
compiler    : &#39;/bin/javac&#39;
header prep.: &#39;/bin/javah&#39;
cpp flags   : &#39;-I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/../include -I/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/../include/linux&#39;
java libs   : &#39;-L/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/lib/i386 -L/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.6/jre/lib/i386/client -ljvm&#39;
checking whether JNI programs can be compiled... 
<span>configure: error: Cannot compile a simple JNI program. See config.log for details.

Make sure you have Java Development Kit installed and correctly registered in R.
If in doubt, re-run &quot;R CMD javareconf&quot; as root.

</span><span>ERROR: configuration failed for package ‘rJava’
</span><span>* removing ‘/home/richard/R/i686-redhat-linux-gnu-library/2.15/rJava’
</span><span>* restoring previous ‘/home/richard/R/i686-redhat-linux-gnu-library/2.15/rJava’
</span>Warning in install.packages :
  installation of package ‘rJava’ had non-zero exit status

The downloaded source packages are in
        ‘/tmp/Rtmpz86WUb/downloaded_packages’
<span style="white-space:pre-wrap;color:blue">&gt; </span><span style="color:blue">library(JGR)
</span><span>Loading required package: rJava
</span><span>Error : .onLoad failed in loadNamespace() for &#39;rJava&#39;, details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object &#39;/home/richard/R/i686-redhat-linux-gnu-library/2.15/rJava/libs/rJava.so&#39;:
  libjvm.so: cannot open shared object file: No such file or directory
</span><span>Error: package ‘rJava’ could not be loaded</span></pre></span></div>
</blockquote></div><br></div>