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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Peter Dalgaard BSA
2002-Oct-03 09:08 UTC
[R] Newbie Q: Help with loading libraries in Mac OS X
Ali Al-Timimi <aaltimim at hotmail.com> writes:> 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:....> > library(tcltk) > Error in firstlib(which.lib.loc, package) : > no display name and no $DISPLAY environment variable > Error in library(tcltk) : .First.lib failedYou need to have an X11 server running for tcltk to work. (Currently, at least. There are native Mac Tcl/Tk versions but to my knowledge that's not what the tcltk package links against.) Jan de Leeuw will know the details, and I believe he also wrote them down somewhere.> Now when I try using the install.packages(), I get the following:...> 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)Yes. These are base packages and not available separately> IN THE CARBON VERSION: > > > library(tcltk) > Error in library.dynam("tcltk", pkg, lib) : > dynamic library `tcltk' not found > Error in library(tcltk) : .First.lib failedTcl/Tk is not supported under Carbon. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._