[R] Redhat Linux Install

Paul Hiemstra p.hiemstra at geo.uu.nl
Mon Mar 8 10:13:58 CET 2010


Marc Schwartz wrote:
> On Mar 5, 2010, at 3:45 PM, Ryan Garner wrote:
>
>   
>> I just installed R on Redhat Linux at work for the first time and have two
>> questions.
>>
>> 1. I tried to install R to have png and cairo capabilities and was
>> unsuccessful. Before running make, I ran ./configure --with-libpng=yes
>> --with-x=no --with-cairo=yes --with-readline-yes . R installed fine, but
>> when I run R and type capabilities()
>>     
>>> capabilities()
>>>       
>>     jpeg     png        tiff       tcltk     X11       aqua       http/ftp 
>> sockets 
>>    TRUE     TRUE     TRUE     TRUE    FALSE    FALSE     TRUE      TRUE 
>>  l  ibxml    fifo         cledit     iconv     NLS      profmem    cairo 
>>    TRUE    FALSE     TRUE     TRUE     TRUE     TRUE        FALSE 
>>
>> Why are png and cairo still FALSE?
>>
>> 2. I would also like to have X11 enabled. From reading the message board,
>> the consesus seems to be to install xorg-dev. I'm unable to do this because
>> I don't have root or super user priveleges. But if I'm able to log into my
>> work servers with PuTTY and Xming and run xemacs or xvim, does this mean
>> that X11 is already installed somewhere? If so, how do I specify this when
>> doing ./configure?
>>     
>
>
> There is conflicting information here.
>
> You specified --with-x=no, yet you want X. You indicate that you "installed R", yet you do not have root access.
>
> In order to compile R from source and have the functionality that you seem to want, you will need either have root access to install the required libraries or have the SysAdmin do so. In order to install R using the defaults, you need to have root access or have your SysAdmin do so. 
>
> The required libraries are the 'dev' or development versions of the RPMs for each of the components such as libpng, cairo, readline and X. These contain the header files (.h) that are required to compile R from source and support these features. These issues are described in the R Installation and Administration manual:
>
>   http://cran.r-project.org/doc/manuals/R-admin.html
>
> The easier option would be to have the SysAdmin simply use the available RPMs for R rather than compiling from source. I presume that by Red Hat Linux, you mean RHEL. You can point your SysAdmin to the EPEL (http://fedoraproject.org/wiki/EPEL) which provides pre-built RPMs for R, installable by using 'yum'.
>   
In addition to Marc, CRAN also provides .rpm version of R [1]. It could 
be that these are newer than the ones on EPEL, but I'm not sure.

cheers,
Paul

[1] http://cran.r-project.org/bin/linux/redhat/
> If you can use ssh to login to the server using PuTTY and that supports X as you indicate, then it means that the server has been configured to support 'X forwarding' and that your ssh login is using the '-X' option to request it on your end of the connection. This means that the server supports X, but may or may not have the X related development RPMs installed, which as I note, are required to compile R from source and support X. Xming, on the other hand, I believe provides its own X server implementation, which potentially brings other issues into play. I have not used it, so would defer to others on the details.
>
> HTH,
>
> Marc Schwartz
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   


-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone:  +3130 274 3113 Mon-Tue
Phone:  +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul



More information about the R-help mailing list