[R] RPMs needed to compile R using the tar.gz file

peter dalgaard pdalgd at gmail.com
Fri Aug 5 14:32:29 CEST 2011


On Aug 5, 2011, at 14:10 , Alexander Engelhardt wrote:

> Am 05.08.2011 12:24, schrieb Patrick Connolly:
>> I don't wish to install R by rpm.  I need to know what Fedora rpms I
>> need to install to give me the capability to install R using the
>> tar.gz source file as I've done for years.
> 
> Try this command:
> 
> rpm -qpR your_R.rpm | xargs rpm -ivh
> 
> The part before the pipe symbol lists all dependent packages, and the xargs command uses those packages and appends them to 'rpm -ivh'.
> I guess you'll need the R rpm to check for its dependencies, but you don't have to install it.
> 
> I didn't test the command, but I guess it will work, maybe with some minor tweaking.

The command will likely work, but it might not give the right answer.

In some cases, you'll need -devel version of the RPMs, and they are not necessarily required by the binary RPM of R. So take Brian's advice over on R-devel. (Or do it the sloppy way that I have always used on Linuxen: Get a basic install going, and whenever a capability turns out to be missing, figure out which -devel RPM is needed and install it; lather, rinse, repeat...)

-pd

PS: The wisdom of saving, say, 20K of header files on installing a multi-megabyte library, just because "ordinary users don't need them" has always eluded me. I think it is against the spirit of free software to artificially separate users and programmers like that, but that's the way things are.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com
"Døden skal tape!" --- Nordahl Grieg



More information about the R-help mailing list