Installation of Dependency package "Conquer" Failed while installing FactoMineR

Hi Team
I have set up a RSTUDIO Server in AWS and tried installing the package "FactoMineR" which is a dependency package for "FactoExtra" for visualizing clusters.

While doing this, a dependency package "Conquer" being installed is getting failed with the below error

make: *** [smqr.o] Error 1
ERROR: compilation failed for package ‘conquer’
*** removing ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.6/conquer’**
Warning in install.packages :
** installation of package ‘conquer’ had non-zero exit status**

can someone help on how to overcome this.

1 Like

A similar error is occurring in the RStudio server on AWS.

The following AMIs are used.

RStudio Server Amazon Machine Image (AMI) - Louis Aslett
https://www.louisaslett.com/RStudio_AMI/

The error message is as follows:

smqr.cpp: In function ‘Rcpp::List smqrGauss(const mat&, arma::vec, double, double, double, double, int)’:
smqr.cpp:143:35: error: ‘quantile’ is not a member of ‘arma’
   beta(0) = arma::as_scalar(arma::quantile(Y - Z.cols(1, p) * beta.rows(1, p), quant));
                                   ^~~~~~~~
smqr.cpp: In function ‘Rcpp::List smqrGaussNsd(const mat&, const vec&, double, double, double, double, int)’:
smqr.cpp:187:35: error: ‘quantile’ is not a member of ‘arma’
   beta(0) = arma::as_scalar(arma::quantile(Y - Z.cols(1, p) * beta.rows(1, p), quant));
                                   ^~~~~~~~
smqr.cpp: In function ‘Rcpp::List smqrUnif(const mat&, arma::vec, double, double, double, double, int)’:
smqr.cpp:280:35: error: ‘quantile’ is not a member of ‘arma’
   beta(0) = arma::as_scalar(arma::quantile(Y - Z.cols(1, p) * beta.rows(1, p), quant));
                                   ^~~~~~~~
smqr.cpp: In function ‘Rcpp::List smqrUnifNsd(const mat&, const vec&, double, double, double, double, int)’:
smqr.cpp:324:35: error: ‘quantile’ is not a member of ‘arma’
   beta(0) = arma::as_scalar(arma::quantile(Y - Z.cols(1, p) * beta.rows(1, p), quant));
                                   ^~~~~~~~
smqr.cpp: In function ‘Rcpp::List smqrPara(const mat&, arma::vec, double, double, double, double, int)’:
smqr.cpp:417:35: error: ‘quantile’ is not a member of ‘arma’
   beta(0) = arma::as_scalar(arma::quantile(Y - Z.cols(1, p) * beta.rows(1, p), quant));
                                   ^~~~~~~~
smqr.cpp: In function ‘Rcpp::List smqrParaNsd(const mat&, const vec&, double, double, double, double, int)’:
smqr.cpp:461:35: error: ‘quantile’ is not a member of ‘arma’
   beta(0) = arma::as_scalar(arma::quantile(Y - Z.cols(1, p) * beta.rows(1, p), quant));
                                   ^~~~~~~~
smqr.cpp: In function ‘Rcpp::List smqrTrian(const mat&, arma::vec, double, double, double, double, int)’:
smqr.cpp:554:35: error: ‘quantile’ is not a member of ‘arma’
   beta(0) = arma::as_scalar(arma::quantile(Y - Z.cols(1, p) * beta.rows(1, p), quant));
                                   ^~~~~~~~
smqr.cpp: In function ‘Rcpp::List smqrTrianNsd(const mat&, const vec&, double, double, double, double, int)’:
smqr.cpp:598:35: error: ‘quantile’ is not a member of ‘arma’
   beta(0) = arma::as_scalar(arma::quantile(Y - Z.cols(1, p) * beta.rows(1, p), quant));
                                   ^~~~~~~~
/usr/lib/R/etc/Makeconf:176: recipe for target 'smqr.o' failed
make: *** [smqr.o] Error 1
ERROR: compilation failed for package ‘conquer’
* removing ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.6/conquer’
Warning in install.packages :
  installation of package ‘conquer’ had non-zero exit status

I fit this problem with the following command:(my system is centos7)
1.sudo yum install armadillo-devel.x86_64
2.sudo yum install armadillo
3. reinstall R package : install.packages("RcppArmadillo")
4. install.packages("conquer")

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.