The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"R extension"
Follow the guidance to install R extension, but the RapidMiner complained about :
The local binary library "...\jri.dll' could not be loaded. Reason: ...\jri.dll: Can't find dependent libraries.
This might be the problem of Java path setting. Any idea?
Many thanks !!!
The local binary library "...\jri.dll' could not be loaded. Reason: ...\jri.dll: Can't find dependent libraries.
This might be the problem of Java path setting. Any idea?
Many thanks !!!
Tagged:
0
Answers
If you have installed the rJava library in R, there is a jri native library inside the jri directory of the rJava R plugin.
You have to select the jri library for your OS (jri.dll or libjri.so).
Cheers
Javier
I did install rJava and provide the path to the RapidMiner. I checked this from the Preference Setting. It is there.
But it does not work, why?
Regards
Ryu
Cheers.
Javier
I use windows xp OS and the direcotry that i put in the R extension setting is "c:\...\R\R-2.11.1\library\rJava\jri\jri.dll"
Thanks.
arzofaifo
-Gagi
I have tried everything as you suggested, but it did not succeed.
1) JAVA_HOME=C:\Program Files\Java\jdk1.6.0_21
2) Add the R and jri.dll directory to the PATH.
Any idea?
Thanks
Ryu
Beneath it you should edit the field Path and enter C:\Program Files\R\R-2.11.1\bin if you used the default installation settings.
Then when you start RM it will load longer and you will be able to enter the R console view (part with the Preferences -> R extension you've put in RM should be just like that if you installed R/library in default directory).
@Ryu, regarding XP there is no need to add R and jri.dll to Path, just R/bin (C:\Program Files\R\R-2.11.1\bin). I don't have JDK installed which is why probably my settings were a bit different.
JAVA_HOME= "C:\Program Files\Java\jre6"
jri.ddl path = "C:\Program Files\R\R-2.11.1\bin"
i try to copy the jri.ddl in the bin folder of R and both libraries to the JAVA\jre6\bin folder but have the same problem.
If you have jdk installed in your system, try to configure the JAVA_HOME like "C:\Program Files\Java\jdk1.6.0_20\jre\bin;C:\Program Files\Java\jdk1.6.0_20\bin;"
If you don't have jdk installed, try to configure the JAVA_HOME "C:\Program Files\Java\jre6\bin"
It worked for me.
Ronaldo Baltar
1. Put in your PATH the right location of your JAVA_HOME. If you don't have a JAVA_HOME then you need to create it!.
Your PATH must contain something like this: PATH=<other_paths>;%JAVA_HOME%\bin
2. You need a path to your R directory. Something like this: R_HOME=<r_directory>. Then you need to add this variable to the PATH in the same way you did the JAVA_HOME variable. PATH=<other_paths>;%R_HOME%\bin
In Unix is very similar, the difference is the way you create your variables and the way you add these ones to the PATH (Here the separator character is ':' and not a ';' like in windows).
After all that, you can restart your RM environment.
That's all!
cool to see that there are some people using (or at least trying to use) the new R Extension. Beside from the fact that installation doesn't seem to be that easy, I would be happy about any feedback to the way this extension works, what's missing, where problems and missunderstandings can arise.
I personally am not an R expert and so we might have missed some issues during design time. I would be happy if you could contribute on that way.
For people who really like the idea and want to invest a little bit more energy in that, we have a Special Interest Group, dealing with these issues of integrating R to RapidMiner. If you want to join, just write me a mail or a personal message.
Back to the original problem:
How many people still have problem with installing the extension? It seems to me that only arzofaifo's installation resists any improvements. Anyone else?
@arzofaifo
I would suggest removing the setting's value from the RapidMiners property dialog and again follow the installation instructions popping up on the next startup. I think you have messed something up somewhere there and cleaning everything and restarting from scratch will probably solve the issue.
If not, we need some more details on your installation and your steps during setup to find the error.
Greetings,
Sebastian
In fact I also had to add "C:\Program Files\R\R-2.12.0\bin\i386" to the PATH variable (in addition to "C:\Program Files\R\R-2.12.0\bin"), since the R.dll file is in the i386 folder. This has changed in version R-2.12.0 (there was no such folder in R-2.11.1).
Best
Gilbert
I think there is also a problem with recognising the PATH or JAVA_HOME variables if you set them *after* you've installed Rapidminer. I have installed the R extension on my computer at work (Vista) and at home (Windows 7) and got the same behaviour. I first set the environment variables to point to the Java installation, but restarting Rapidminer didn't start the installation guide. After uninstalling and then re-installing Rapidminer, it correctly started the installation guide for the R extension. Maybe there is a more elegant solution, and I have no idea whether a re-install will remove configuration data. In my case, I am only just starting to use Rapidminer, so it didn't matter much. Excellent tool by the way.
Gilbert
if you set system wide environment variables while a program is running, these changes does not affect the actual running program. You have to restart it completely. This holds true for command lines, too, so if you start RapidMiner from a console and do not restart the console after changing the settings, the old settings are used with which the console was started.
Greetings,
Sebastian
PS: Everybody who got it to work is welcome to give feedback to the Extension. We want to further improve it and hence need some user feedback, what's still missing, what's not as it should be, etc...
The local binary libary '...\R-2.11.1\library\rJava\jri\jri.dll' could not be loaded. Reason: ...\R-2.11.1\library\rJava\jri\jri.dll: Can't find dependent libraries.
The R folder does show up in RapidMiner in the Operators menu. However, when I try to run one of the R operators in the Process window, I get a Process Failed message: Reason: Could not initiate session with native R. Try using server. Reason: Could not initialize R via JRI. Reason: Cannot load JRI native library.
It would be very helpful to have fully enumerated directions that take a user from Help>Update RapidMIner through successful installation. Thanks in advance!
I followed suggestions in this topic, but I found that I had no jri.dll or R folder although I had installed the R extension.
I suspect you both have forgot to include the R/bin directory into your PATH variable.
If you have the newest .12 version of R installed these directories might have moved somewhere else. Please take a look for the file R.dll. This is the directory you have to insert into the path.
The Extension has been released with 2.11.1 version of R and the installation is tested on this particular version.
Greetings,
Sebastian
It must be something wrong with Java, but I do not know what.
I did the same thing (but R-2.11.1) on a brand new laptop (windows 7, 64). No problem at all. What is the problem with my desktop?
Thanks
Ryu
Thanks,
Damian
actually I thought there IS a step by step guide in the installation hints?
Greetings,
Sebastian
otherwise, there who I fixed this pb:
* copy/paste of the rapidminer step by step instructions: **to change system environment variable (java home path and system path): ***if \bin doesn't work try \bin\i386 (where do u find the R.dll)
Best,
Damian
one last suggestion before I have to ask someone to volunteer to surrender his computer so that I can track this problem
Please set the additional R_HOME environment variable as mentioned in the thread earlier. I didn't need to set it but it seems on other machines this is the case. Please set it to the installation directory of R, for example "C:\Programs\R\R-2.11.1"
If this does not help, then we actually have a problem: Since this behavior does not show up on our machines, I would like to ask you for helping me, tracing this problem. Everybody who volunteers, please do the following:
- start a new command shell. On windows type "cmd" into the "execute command" box reachable by the start menu
- execute the "set > c:\variables.txt" command and send me the resulting file c:\variables.txt by mail.
- I will then contact you with further questions or post a solution here
Greetings,Sebastian
a hint and a reminder.
Hint: Use the tool Dependency Walker (http://www.dependencywalker.com/) to load the jri.dll - you will immediately see whether it finds its dependent DLLs (such as JVM.dll, and R.dll)
Reminder: Please note (or remember) that R version 2.11.x has a different directory structure compared to version 2.12.0. So you can't simply switch between the two versions and expect the R Extension to work.
Gideon