Hi:
I still have problems to install R 1.6. I have tried both ways.
1- With Fink:
I deleted the whole /sw directory, installed fink again and installed
r-base. The following error prevents installation:
checking for /sw/lib/tkConfig.sh... /sw/lib/tkConfig.sh
./configure: /sw/lib/tclConfig.sh: No such file or directory
make: *** No targets specified and no makefile found. Stop.
### execution of (export failed, exit code 2
Failed: compiling r-base-1.6.0-1 failed
2- Using Jan's instructions:
http://gifi.stat.ucla.edu/pub/R-1.6.0.tar.gz
unpack the R distribution in /usr/local/lib
sudo ln -s /usr/local/lib/R/bin/R /usr/local/bin/R
Here I had the following error: ln: /usr/local/bin/R: No such file or directory
I then creatde the missing directories and the ln command went
apparently fine. However I cannot launch R and get a "command not
found error".
Any help would be greatly appreciated. I feel really stupid and find
the learning curve of unix pretty steep!
jp
Learning unix, and at the same time installing the Darwin version of
R and doing the necessary customization of your unix environment, is
a very challenging task. Don't be surprised you're having a hard
time, anyone would. There are a lot of different pieces to the
puzzle, and they all have to come together the right way.
At 7:11 PM +0200 10/17/02, Jean-Pierre Gattuso wrote:
Hi:
I still have problems to install R 1.6. I have tried both ways.
1- With Fink:
I deleted the whole /sw directory, installed fink again and
installed r-base. The following error prevents installation:
checking for /sw/lib/tkConfig.sh... /sw/lib/tkConfig.sh
./configure: /sw/lib/tclConfig.sh: No such file or directory
make: *** No targets specified and no makefile found. Stop.
### execution of (export failed, exit code 2
Failed: compiling r-base-1.6.0-1 failed
Do
fink install tcltk tcltk-dev tcltk-shlibs
and then try r-base again.
Actually, there are several other things from fink that R needs; Jan
outlined the list of them recently on R-sig-mac. Here is my list--I
am pretty sure it is complete
i atlas 3.4.1-1 Portably optimal linear algebra software.
i bzip2 1.0.2-1 Block-sorting file compressor
i dlcompat 20020929-1 Dynamic loading compatibility library
i gzip 1.2.4a-6 The gzip file compressor
i libjpeg 6b-5 JPEG image format handling library
i libjpeg-bin 6b-5 JPEG image format handling library
i libjpeg-shlibs 6b-5 JPEG image format handling library
i libpng 1.0.12-6 PNG image format handling library
i libpng-shlibs 1.0.12-6 PNG image format handling library
i ncurses 5.2-8 Full-screen ascii drawing library
i pcre 3.9-2 Perl Compatible Regular Expressions Library
i pcre-bin 3.9-2 Perl Compatible Regular Expressions Library
i pcre-shlibs 3.9-2 Perl Compatible Regular Expressions Library
i readline 4.3-5 Comfortable terminal input library
i readline-shlibs 4.3-5 Comfortable terminal input library
i tcltk 8.3.4-1 Tool Command Language and the Tk toolkit.
i tcltk-dev 8.3.4-1 Tool Command Language and the Tk toolkit.
i tcltk-shlibs 8.3.4-1 Tool Command Language and the Tk toolkit.
Atlas is optional, I'm pretty sure, and has some extra complications
of its own, so I'd skip it for now. It also takes a very long time.
If you were installing R from source code, you would also need g77 from fink
i g77 3.1-20020420-2 GNU FORTRAN77 compiler.
If your OS X is 10.1.x, then you also need "libz" from fink, but not
if it is OS X 10.2.
My fink list above is for 10.2; the version numbers will be different
for 10.1.x. There might be slight name variations in the fink for
10.1, for example, it might be "bzip" instead of "bzip2". I don't
know that for sure, but I mention it as an example of the kind of
thing to watch out for.
2- Using Jan's instructions:
http://gifi.stat.ucla.edu/pub/R-1.6.0.tar.gz
unpack the R distribution in /usr/local/lib
sudo ln -s /usr/local/lib/R/bin/R /usr/local/bin/R
Here I had the following error: ln: /usr/local/bin/R: No such file
or directory
I then creatde the missing directories and the ln command went
apparently fine. However I cannot launch R and get a "command not
found error".
Exactly what did you type when you tried to launch R?
What directory were you in when you did it? (type "pwd" if you're unsure)
(copying a few lines from your screen and pasting them into your
email can be helpful)
Probably, the explanation for this error is that you have not added
/usr/local/bin to your unix PATH environment variable. To find out,
try starting R by typing the full path to R:
/usr/local/bin/R
(note, for R installed by fink the full path to R is different: /sw/bin/R)
If R starts up, you will have verified a successful R installation.
Your job then will be to learn how to customize, or adjust, you unix
environment so that you can start R by just typing "R" instead of the
full path.
To find out what your PATH is, type
echo $PATH
or
printenv PATH
You should get a list of locations separated by colons. To add
/usr/local/bin to your PATH on a one-time basis, type
setenv PATH ${PATH}:/usr/local/bin
followed by
rehash
Then try starting R by just typing "R". If it worked using the full
path, at this point it should work with just the "R".
But this will not persist beyond your current session, nor will it
take effect in other Terminal windows.
Any time you add a new application to any location in your PATH, you have type
rehash
to let unix know there is something new there it should be aware of.
I'm not certain that rehash is needed after a change to PATH, but to
be safe, do it.
Even using Jan's instructions, you still need some of the things from
fink in order for R to have full capability. For example, R can save
graphics in PNG format, but not unless you have installed the png
things from fink.
Any help would be greatly appreciated. I feel really stupid and find
the learning curve of unix pretty steep!
To extend the analogy, not only is it steep, but you are starting not
at the beginning of the hill, but part-way up.
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
--------------------------------------
In most cases saying
fink install libfoo
will also install
libfoo-bin
libfoo-dev
libfoo-shlibs
if they exist as fink packages..
I agree with Don that one has to learn a lot of pieces to become a Mac
OS X
and Darwin person.
What can actually help quite a bit are two small O'Reilly books.
1. Learning Unix for Mac OS X
(http://www.oreilly.com/catalog/lunixmacosx/)
Do this one first. This makes you a Unix geek.
2. Mac OS X for Unix geeks (http://www.oreilly.com/catalog/mosxgeeks/)
Then do this one. It explains fink, for instance.
On Thursday, Oct 17, 2002, at 11:16 US/Pacific, Don MacQueen wrote:
Actually, there are several other things from fink that R needs; Jan
outlined the list of them recently on R-sig-mac. Here is my list--I am
pretty sure it is complete
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics
US mail: 8142 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu
www: http://www.stat.ucla.edu/~deleeuw
========================================================================
====
Remember, wherever you go, there you are. --- Buckaroo Banzai
========================================================================
====
Absolutely no reason to feel stupid -- some of us have been fortunate
to have worked on both MacOS and Unix simultaneously for a very long
time (because our servers were Suns and our desktops Mac). We
are obviously very happy with Mac OS X, but we have an unfair advantage.
Maybe this helps. Open the terminal application, then issue the
following
commands
1. curl -f -L -P - -O http://gifi.stat.ucla.edu/pub/R-1.6.0.tar.gz
2. sudo mv R-1.6.0.tar.gz /usr/local/lib
3. sudo tar zxvf R-1.6.0.tar.gz -C /usr/local/lib
4. sudo ln -s /usr/local/lib/R/bin/R /usr/local/bin/R
5. rehash
6. R
Isn't that completely intuitive ? If one of them goes wrong, let me
know.
The first five should work.
On Thursday, Oct 17, 2002, at 10:11 US/Pacific, Jean-Pierre Gattuso
wrote:
Any help would be greatly appreciated. I feel really stupid and find
the learning curve of unix pretty steep!
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics
US mail: 8142 Math Sciences Bldg, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550; fax (310)-206-5658; email: deleeuw@stat.ucla.edu
www: http://www.stat.ucla.edu/~deleeuw
========================================================================
====
Remember, wherever you go, there you are. --- Buckaroo Banzai
========================================================================
====