Re: [R] package installation problem
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robin, Thanks for the tip. I already had gcc in my path, but also had to add the -lgfortran line in Makevars. Worked as you said. Cheers Robert On May 23, 2006, at 1:57 AM, Robin Hankin wrote: > Hello everyone. > > > After some very welcome offline advice, I now have the mvtnorm > package working on R-2.3.0; here is my solution for > MacOSX. > > There were two problems: first, make could not find gcc-4.0. > To solve this, add the relevant directory to PATH. For me, this is > > PATH=$PATH:/usr/local/gcc4.0/bin/ > > Now the second problem is that the file for -lgfortran can't be found. > To solve this, add > > FLIBS=-L/usr/local/gcc4.0/lib > > to the Makevars file. > > > > best wishes > > > rksh > > On 23 May 2006, at 08:25, Robin Hankin wrote: > >> (this after asking the package author) >> >> Hi >> >> I cannot install the rmvnorm package under R-2.3.0, or R-2.3.1 beta. >> It installs fine under R-2.2.1. >> >> transcript for installation under R-2.3.0 follows. >> >> >> Robin-Hankins-Computer:~/scratch% R --version >> R version 2.3.0 (2006-04-24) >> Copyright (C) 2006 R Development Core Team >> >> R is free software and comes with ABSOLUTELY NO WARRANTY. >> You are welcome to redistribute it under the terms of the >> GNU General Public License. For more information about >> these matters, see http://www.gnu.org/copyleft/gpl.html. >> >> Robin-Hankins-Computer:~/scratch% sudo R CMD INSTALL >> mvtnorm_0.7-2.tar.gz >> * Installing *source* package 'mvtnorm' ... >> ** libs >> gfortran -fPIC -fno-common -g -O2 -c mvt.f -o mvt.o >> gcc -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ >> include -I/Library/Frameworks/R.framework/Resources/include -I/sw/ >> include -I/usr/local/include -fPIC -fno-common -Wall -pedantic -O2 >> -std=gnu99 -c randomF77.c -o randomF77.o >> gcc -flat_namespace -bundle -undefined suppress -L/sw/lib -L/usr/ >> local/lib -o mvtnorm.so mvt.o randomF77.o -L/usr/local/gfortran/lib/ >> gcc/powerpc-apple-darwin8.2.0/4.1.0 -L/usr/local/gfortran/lib - >> lgfortran -lgcc_s -lSystemStubs -lSystem -F/Library/Frameworks/ >> R.framework/.. -framework R >> ** arch - i386 >> gfortran-4.0 -arch i386 -fPIC -fno-common -g -O2 -march=pentium- >> m - >> mtune=prescott -c mvt.f -o mvt.o >> make: gfortran-4.0: Command not found >> make: *** [mvt.o] Error 127 >> chmod: /Library/Frameworks/R.framework/Versions/2.3/Resources/ >> library/ >> mvtnorm/libs/i386/*: No such file or directory >> ** arch - ppc >> gfortran-4.0 -arch ppc -fPIC -fno-common -g -O2 -c mvt.f -o mvt.o >> make: gfortran-4.0: Command not found >> make: *** [mvt.o] Error 127 >> chmod: /Library/Frameworks/R.framework/Versions/2.3/Resources/ >> library/ >> mvtnorm/libs/ppc/*: No such file or directory >> ERROR: compilation failed for package 'mvtnorm' >> ** Removing '/Library/Frameworks/R.framework/Versions/2.3/Resources/ >> library/mvtnorm' >> ** Restoring previous '/Library/Frameworks/R.framework/Versions/2.3/ >> Resources/library/mvtnorm' >> Robin-Hankins-Computer:~/scratch% >> >> >> >> >> anyone? >> >> -- >> Robin Hankin >> Uncertainty Analyst >> National Oceanography Centre, Southampton >> European Way, Southampton SO14 3ZH, UK >> tel 023-8059-7743 >> >> __ >> R-help@stat.math.ethz.ch mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide! http://www.R-project.org/posting- >> guide.html > > -- > Robin Hankin > Uncertainty Analyst > National Oceanography Centre, Southampton > European Way, Southampton SO14 3ZH, UK > tel 023-8059-7743 > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting- > guide.html - -- Robert M. Ullrey Special Reportage for Crises Intervention and Mediation Reportage Spécial pour des Crises Interposition et Médiation 133 Antelope Street Woodland, CA 95695 USA mobile (téléphone cellulaire): +01-916-600-5816 Skype (téléphone international): robert.ullrey email: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEcxdQ0ZwlS5OIzRcRAo0oAJ9b3MZ7Tm2wLkMkzUiiXHcGdV3qZQCglPgu dmj4FLMI90RtDQKXwP/C0XQ= =DWc5 -END PGP SIGNATURE- __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] package installation problem
Hello everyone. After some very welcome offline advice, I now have the mvtnorm package working on R-2.3.0; here is my solution for MacOSX. There were two problems: first, make could not find gcc-4.0. To solve this, add the relevant directory to PATH. For me, this is PATH=$PATH:/usr/local/gcc4.0/bin/ Now the second problem is that the file for -lgfortran can't be found. To solve this, add FLIBS=-L/usr/local/gcc4.0/lib to the Makevars file. best wishes rksh On 23 May 2006, at 08:25, Robin Hankin wrote: > (this after asking the package author) > > Hi > > I cannot install the rmvnorm package under R-2.3.0, or R-2.3.1 beta. > It installs fine under R-2.2.1. > > transcript for installation under R-2.3.0 follows. > > > Robin-Hankins-Computer:~/scratch% R --version > R version 2.3.0 (2006-04-24) > Copyright (C) 2006 R Development Core Team > > R is free software and comes with ABSOLUTELY NO WARRANTY. > You are welcome to redistribute it under the terms of the > GNU General Public License. For more information about > these matters, see http://www.gnu.org/copyleft/gpl.html. > > Robin-Hankins-Computer:~/scratch% sudo R CMD INSTALL > mvtnorm_0.7-2.tar.gz > * Installing *source* package 'mvtnorm' ... > ** libs > gfortran -fPIC -fno-common -g -O2 -c mvt.f -o mvt.o > gcc -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ > include -I/Library/Frameworks/R.framework/Resources/include -I/sw/ > include -I/usr/local/include -fPIC -fno-common -Wall -pedantic -O2 > -std=gnu99 -c randomF77.c -o randomF77.o > gcc -flat_namespace -bundle -undefined suppress -L/sw/lib -L/usr/ > local/lib -o mvtnorm.so mvt.o randomF77.o -L/usr/local/gfortran/lib/ > gcc/powerpc-apple-darwin8.2.0/4.1.0 -L/usr/local/gfortran/lib - > lgfortran -lgcc_s -lSystemStubs -lSystem -F/Library/Frameworks/ > R.framework/.. -framework R > ** arch - i386 > gfortran-4.0 -arch i386 -fPIC -fno-common -g -O2 -march=pentium-m - > mtune=prescott -c mvt.f -o mvt.o > make: gfortran-4.0: Command not found > make: *** [mvt.o] Error 127 > chmod: /Library/Frameworks/R.framework/Versions/2.3/Resources/library/ > mvtnorm/libs/i386/*: No such file or directory > ** arch - ppc > gfortran-4.0 -arch ppc -fPIC -fno-common -g -O2 -c mvt.f -o mvt.o > make: gfortran-4.0: Command not found > make: *** [mvt.o] Error 127 > chmod: /Library/Frameworks/R.framework/Versions/2.3/Resources/library/ > mvtnorm/libs/ppc/*: No such file or directory > ERROR: compilation failed for package 'mvtnorm' > ** Removing '/Library/Frameworks/R.framework/Versions/2.3/Resources/ > library/mvtnorm' > ** Restoring previous '/Library/Frameworks/R.framework/Versions/2.3/ > Resources/library/mvtnorm' > Robin-Hankins-Computer:~/scratch% > > > > > anyone? > > -- > Robin Hankin > Uncertainty Analyst > National Oceanography Centre, Southampton > European Way, Southampton SO14 3ZH, UK > tel 023-8059-7743 > > __ > R-help@stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting- > guide.html -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] package installation problem
(this after asking the package author) Hi I cannot install the rmvnorm package under R-2.3.0, or R-2.3.1 beta. It installs fine under R-2.2.1. transcript for installation under R-2.3.0 follows. Robin-Hankins-Computer:~/scratch% R --version R version 2.3.0 (2006-04-24) Copyright (C) 2006 R Development Core Team R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License. For more information about these matters, see http://www.gnu.org/copyleft/gpl.html. Robin-Hankins-Computer:~/scratch% sudo R CMD INSTALL mvtnorm_0.7-2.tar.gz * Installing *source* package 'mvtnorm' ... ** libs gfortran -fPIC -fno-common -g -O2 -c mvt.f -o mvt.o gcc -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ include -I/Library/Frameworks/R.framework/Resources/include -I/sw/ include -I/usr/local/include -fPIC -fno-common -Wall -pedantic -O2 -std=gnu99 -c randomF77.c -o randomF77.o gcc -flat_namespace -bundle -undefined suppress -L/sw/lib -L/usr/ local/lib -o mvtnorm.so mvt.o randomF77.o -L/usr/local/gfortran/lib/ gcc/powerpc-apple-darwin8.2.0/4.1.0 -L/usr/local/gfortran/lib - lgfortran -lgcc_s -lSystemStubs -lSystem -F/Library/Frameworks/ R.framework/.. -framework R ** arch - i386 gfortran-4.0 -arch i386 -fPIC -fno-common -g -O2 -march=pentium-m - mtune=prescott -c mvt.f -o mvt.o make: gfortran-4.0: Command not found make: *** [mvt.o] Error 127 chmod: /Library/Frameworks/R.framework/Versions/2.3/Resources/library/ mvtnorm/libs/i386/*: No such file or directory ** arch - ppc gfortran-4.0 -arch ppc -fPIC -fno-common -g -O2 -c mvt.f -o mvt.o make: gfortran-4.0: Command not found make: *** [mvt.o] Error 127 chmod: /Library/Frameworks/R.framework/Versions/2.3/Resources/library/ mvtnorm/libs/ppc/*: No such file or directory ERROR: compilation failed for package 'mvtnorm' ** Removing '/Library/Frameworks/R.framework/Versions/2.3/Resources/ library/mvtnorm' ** Restoring previous '/Library/Frameworks/R.framework/Versions/2.3/ Resources/library/mvtnorm' Robin-Hankins-Computer:~/scratch% anyone? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743 __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] package installation problem
I guess either R has not been installed properly, or you have two (or more) versions of R lying around... Uwe Ligges MJK wrote: Hi, I'm running R-1.9.1 and I'm unable to succesfully install packages using either 'R CMD INSTALL xxx.tar.gz' or 'install.packages("xxx"). For example, if I try to install the msm package I get: R CMD INSTALL msm_0.4.1.tar.gz * Installing *source* package 'msm' ... ERROR: R_HOME ('/root/R-1.9.1') not found ERROR: installing package DESCRIPTION failed ** Removing '/usr/share/R-1.9.1/library/msm' In R I get: install.packages("msm") ... messages confirming succesful download are given here ... WARNING: ignoring environment value of R_HOME /root/R-1.9.1/bin/Rcmd: /root/R-1.9.1/bin/Rcmd: No such file or directory Delete downloaded files (y/N)? As you can see, R is under /usr/share/R-1.9.1 on my Slackware 9.1 Linux system. paste(file.path(R.home(),"bin","R")) gives me "/usr/share/R-1.9.1/bin/R" and Sys.getenv("R_HOME") gives me "/usr/share/R-1.9.1" as does 'R RHOME'. Everything seems fine, but I do not understand why it's trying to look for /root/R-1.9.1? How do I solve this problem? Any help is greatly appreciated! Maarten-Jan Kallen Faculty of Electrical Engineering, Mathematics and Computer Science Delft University of Technology Delft, the Netherlands __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[R] package installation problem
Hi, I'm running R-1.9.1 and I'm unable to succesfully install packages using either 'R CMD INSTALL xxx.tar.gz' or 'install.packages("xxx"). For example, if I try to install the msm package I get: R CMD INSTALL msm_0.4.1.tar.gz * Installing *source* package 'msm' ... ERROR: R_HOME ('/root/R-1.9.1') not found ERROR: installing package DESCRIPTION failed ** Removing '/usr/share/R-1.9.1/library/msm' In R I get: > install.packages("msm") ... messages confirming succesful download are given here ... WARNING: ignoring environment value of R_HOME /root/R-1.9.1/bin/Rcmd: /root/R-1.9.1/bin/Rcmd: No such file or directory Delete downloaded files (y/N)? As you can see, R is under /usr/share/R-1.9.1 on my Slackware 9.1 Linux system. paste(file.path(R.home(),"bin","R")) gives me "/usr/share/R-1.9.1/bin/R" and Sys.getenv("R_HOME") gives me "/usr/share/R-1.9.1" as does 'R RHOME'. Everything seems fine, but I do not understand why it's trying to look for /root/R-1.9.1? How do I solve this problem? Any help is greatly appreciated! Maarten-Jan Kallen Faculty of Electrical Engineering, Mathematics and Computer Science Delft University of Technology Delft, the Netherlands __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html