Karin Groothuis
2009-Nov-30 21:17 UTC
[R] error when installing Rcmdr / tcltk on a Apple laptop
Hello, I have installed R on my Apple Laptop. Next I wanted to install the package Rcmdr which requires the package tcltk. But then I get errors like: The downloaded packages are in /var/folders/0p/0pD8fDrwHouNDsQ+k8dGmU+++TI/-Tmp-//RtmpSp4q7p/ downloaded_packages Loading required package: tcltk Loading Tcl/Tk interface ... Error in dyn.load(file, DLLpath = DLLpath, ...) : unable to load shared library '/Library/Frameworks/R.framework/ Resources/library/tcltk/libs/i386/tcltk.so': dlopen(/Library/Frameworks/R.framework/Resources/library/tcltk/libs/ i386/tcltk.so, 10): Library not loaded: /usr/local/lib/libtcl8.5.dylib Referenced from: /Library/Frameworks/R.framework/Resources/library/ tcltk/libs/i386/tcltk.so Reason: image not found etcetera Can anyone give me a clue? Thanks, Karin Oudshoorn
Prof Brian Ripley
2009-Nov-30 21:35 UTC
[R] error when installing Rcmdr / tcltk on a Apple laptop
On Mon, 30 Nov 2009, Karin Groothuis wrote:> Hello, > > I have installed R on my Apple Laptop. Next I wanted to install the package > Rcmdr which requires the package tcltk. But then I get errors like: > > The downloaded packages are in > /var/folders/0p/0pD8fDrwHouNDsQ+k8dGmU+++TI/-Tmp-//RtmpSp4q7p/downloaded_packages > Loading required package: tcltk > Loading Tcl/Tk interface ... Error in dyn.load(file, DLLpath = DLLpath, ...) > : > unable to load shared library > '/Library/Frameworks/R.framework/Resources/library/tcltk/libs/i386/tcltk.so': > dlopen(/Library/Frameworks/R.framework/Resources/library/tcltk/libs/i386/tcltk.so, > 10): Library not loaded: /usr/local/lib/libtcl8.5.dylib > Referenced from: > /Library/Frameworks/R.framework/Resources/library/tcltk/libs/i386/tcltk.so > Reason: image not found > etcetera > > Can anyone give me a clue?It would be better to ask on R-sig-mac with full details as to bow you installed R. But I expect you overlooked http://cran.r-project.org/bin/macosx/tools/ and the tcltk .dmg. You do need it if you just installed the 'leopard' .pkg for 2.10.0 (earlier .dmg for R came with it).> Thanks, > > Karin Oudshoorn-- 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