[R] Troubles with stemming (tm + Snowball packages) under MacOS

David Winsemius dwinsemius at comcast.net
Mon Jan 16 14:47:21 CET 2012


On Jan 16, 2012, at 8:18 AM, Milan Bouchet-Valat wrote:

> Le lundi 16 janvier 2012 à 13:07 +0100, Julien Velcin a écrit :

snipped

>>> install.packages('RWeka')
>> --- Please select a CRAN mirror for use in this session ---
>> 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.14/Resources/library/tcltk/libs/x86_64/ 
>> tcltk.so':
>>   dlopen(/Library/Frameworks/R.framework/Versions/2.14/Resources/
>> library/tcltk/libs/x86_64/tcltk.so, 10): Library not loaded: /usr/
>> local/lib/libtcl8.5.dylib
>>   Referenced from: /Library/Frameworks/R.framework/Versions/2.14/
>> Resources/library/tcltk/libs/x86_64/tcltk.so
>>   Reason: image not found
> OK, I'm really not sure that's worth trying to install these  
> packages as
> root. Like I said, the fact that one user found it useful on Linux
> doesn't mean it will work for you on OS X.
>
> I think you'd better have a look at R packages in /Library/Frameworks/
> and check that Snowball, RWeka and RWekajars files have correct
> permissions (particularly the jars/ subdirectories).

The fact that the OP knows how to log in as root an a Mac suggests  
that he probably already knows that the Disk Utility.app program is  
the typical way to check and repair permissions, but I thought I would  
mention it in case my presumption is wrong.

> You should also try
> reinstalling these packages, just in case (and check no error messages
> are printed).
>

-- 

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list