[R] Troubles with stemming (tm + Snowball packages) under MacOS
Milan Bouchet-Valat
nalimilan at club.fr
Mon Jan 16 14:18:22 CET 2012
Le lundi 16 janvier 2012 à 13:07 +0100, Julien Velcin a écrit :
> Ok but unfortunately JGR doesn't work when run as root! I think this
> is because the packages needed (e.g., rWeka) are installed locally
> (for the user). The installation "at system level (in R framework)"
> fails:
>
> "Currently it is not possible to install binary packages from a remote
> repository as root.
> Please use the CRAN binary of R to allow admin users to install system-
> wide packages without becoming root. Alternatively you can either use
> command-line version of R as root or install the packages from local
> files."
>
> If I follow these advices (launch R as a root and try to install the
> package manually):
>
> > 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). You should also try
reinstalling these packages, just in case (and check no error messages
are printed).
If it doesn't work, I'll wait for Kurt to step in, as I'm going to waste
your time on silly attempts if I go on. ;-)
More information about the R-help
mailing list