[R-SIG-Mac] bash R: command not found

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Dec 26 12:37:24 CET 2008


On Fri, 26 Dec 2008, pietro bulian wrote:

> Dear all,

> I'm a new user of MAC/Unix. I want R on a powerbook MAC with OS 10.3.9.

How come a new user has a long-obsolete OS?

> Following instructions I attempted to compile last version of R (2.8). 
> But it was unsuccessful (problems with dlyb).

The list archives show other people's attempts: I do not know if they were 
successful.  But as the posting guide points out, there never was a 'R 
2.8' and the current version is 2.8.1.  People would be interested to know 
the exact issues (and fixes) in the current version even on an ancient OS.

> Then I have compiled R 2.6.0, I presume succesfully since with make 
> check all it's OK. Then installed with "sudo make install". Now when I 
> type R in any directory in which an R exist the output is "bash R: 
> command not found". I see R under

> Library/Frameworks/R.framework/Versions/2.6/Resources/bin/exec
> Library/Frameworks/R.framework/Versions/2.6/Resources/bin
> pietro/Documents/downloads/R.2.6.0/bin/exec
> pietro/Documents/downloads/R.2.6.0/bin
>
> is something missing from my PATH?

Yes.  Recent CRAN build install R at /usr/bin/R (and also installs 
Rscript). If you just want command-line R, I suggest you do not build a 
framework and it will install in /usr/bin etc for you.

> echo $PATH: sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin

The presence of (presumably) /sw/bin indicates fink, and that can 
interfere with the build of R.

>
> Thanks
>
> Pietro
>
>
>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-SIG-Mac mailing list