Closed moldach closed 3 years ago
Please consider reading the R documentation, in particular about the process of R package installation, about R CMD INSTALL
and ?install.packages
.
config.log
is generated during the package installation in the directory of the package - in this case in the rJava
directory since that is the name of the package. In the example above you have used install.packages
which deletes all files if the installation is not successful. So the file was generated and then subsequently deleted.
If you wish to inspect files after an unsuccessful installation, it is probably easiest to install from the package directory:
Rscript -e 'download.packages("rJava",".")'
tar fxz rJava_0.9-13.tar.gz
R CMD INSTALL rJava
You will find the desired file in rJava/config.log
.
I would like to point out that this is an issue tracker for rJava
. For basic questions about R usage, please consider asking on the R-help mailing list since nothing mentioned here is specific to rJava
.
I'm having the same issue on
Ubuntu 20.04 LTS
and I've opened issues twice. Unfortunately I feel they were closed prematurely without successful resolution. Tickets should only be closed when the person who issued the ticket is satisfied.rJava
installation fails withchecking whether JNI programs run... configure: error: Unable to run a simple JNI program. Make sure you have configured R with Java support (see R documentation) and check config.log for failure reason.
; however, I'm unable to find theconfig.log
in order to troubleshoot this further.Completely remove Java
Install Java on Ubuntu for R
Following these instructions to install https://github.com/hannarud/r-best-practices/wiki/Installing-RJava-(Ubuntu)
As mentioned earlier, the following error asks the user to check a
config.log
file for the failure reasonDetailed log for failure reason not generated on
Ubuntu 20.04
A system-wide search verifies that this file was never generated: