[R-SIG-Mac] Rcmdr & tcltk
Dan Putler
putler at sauder.ubc.ca
Tue Oct 25 16:51:22 CEST 2005
Hi Cormac,
The safest thing to do is to launch X11 _before_ starting R (R won't
start X11 itself). In addition, before loading the R Commander
package, I would do a binary installation of all of R Commander's
required packages (the list can be found on the R Commander web
site). On the Mac you are using the same package tarball as you do on
Linux. When you install the R Commander package, one of the things it
does is to make sure that all of its support packages are available,
and if some are missing, it attempts to do a source installation of
missing packages. A number of the support packages have C and fortran
code that needs to be compiled as part of the their installation. As
a result, to install these packages from source you also need to have
Apple's Xcode tools installed (which are on the software CDs that
came with your Mac) and a fortran complier (which didn't come with
your installation CDs, but can be obtained from several sources, and
is an often discussed topic on this list). Although, my guess is that
you will find the binary installation route an easier choice.
Dan
On 25-Oct-05, at 4:38 AM, Cormac Lawler wrote:
> Hi,
> I posted to r-sig-mac before, but I'm still having problems
> downloading Rcmdr. I've tried following the instructions at:
> http://socserv.socsci.mcmaster.ca/jfox/Misc/Rcmdr/installation-
> notes.html
>
> I'm still getting errors when I try to download the package from
> within R - problem seems to be TclTk packages. I asked on the R help
> list - they suggested I needed to install X11, which I did, but I
> still get this error [2].
>
> A possible problem is that i have already downloaded Rcmdr from the
> web - there are certainly plenty of files on my system, as a command-F
> confirms. These could be interfering in some way.
>
> However, i suspect that the real issue is Tcl/Tk, as the console
> details below show. I have downloaded R (base). Is there anything else
> I need to download or is there a possible bug with the CRAN base
> download or the way i've managed my files?
>
> Thanks,
> Cormac
>
> [1] Install packages - Rcmdr:
>
> trying URL 'http://www.sourcekeg.co.uk/cran/bin/macosx/2.1/PACKAGES'
> Content type 'text/plain; charset=ISO-8859-1' length 27756 bytes
> opened URL
> ==================================================
> downloaded 27Kb
>
> trying URL 'http://www.sourcekeg.co.uk/cran/bin/macosx/2.1/
> Rcmdr_1.0-2.tgz'
> Content type 'application/x-tar' length 644758 bytes
> opened URL
> ==================================================
> downloaded 629Kb
>
>
> The downloaded packages are in
> /tmp/RtmptX8Kfn/downloaded_packages
> trying URL 'http://www.sourcekeg.co.uk/cran/bin/macosx/2.1/PACKAGES'
> Content type 'text/plain; charset=ISO-8859-1' length 27756 bytes
> opened URL
> ==================================================
> downloaded 27Kb
>
>
> [2] Package manager - Rcmdr:
>
> Loading required package: tcltk
> 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: /Applications/R.app/Contents/MacOS/R can't open
> library: /usr/local/lib/libtk8.4.dylib (No such file or directory,
> errno = 2)
> In addition: Warning message:
> cannot create HTML package index in: make.packages.html()
> Error: .onLoad failed in 'loadNamespace' for 'tcltk'
> Error: package 'tcltk' could not be loaded
>
>>
>>
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
More information about the R-SIG-Mac
mailing list