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 at 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