| Summary: | Rscript isn't working | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Thorsten vanLil <tvl83> |
| Component: | RPM Packages | Assignee: | Luc Menut <lmenut> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | davidwhodgins, lmenut |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | affects Mga 1 & Cauldron | ||
| Source RPM: | R-base-2.13.0-1.mga1.src.rpm | CVE: | |
| Status comment: | |||
|
Luc Menut
2011-06-23 00:24:20 CEST
CC:
(none) =>
lmenut Fixed in cauldron core/release, and Mageia 1 core/updates_testing. Please test. Keywords:
(none) =>
NEEDINFO I'm installing R-base. How do I test if it's working? Also, when a package is ready for testing, please change the "assigned to" to qa-bugs@ml.mageia.org as per http://www.mageia.org/wiki/doku.php?id=updates_policy CC:
(none) =>
davidwhodgins When I think it's time for an official update request I'll open a new bug report to do so, with a test case, proposed advisory text, and proper report assignment. Thx Ahmad. Installed in Mageia 1 and it works. Should I test on cauldron also? TeaAge |
Description of problem: Rscript, which is needed to run R-Script, isn't working. If you try to run a script, you get "Rscript execution error: No such file or directory" (altough Rscript reacts normal if you don't add a script name). If you use the whole path to the script file, this is also not working. I've run "strace Rscript test.r" to check where he is looking for: execve("/home/iurt/rpm/BUILDROOT/R-base-2.13.0-1.mga1.i386/usr/lib/R/bin/R", ["/home/iurt/rpm/BUILDROOT/R-base-"..., "--slave", "--no-restore", "--file=test.r", "--args"], [/* 80 vars */]) = -1 ENOENT (No such file or directory) So, he is looking in "/home/iurt/rpm/BUILDROOT/R-base-2.13.0-1.mga1.i386/usr/lib/R/bin/R" for R, which is of course in /usr/bin/R. I've created this folder and added a symlnk to /usr/bin/R. This is working! But only, if you add to the R-Script file the whole path, like: Rscript /home/me/test.r So, the trick is: Create a symlink and add the whole path to the script-file. Very tricks. However, I didn't think it's an upstream bug, because on the SuSE machine I'm also working on, it's working properly. And the wrong path, which is used, has an 'mga' on it. Version-Release number of selected component (if applicable): How reproducible: 2.13.0 Steps to Reproduce: 1. install R-base 2. run a r-script with "Rscript test.r" or "Rscript /home/me/test.r" 3.