[R] install.packages() failed

From: Zepu Zhang <zpzhang_at_uchicago.edu>
Date: Sat 11 Feb 2006 - 16:30:38 EST


I use Mac. I installed R with the download from R-project, so R is in /usr/bin/R. My TclTk library is installed via fink (although I don't remember I intentionally installed it) so libtk8.4.dylib is in /sw/lib.

I tried to install the HDF5 package from within R:

>install.packages('hdf5')

and it failed like this



Loading Tcl/Tk interface ... Error in dyn.load(x, as.logical(local), as.logical(now)) :

        unable to load shared library '/Library/Frameworks/R.framework/ Resources/library/tcltk/libs/tcltk.so':
  dlcompat: dyld: /Library/Frameworks/R.framework/Resources/bin/exec/R can't open library: /usr/local/lib/libtk8.4.dylib (No such file or directory, errno = 2)
Error: .onLoad failed in 'loadNamespace' for 'tcltk'


Apparently R looks for libtk8.4.dylib in /usr/local/lib and doesn't know it's in / sw/lib. How can I tell R about this?

Also, I tried installing the downloaded source with

>R CMD INSTALL hdf5_1.6.0.tar.gz

and it failed because the 'configure' script of the package failed. Anybody had experience with this? If I can install with 'R CMD INSTALL', that's also good enough.

Thanks.
Zepu



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Feb 11 16:36:15 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 02 Aug 2006 - 06:16:40 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.