尝试安装BAS软件包时收到以下错误消息。为什么编译失败?
package ‘BAS’ successfully unpacked and MD5 sums checked
** libs
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c CHg_postzbeta.c -o CHg_postzbeta.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c E.ZS.c -o E.ZS.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c ZS.approx.full.np.c -o ZS.approx.full.np.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c ZS.approx.null.np.c -o ZS.approx.null.np.o
ZS.approx.null.np.c:108:30: warning: variable 'mode' is uninitialized when used here [-Wuninitialized]
REAL(Rtheta)[4] = (double) mode;
^~~~
ZS.approx.null.np.c:90:14: note: initialize the variable 'mode' to silence this warning
double mode, logmarg, bound=0.0, epsabs, epsrel, result, abserr, *work, *ex;
^
= 0.0
1 warning generated.
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c amcmc.c -o amcmc.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c bayesglm.c -o bayesglm.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c bayesreg.c -o bayesreg.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c betapriorfamily.c -o betapriorfamily.o
clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include -fPIC -Wall -mtune=core2 -g -O2 -c cch.c -o cch.o
gfortran-4.8 -fPIC -g -O2 -c ch2inv.f -o ch2inv.o
make: gfortran-4.8: No such file or directory
make: *** [ch2inv.o] Error 1
ERROR: compilation failed for package ‘BAS’
* removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/BAS’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/BAS’
Warning in install.packages :
installation of package ‘BAS’ had non-zero exit status