Unsuccessful rJava package installation on Vultr (Ubuntu 16.04) server
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
0
down vote
favorite
I am trying to install the "rJava" R package on an Ubuntu 16 server.
I have tried a few things such as reinstalling the JDK, running a script to set the home path, and running R CMD javareconf (with -e command also).
Here is the error I am getting at this point:
* installing *source* package âÂÂrJavaâ ...
** package âÂÂrJavaâ successfully unpacked and MD5 sums checked
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 -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 : '/usr/bin/java'
archiver : '/usr/bin/jar'
compiler : '/usr/bin/javac'
header prep.: ''
cpp flags : '-I/usr/lib/jvm/java-10-oracle/include -I/usr/lib/jvm/java-10-oracle/include/linux'
java libs : '-L/usr/lib/jvm/java-10-oracle/lib/server -ljvm'
configure: error: One or more Java configuration variables are not set.
Make sure R is configured with full Java support (including JDK). Run
R CMD javareconf
as root to add Java support to R.
If you don't have root privileges, run
R CMD javareconf -e
to set all Java-related variables and then install rJava.
ERROR: configuration failed for package âÂÂrJavaâÂÂ
* removing âÂÂ/usr/local/lib/R/site-library/rJavaâÂÂ
The downloaded source packages are in
âÂÂ/tmp/Rtmp6LKO9m/downloaded_packagesâÂÂ
Warning message:
In install.packages("rJava") :
installation of package âÂÂrJavaâ had non-zero exit status
Any advice ?
16.04 server java r
add a comment |Â
up vote
0
down vote
favorite
I am trying to install the "rJava" R package on an Ubuntu 16 server.
I have tried a few things such as reinstalling the JDK, running a script to set the home path, and running R CMD javareconf (with -e command also).
Here is the error I am getting at this point:
* installing *source* package âÂÂrJavaâ ...
** package âÂÂrJavaâ successfully unpacked and MD5 sums checked
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 -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 : '/usr/bin/java'
archiver : '/usr/bin/jar'
compiler : '/usr/bin/javac'
header prep.: ''
cpp flags : '-I/usr/lib/jvm/java-10-oracle/include -I/usr/lib/jvm/java-10-oracle/include/linux'
java libs : '-L/usr/lib/jvm/java-10-oracle/lib/server -ljvm'
configure: error: One or more Java configuration variables are not set.
Make sure R is configured with full Java support (including JDK). Run
R CMD javareconf
as root to add Java support to R.
If you don't have root privileges, run
R CMD javareconf -e
to set all Java-related variables and then install rJava.
ERROR: configuration failed for package âÂÂrJavaâÂÂ
* removing âÂÂ/usr/local/lib/R/site-library/rJavaâÂÂ
The downloaded source packages are in
âÂÂ/tmp/Rtmp6LKO9m/downloaded_packagesâÂÂ
Warning message:
In install.packages("rJava") :
installation of package âÂÂrJavaâ had non-zero exit status
Any advice ?
16.04 server java r
anyone have any input?
â Emerick Larkin
May 10 at 20:59
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to install the "rJava" R package on an Ubuntu 16 server.
I have tried a few things such as reinstalling the JDK, running a script to set the home path, and running R CMD javareconf (with -e command also).
Here is the error I am getting at this point:
* installing *source* package âÂÂrJavaâ ...
** package âÂÂrJavaâ successfully unpacked and MD5 sums checked
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 -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 : '/usr/bin/java'
archiver : '/usr/bin/jar'
compiler : '/usr/bin/javac'
header prep.: ''
cpp flags : '-I/usr/lib/jvm/java-10-oracle/include -I/usr/lib/jvm/java-10-oracle/include/linux'
java libs : '-L/usr/lib/jvm/java-10-oracle/lib/server -ljvm'
configure: error: One or more Java configuration variables are not set.
Make sure R is configured with full Java support (including JDK). Run
R CMD javareconf
as root to add Java support to R.
If you don't have root privileges, run
R CMD javareconf -e
to set all Java-related variables and then install rJava.
ERROR: configuration failed for package âÂÂrJavaâÂÂ
* removing âÂÂ/usr/local/lib/R/site-library/rJavaâÂÂ
The downloaded source packages are in
âÂÂ/tmp/Rtmp6LKO9m/downloaded_packagesâÂÂ
Warning message:
In install.packages("rJava") :
installation of package âÂÂrJavaâ had non-zero exit status
Any advice ?
16.04 server java r
I am trying to install the "rJava" R package on an Ubuntu 16 server.
I have tried a few things such as reinstalling the JDK, running a script to set the home path, and running R CMD javareconf (with -e command also).
Here is the error I am getting at this point:
* installing *source* package âÂÂrJavaâ ...
** package âÂÂrJavaâ successfully unpacked and MD5 sums checked
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -std=gnu99 -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /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 -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 : '/usr/bin/java'
archiver : '/usr/bin/jar'
compiler : '/usr/bin/javac'
header prep.: ''
cpp flags : '-I/usr/lib/jvm/java-10-oracle/include -I/usr/lib/jvm/java-10-oracle/include/linux'
java libs : '-L/usr/lib/jvm/java-10-oracle/lib/server -ljvm'
configure: error: One or more Java configuration variables are not set.
Make sure R is configured with full Java support (including JDK). Run
R CMD javareconf
as root to add Java support to R.
If you don't have root privileges, run
R CMD javareconf -e
to set all Java-related variables and then install rJava.
ERROR: configuration failed for package âÂÂrJavaâÂÂ
* removing âÂÂ/usr/local/lib/R/site-library/rJavaâÂÂ
The downloaded source packages are in
âÂÂ/tmp/Rtmp6LKO9m/downloaded_packagesâÂÂ
Warning message:
In install.packages("rJava") :
installation of package âÂÂrJavaâ had non-zero exit status
Any advice ?
16.04 server java r
asked May 10 at 18:59
![](https://lh4.googleusercontent.com/-CaKVxnxIlW4/AAAAAAAAAAI/AAAAAAAACY4/Hky_Lbk8wm4/photo.jpg?sz=32)
![](https://lh4.googleusercontent.com/-CaKVxnxIlW4/AAAAAAAAAAI/AAAAAAAACY4/Hky_Lbk8wm4/photo.jpg?sz=32)
Emerick Larkin
1
1
anyone have any input?
â Emerick Larkin
May 10 at 20:59
add a comment |Â
anyone have any input?
â Emerick Larkin
May 10 at 20:59
anyone have any input?
â Emerick Larkin
May 10 at 20:59
anyone have any input?
â Emerick Larkin
May 10 at 20:59
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
Java 9,10,11 are infamous for problems with finding additional libs.
I chose to return to java 8 and NOT go with -headless version. This helped me:
sudo apt remove openjdk-10-jre-headless
sudo apt remove openjdk-11-jre-headless
sudo apt remove openjdk-8-jre-headless
sudo apt install openjdk-8-jre
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Java 9,10,11 are infamous for problems with finding additional libs.
I chose to return to java 8 and NOT go with -headless version. This helped me:
sudo apt remove openjdk-10-jre-headless
sudo apt remove openjdk-11-jre-headless
sudo apt remove openjdk-8-jre-headless
sudo apt install openjdk-8-jre
add a comment |Â
up vote
0
down vote
Java 9,10,11 are infamous for problems with finding additional libs.
I chose to return to java 8 and NOT go with -headless version. This helped me:
sudo apt remove openjdk-10-jre-headless
sudo apt remove openjdk-11-jre-headless
sudo apt remove openjdk-8-jre-headless
sudo apt install openjdk-8-jre
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Java 9,10,11 are infamous for problems with finding additional libs.
I chose to return to java 8 and NOT go with -headless version. This helped me:
sudo apt remove openjdk-10-jre-headless
sudo apt remove openjdk-11-jre-headless
sudo apt remove openjdk-8-jre-headless
sudo apt install openjdk-8-jre
Java 9,10,11 are infamous for problems with finding additional libs.
I chose to return to java 8 and NOT go with -headless version. This helped me:
sudo apt remove openjdk-10-jre-headless
sudo apt remove openjdk-11-jre-headless
sudo apt remove openjdk-8-jre-headless
sudo apt install openjdk-8-jre
answered May 13 at 19:56
Anton
1
1
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1034614%2funsuccessful-rjava-package-installation-on-vultr-ubuntu-16-04-server%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
anyone have any input?
â Emerick Larkin
May 10 at 20:59