Dear All, I have tried to install the tensor package (from: http://cran.r-project.org/src/contrib/PACKAGES.html#tensor ), using the comand: " shell("Rcmd INSTALL tensor") " then I got the following mensage: ---------------------------------------------------------------------------------- make: Entering directory `/d/bin/cran/rw1022/src/gnuwin32' make DLLNM= EXTRADOCS= \ -C D:/bin/cran/tucker/tensor PKG=tensor RHOME=d:/bin/cran/rw1022 RLIB=d:/bin/cran/rw1022/library \ -f d:/bin/cran/rw1022/src/gnuwin32/MakePkg make[1]: Entering directory `/d/bin/cran/tucker/tensor' ---------- Making package tensor ------------ mkdir -p d:/bin/cran/rw1022/library/tensor cp -r ./DESCRIPTION ./INDEX ./TITLE d:/bin/cran/rw1022/library/tensor/ adding build stamp to DESCRIPTION installing R files making DLL make[2]: Entering directory `/d/bin/cran/tucker/tensor/src' make[3]: `libR.a' is up to date. make[2]: Leaving directory `/d/bin/cran/tucker/tensor/src' mkdir -p d:/bin/cran/rw1022/library/tensor/libs cp src/tensor.dll d:/bin/cran/rw1022/library/tensor/libs/tensor.dll make[1]: Leaving directory `/d/bin/cran/tucker/tensor' make -C ./help RHOME=d:/bin/cran/rw1022 PKGDIR=D:/bin/cran/tucker RLIB=d:/bin/cran/rw1022/library help-tensor make[1]: Entering directory `/d/bin/cran/rw1022/src/gnuwin32/help' PERL5LIB=d:/bin/cran/rw1022/share/perl perl build.help -txt -html -example -latex D:/bin/cran/tucker/tensor d:/bin/cran/rw1022/library >>> Building/Updating help pages for package `tensor' Formats: text html latex example tensor text html latex example make[1]: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32/help' make -C ./help RHOME=d:/bin/cran/rw1022 PKGDIR=D:/bin/cran/tucker RLIB=d:/bin/cran/rw1022/library contents-tensor make[1]: Entering directory `/d/bin/cran/rw1022/src/gnuwin32/help' perl Rd2contents D:/bin/cran/tucker/tensor d:/bin/cran/rw1022/library/tensor/CONTENTS cat d:/bin/cran/rw1022/library/*/CONTENTS > d:/bin/cran/rw1022/doc/html/search/index.txt PERL5LIB=d:/bin/cran/rw1022/share/perl perl build.help -htmllists make[1]: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32/help' make -C ./help RHOME=d:/bin/cran/rw1022 PKGDIR=D:/bin/cran/tucker RLIB=d:/bin/cran/rw1022/library chm-tensor make[1]: Entering directory `/d/bin/cran/rw1022/src/gnuwin32/help' PERL5LIB=d:/bin/cran/rw1022/share/perl perl build.help -chm D:/bin/cran/tucker/tensor d:/bin/cran/rw1022/library >>> Building/Updating help pages for package `tensor' Formats: chm make --no-print-directory -C D:/bin/cran/tucker/tensor/chm -f d:/bin/cran/rw1022/src/gnuwin32/help/Makefile tensor.chm hhc tensor.hhp make[2]: hhc: Command not found make[2]: [tensor.chm] Error 127 (ignored) mkdir -p d:/bin/cran/rw1022/library/tensor/chtml cp D:/bin/cran/tucker/tensor/chm/tensor.chm d:/bin/cran/rw1022/library/tensor/chtml cp: D:/bin/cran/tucker/tensor/chm/tensor.chm: No such file or directory make[1]: *** [chm-tensor] Error 1 make[1]: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32/help' make: *** [pkg-tensor] Error 2 make: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32' *** Installation of tensor failed *** ------------------------------------------------------------------------------------------- I supposed that the problem was in the file(d:/bin/cran/rw1022/src/gnuwin32/help/Makefile), then I commented the followings lines in this file: ---------------------------------------------------------------------------- # $(MAKE) --no-print-directory -C $(PKGDIR)/$*/chm -f $(RHOME)/src/gnuwin32/help/Makefile $*.chm $(MKDIR) -p $(RLIB)/$*/chtml # $(CP) $(PKGDIR)/$*/chm/$*.chm $(RLIB)/$*/chtml ---------------------------------------------------------------------------- and I got : -----------------------------------------------------------------------------------------------------> shell("Rcmd INSTALL tensor")make: Entering directory `/d/bin/cran/rw1022/src/gnuwin32' make DLLNM= EXTRADOCS= \ -C D:/bin/cran/tucker/tensor PKG=tensor RHOME=d:/bin/cran/rw1022 RLIB=d:/bin/cran/rw1022/library \ -f d:/bin/cran/rw1022/src/gnuwin32/MakePkg make[1]: Entering directory `/d/bin/cran/tucker/tensor' ---------- Making package tensor ------------ mkdir -p d:/bin/cran/rw1022/library/tensor cp -r ./DESCRIPTION ./INDEX ./TITLE d:/bin/cran/rw1022/library/tensor/ adding build stamp to DESCRIPTION installing R files making DLL make[2]: Entering directory `/d/bin/cran/tucker/tensor/src' make[3]: `libR.a' is up to date. make[2]: Leaving directory `/d/bin/cran/tucker/tensor/src' mkdir -p d:/bin/cran/rw1022/library/tensor/libs cp src/tensor.dll d:/bin/cran/rw1022/library/tensor/libs/tensor.dll make[1]: Leaving directory `/d/bin/cran/tucker/tensor' make -C ./help RHOME=d:/bin/cran/rw1022 PKGDIR=D:/bin/cran/tucker RLIB=d:/bin/cran/rw1022/library help-tensor make[1]: Entering directory `/d/bin/cran/rw1022/src/gnuwin32/help' PERL5LIB=d:/bin/cran/rw1022/share/perl perl build.help -txt -html -example -latex D:/bin/cran/tucker/tensor d:/bin/cran/rw1022/library >>> Building/Updating help pages for package `tensor' Formats: text html latex example tensor text html latex example make[1]: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32/help' make -C ./help RHOME=d:/bin/cran/rw1022 PKGDIR=D:/bin/cran/tucker RLIB=d:/bin/cran/rw1022/library contents-tensor make[1]: Entering directory `/d/bin/cran/rw1022/src/gnuwin32/help' perl Rd2contents D:/bin/cran/tucker/tensor d:/bin/cran/rw1022/library/tensor/CONTENTS cat d:/bin/cran/rw1022/library/*/CONTENTS > d:/bin/cran/rw1022/doc/html/search/index.txt PERL5LIB=d:/bin/cran/rw1022/share/perl perl build.help -htmllists make[1]: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32/help' make -C ./help RHOME=d:/bin/cran/rw1022 PKGDIR=D:/bin/cran/tucker RLIB=d:/bin/cran/rw1022/library chm-tensor make[1]: Entering directory `/d/bin/cran/rw1022/src/gnuwin32/help' PERL5LIB=d:/bin/cran/rw1022/share/perl perl build.help -chm D:/bin/cran/tucker/tensor d:/bin/cran/rw1022/library >>> Building/Updating help pages for package `tensor' Formats: chm mkdir -p d:/bin/cran/rw1022/library/tensor/chtml make[1]: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32/help' make: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32' ------------------------------------------------------------------------------------------------------------ When I tried the comand : library(tensor) and I got : ----------------------------------------------------------------------------------------------- Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "D:/bin/cran/rw1022/library/tensor/libs/tensor.dll": LoadLibrary failure: A dynamic link library (DLL) initialization routine failed. Error in library(tensor) : .First.lib failed ----------------------------------------------------------------------------------------- Did I missed some important point ? Does any one can help me? Regards, Marlon!!! P. S.: I'm using a Windows version. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Fri, 27 Apr 2001, Marlon Martins dos Reis wrote:> Dear All, > > I have tried to install the tensor package (from: > http://cran.r-project.org/src/contrib/PACKAGES.html#tensor ), using the > comand: > " > shell("Rcmd INSTALL tensor") > " > then I got the following mensage:[...]> hhc tensor.hhp > make[2]: hhc: Command not found > make[2]: [tensor.chm] Error 127 (ignored) > mkdir -p d:/bin/cran/rw1022/library/tensor/chtml > cp D:/bin/cran/tucker/tensor/chm/tensor.chm > d:/bin/cran/rw1022/library/tensor/chtml > cp: D:/bin/cran/tucker/tensor/chm/tensor.chm: No such file or directory > make[1]: *** [chm-tensor] Error 1 > make[1]: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32/help' > make: *** [pkg-tensor] Error 2 > make: Leaving directory `/d/bin/cran/rw1022/src/gnuwin32' > *** Installation of tensor failed *** > > > ------------------------------------------------------------------------------------------- > > I supposed that the problem was in the > file(d:/bin/cran/rw1022/src/gnuwin32/help/Makefile), then I commented > the followings lines in this file:Don't, please. You have changed somehow the line WINHELP = NO # Use one of NO, CHM, BOTH (chm and winhelp) in src/gnuwin32/Makefile. Either install the HTML Help workshop (see readme.packages) or revert to the default. (Or you are using a complete source distribution and not following the instructions in INSTALL ....)> When I tried the comand : > library(tensor) > and I got : > ----------------------------------------------------------------------------------------------- > > Error in dyn.load(x, as.logical(local), as.logical(now)) : > unable to load shared library > "D:/bin/cran/rw1022/library/tensor/libs/tensor.dll": > LoadLibrary failure: A dynamic link library (DLL) initialization > routine failed. > Error in library(tensor) : .First.lib failed > ----------------------------------------------------------------------------------------- > > Did I missed some important point ?Once again, it looks like a compiler problem. Compiling this package worked on my system with no problems. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._