[R] Newbie Q: Help with loading libraries in Mac OS X
Ali Al-Timimi
aaltimim at hotmail.com
Thu Oct 3 09:44:49 CEST 2002
I am trying to load two libraries (mclust and tcltk) in Mac OS X (10.1.5).
My R version is 1.5.1
I have tried both the Carbon version and the Darwin command line version =,
but I get the following errors:
IN DARWIN:
> library(mclust)
Error in dyn.load(x, as.logical(local), as.logical(now)) :
unable to load shared library
"/usr/local/lib/R/library/mclust/libs/mclust.so":
dlcompat: dyld: /usr/local/lib/R/bin/R.bin Undefined symbols:
/usr/local/lib/R/library/mclust/libs/mclust.so undefined reference to
_dgemv_ expected to be defined in the executable
/usr/local/lib/R/library/mclust/libs/mclust.so undefined reference to _dge
Error in library(mclust) : .First.lib failed
> library(tcltk)
Error in firstlib(which.lib.loc, package) :
no display name and no $DISPLAY environment variable
Error in library(tcltk) : .First.lib failed
Now when I try using the install.packages(), I get the following:
> install.packages(mclust)
trying URL `http://cran.r-project.org/src/contrib/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 84585 bytes
opened URL
.......... .......... .......... .......... ..........
.......... .......... .......... ..
downloaded 82Kb
Error in unique(pkgs) : Object "mclust" not found
In addition: Warning message:
argument `lib' is missing: using /usr/local/lib/R/library in:
install.packages(mclust)
> install.packages(tcltk)
trying URL `http://cran.r-project.org/src/contrib/PACKAGES'
Content type `text/plain; charset=iso-8859-1' length 84585 bytes
opened URL
.......... .......... .......... .......... ..........
.......... .......... .......... ..
downloaded 82Kb
Error in unique(pkgs) : Object "tcltk" not found
In addition: Warning message:
argument `lib' is missing: using /usr/local/lib/R/library in:
install.packages(tcltk)
IN THE CARBON VERSION:
> library(tcltk)
Error in library.dynam("tcltk", pkg, lib) :
dynamic library `tcltk' not found
Error in library(tcltk) : .First.lib failed
> library(mclust)
Error in library.dynam("mclust", pkg, lib) :
dynamic library `mclust' not found
Error in library(mclust) : .First.lib failed
Any help would be appreciated!
Thanks,
Ali
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list