Bug 1434 - Rscript isn't working
Summary: Rscript isn't working
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Luc Menut
QA Contact:
URL:
Whiteboard: affects Mga 1 & Cauldron
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 18:22 CEST by Thorsten vanLil
Modified: 2011-06-28 12:55 CEST (History)
2 users (show)

See Also:
Source RPM: R-base-2.13.0-1.mga1.src.rpm
CVE:
Status comment:


Attachments

Description Thorsten vanLil 2011-05-26 18:22:38 CEST
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.
Luc Menut 2011-06-23 00:24:20 CEST

CC: (none) => lmenut
Hardware: i586 => All
Assignee: bugsquad => lmenut
Whiteboard: (none) => affects Mga 1 & Cauldron

Comment 1 Ahmad Samir 2011-06-28 03:52:29 CEST
Fixed in cauldron core/release, and Mageia 1 core/updates_testing. Please test.

Keywords: (none) => NEEDINFO

Comment 2 Dave Hodgins 2011-06-28 09:28:57 CEST
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

Comment 3 Ahmad Samir 2011-06-28 09:46:46 CEST
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.
Comment 4 Thorsten vanLil 2011-06-28 10:40:17 CEST
Thx Ahmad.
Installed in Mageia 1 and it works.
Should I test on cauldron also?

TeaAge
Comment 5 Ahmad Samir 2011-06-28 12:55:30 CEST
No, it's the same fix.

Closing this one. The official update request for mga1 is tracked in bug 1946.

Keywords: NEEDINFO => (none)
Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.