简体   繁体   English

无法在EC2 Spark群集上安装fOptions R软件包

[英]Not able to install fOptions R package on ec2 spark cluster

I have deployed a spark cluster on ec2 using the spark-ec2 script. 我已经使用spark-ec2脚本在EC2上部署了Spark集群。 I am trying to install the 'fOptions' R package in Rstudio on the master but I am getting the following errors while the install.packages() tries to install a depedency called 'gss' 我正在尝试在主服务器上的Rstudio中安装'fOptions'R软件包,但在install.packages()尝试安装名为'gss'的功能部件时遇到以下错误

/usr/bin/ld: cannot find -lRlapack /usr/bin/ld: cannot find -lRblas / usr / bin / ld:找不到-lRlapack / usr / bin / ld:找不到-lRblas

Warning: Label 23057 at (1) defined but not used
gcc -m64 -std=gnu99 -I/usr/include/R -DNDEBUG  -I/usr/local/include    -fpic  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic  -c smolyak.c -o smolyak.o
smolyak.c: In function ‘eval’:
smolyak.c:181:10: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
smolyak.c: In function ‘calccoeff2’:
smolyak.c:381:10: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
smolyak.c: In function ‘fsum’:
smolyak.c:418:10: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable]
smolyak.c: At top level:
smolyak.c:378:8: warning: ‘calccoeff2’ defined but not used [-Wunused-function]
gcc -m64 -std=gnu99 -shared -L/usr/local/lib64 -o gss.so cdennewton.o cdennewton10.o dcoef.o dcore.o dcrdr.o ddeev.o deval.o dgold.o dmcdc.o dmudr.o dmudr0.o dmudr1.o dnewton.o dnewton10.o dprmut.o dqrslm.o drkl.o dset.o dsidr.o dsidr0.o dsms.o dstup.o dsytr.o dtrev.o gaussq.o hzdaux.o hzdnewton.o hzdnewton10.o llrmnewton.o reg.o smolyak.o -L/usr/lib64/R/lib -lRlapack -L/usr/lib64/R/lib -lRblas -lgfortran -lm -lquadmath -lgfortran -lm -lquadmath -L/usr/lib64/R/lib -lR
/usr/bin/ld: cannot find -lRlapack
/usr/bin/ld: cannot find -lRblas
collect2: ld returned 1 exit status
make: *** [gss.so] Error 1
ERROR: compilation failed for package ‘gss’
* removing ‘/home/rstudio/R/x86_64-redhat-linux-gnu-library/3.2/gss’
Warning in install.packages :
  installation of package ‘gss’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpGROBAw/downloaded_packages’

There are many more warnings too. 还有更多警告。 I also tried yum install liblpack3 libperl-dev but I get another error - no package libperl-dev available and same for other packages. 我也尝试了yum install liblpack3 libperl-dev,但是又遇到另一个错误-没有可用的软件包libperl-dev,其他软件包也一样。

Other packages like ggplot2 were successfully installed and some sample codes are running fine on the spark cluster. 其他软件包(例如ggplot2)已成功安装,并且一些示例代码在spark集群上运行良好。

Is there any solution to this error or any work around to install fOptions and its dependencies? 是否有解决此错误的方法,或者是否可以解决安装fOptions及其依赖项的问题?

That is a buggy installation of R itself. 那是R本身的错误安装。

It thinks it should have internal LAPACK and BLAS (because of the 'R' in Rlapack and Rblas) which would then automatically be part of the same R installation but they are missing. 它认为它应该具有内部LAPACK和BLAS(由于Rlapack和Rblas中的'R'),因此它们将自动成为同一R安装的一部分,但它们却丢失了。 On a 'normal' Unix system you have 在“普通” Unix系统上,

edd@max:~$ R CMD config LAPACK_LIBS
-llapack
edd@max:~$ R CMD config BLAS_LIBS
-lblas
edd@max:~$ 

and that use system versions of LAPACK and BLAS. 并使用LAPACK和BLAS的系统版本。 If and when you configure R to use its own, it shows (as here in my R-devel build) 如果并且当您将R配置为使用它自己的R时,它会显示(如我的R-devel构建中所示)

edd@max:~$ RD CMD config LAPACK_LIBS
-L/usr/local/lib/R-devel/lib/R/lib -lRlapack
edd@max:~$ RD CMD config BLAS_LIBS
-L/usr/local/lib/R-devel/lib/R/lib -lRblas
edd@max:~$ 

but also gives the location. 而且还给出了位置 So you need to sort that out with the RedHat version of R you have there. 因此,您需要使用那里的R的RedHat版本来解决这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM