[R-SIG-Mac] Cannot load tcl/tk (tcltk package installed)
Simon Urbanek
simon.urbanek at r-project.org
Fri Aug 31 01:09:55 CEST 2012
On Aug 30, 2012, at 6:48 PM, Anca Chereches wrote:
> Well, d'oh. I only just realized that the error message is saying that tk is looking for x11r6 in /usr and obviously not finding anything. Is this a matter of setting paths or are x11 and x11r6 different things?
>
You should create a symlink
sudo ln -s X11 /usr/X11R6
However, it's still a bit puzzling why you don't have that symlink, because Apple's X11 does create it...
Cheers,
Simon
> Thank you,
> Anca
>
>
> On Thu Aug 30 18:24:14 2012, Anca Chereches wrote:
>> rrsdhcp-10-32-137-61:~ acasa$ file /usr/X11R6/lib/libX11.6.dylib
>> /usr/X11R6/lib/libX11.6.dylib: cannot open
>> `/usr/X11R6/lib/libX11.6.dylib' (No such file or directory)
>>
>> No X11R6 folder, but I do have an X11 folder:
>>
>> rrsdhcp-10-32-137-61:~ acasa$ file /usr/X11/lib/libX11.6.dylib
>> /usr/X11/lib/libX11.6.dylib: Mach-O universal binary with 3 architectures
>> /usr/X11/lib/libX11.6.dylib (for architecture x86_64): Mach-O
>> 64-bit dynamically linked shared library x86_64
>> /usr/X11/lib/libX11.6.dylib (for architecture i386): Mach-O
>> dynamically linked shared library i386
>> /usr/X11/lib/libX11.6.dylib (for architecture ppc7400): Mach-O
>> dynamically linked shared library ppc
>>
>>
>> Thank you,
>> Anca
>>
>>
>> On Thu Aug 30 17:19:22 2012, Simon Urbanek wrote:
>>>
>>> On Aug 30, 2012, at 4:20 PM, Anca Chereches <anca.che at gmail.com> wrote:
>>>
>>>> Hello,
>>>>
>>>> I'm getting the following error message when trying to load tcltk:
>>>>
>>>> "Loading Tcl/Tk interface ... Error : .onLoad failed in
>>>> loadNamespace() for 'tcltk', details:
>>>> call: dyn.load(file, DLLpath = DLLpath, ...)
>>>> error: unable to load shared object
>>>> '/Library/Frameworks/R.framework/Versions/2.15/Resources/library/tcltk/libs/i386/tcltk.so':
>>>>
>>>> dlopen(/Library/Frameworks/R.framework/Versions/2.15/Resources/library/tcltk/libs/i386/tcltk.so,
>>>> 10): Library not loaded: /usr/X11R6/lib/libX11.6.dylib
>>>> Referenced from: /usr/local/lib/libtk8.5.dylib
>>>> Reason: image not found
>>>> Error: package/namespace load failed for ‘tcltk’"
>>>>
>>>> I've installed tcltk-8.5.5 from the dmg on cran and as far as I can
>>>> tell installation was successful. I have tk8.5 and tcl8.5 in
>>>> /usr/local/lib. X11 is also installed and working.
>>>>
>>>> I'm running:
>>>> R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows"
>>>> R.app GUI 1.52 (6188) i386-apple-darwin9.8.0
>>>> On: Mac OS X 10.6.8
>>>>
>>>> I don't really know how to go about figuring out the problem. I'd be
>>>> grateful for any hints or suggestions of help pages and so on. I've
>>>> googled this, but most problems seem to be related to people not
>>>> having installed tcltk, which I have.
>>>>
>>>
>>> Please post the output of
>>>
>>> file /usr/X11R6/lib/libX11.6.dylib
>>>
>>> you should see something like
>>>
>>> $ file /usr/X11R6/lib/libX11.6.dylib
>>> /usr/X11R6/lib/libX11.6.dylib: Mach-O universal binary with 3
>>> architectures
>>> /usr/X11R6/lib/libX11.6.dylib (for architecture x86_64): Mach-O
>>> 64-bit dynamically linked shared library x86_64
>>> /usr/X11R6/lib/libX11.6.dylib (for architecture i386): Mach-O
>>> dynamically linked shared library i386
>>> /usr/X11R6/lib/libX11.6.dylib (for architecture ppc7400): Mach-O
>>> dynamically linked shared library ppc
>>>
>>> if your X11 is installed properly.
>>>
>>> Thanks,
>>> Simon
>>>
>
>
More information about the R-SIG-Mac
mailing list