immunogenomics / harmony

Fast, sensitive and accurate integration of single-cell data with Harmony
https://portals.broadinstitute.org/harmony/
Other
526 stars 100 forks source link

installation issues #217

Open vappiah opened 12 months ago

vappiah commented 12 months ago

Hi Developers, I tried installing harmony on an Ubuntu Machine and I got this error below. Please advice.

In function ‘arma::vec find_lambda_cpp(const vec&, const vec&, const std::vector<int, std::allocator >&)’: utils.cpp:127:29: error: ‘value’ is not a member of ‘arma::fill’ B_vec[b], arma::fill::value(lambda_dym));

pati-ni commented 12 months ago

Hi @vappiah, Can you post the whole build log of the error you are posting and the sessionInfo()?

vappiah commented 11 months ago

Hi @pati-ni Here is the build log

g++ -std=gnu++11 -I"/software/R-3.6.3/lib/R/include" -DNDEBUG -I"/software/R-3.6.3/lib/R/library/Rcpp/include" -I"/software/R-3.6.3/lib/R/library/RcppArmadillo/include" -I"/software/R-3.6.3/lib/R/library/RcppProgress/include" -I/usr/local/include -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o g++ -std=gnu++11 -I"/software/R-3.6.3/lib/R/include" -DNDEBUG -I"/software/R-3.6.3/lib/R/library/Rcpp/include" -I"/software/R-3.6.3/lib/R/library/RcppArmadillo/include" -I"/software/R-3.6.3/lib/R/library/RcppProgress/include" -I/usr/local/include -fpic -g -O2 -c harmony.cpp -o harmony.o g++ -std=gnu++11 -I"/software/R-3.6.3/lib/R/include" -DNDEBUG -I"/software/R-3.6.3/lib/R/library/Rcpp/include" -I"/software/R-3.6.3/lib/R/library/RcppArmadillo/include" -I"/software/R-3.6.3/lib/R/library/RcppProgress/include" -I/usr/local/include -fpic -g -O2 -c timer.cpp -o timer.o g++ -std=gnu++11 -I"/software/R-3.6.3/lib/R/include" -DNDEBUG -I"/software/R-3.6.3/lib/R/library/Rcpp/include" -I"/software/R-3.6.3/lib/R/library/RcppArmadillo/include" -I"/software/R-3.6.3/lib/R/library/RcppProgress/include" -I/usr/local/include -fpic -g -O2 -c utils.cpp -o utils.o utils.cpp: In function ‘arma::vec find_lambda_cpp(const vec&, const vec&, const std::vector<int, std::allocator >&)’: utils.cpp:127:29: error: ‘value’ is not a member of ‘arma::fill’ B_vec[b], arma::fill::value(lambda_dym)); ^~~~~ /software/R-3.6.3/lib/R/etc/Makeconf:175: recipe for target 'utils.o' failed make: *** [utils.o] Error 1 ERROR: compilation failed for package ‘harmony’ removing ‘/software/R-3.6.3/lib/R/library/harmony’

The downloaded source packages are in ‘/tmp/RtmpCv3jto/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning message: In install.packages("harmony") : installation of package ‘harmony’ had non-zero exit status

pati-ni commented 11 months ago

Hi @vappiah,

Thanks! So what I would ask is it to check how old your armadillo is..

Can you post the following output?

library(RcppArmadillo)
sessionInfo()