I was trying to install the package "HurdleNormal" from GitHub using the code: remotes::install_github("amcdavid/HurdleNormal") and got the following error message.
Downloading GitHub repo amcdavid/HurdleNormal@HEAD
√ checking for file 'C:\Users\galaxywall\AppData\Local\Temp\RtmpWIcfig\remotes2f4c4e7e2a71\amcdavid-HurdleNormal-f91e584/DESCRIPTION' (608ms)
- preparing 'HurdleNormal':
√ checking DESCRIPTION meta-information ... - cleaning src
- checking for LF line-endings in source and make files and shell scripts (354ms)
- checking for empty or unneeded directories
Removed empty directory 'HurdleNormal/inst/aoas_simulations'
Removed empty directory 'HurdleNormal/inst' - looking to see if a 'data/datalist' file should be added
- building 'HurdleNormal_0.98.7.tar.gz' (394ms)
Installing package into ‘C:/Users/galaxywall/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
- installing source package 'HurdleNormal' ...
** using staged installation
** libs
*** arch - i386
C:/RBuildTools/3.5/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -I"C:/Users/galaxywall/Documents/R/win-library/3.6/RcppArmadillo/include" -I"C:/Users/galaxywall/Documents/R/win-library/3.6/Rcpp/include" -O2 -Wall -mtune=generic -c hurdle_distributions.cpp -o hurdle_distributions.o
C:/RBuildTools/3.5/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -I"C:/Users/galaxywall/Documents/R/win-library/3.6/RcppArmadillo/include" -I"C:/Users/galaxywall/Documents/R/win-library/3.6/Rcpp/include" -O2 -Wall -mtune=generic -c hurdle_likelihood.cpp -o hurdle_likelihood.o
C:/RBuildTools/3.5/mingw_32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o HurdleNormal.dll tmp.def hurdle_distributions.o hurdle_likelihood.o -LC:/PROGRA~1/R/R-36~1.2/bin/i386 -lR
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text+0x3e02): undefined reference to dgemv_' hurdle_likelihood.o:hurdle_likelihood.cpp:(.text+0x3ef2): undefined reference to
dgemv_'
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE[_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE]+0x12d): undefined reference to dgemv_' hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE[__ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE]+0x2d7): undefined reference to
dgemv'
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE[_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE]+0x5b8): undefined reference to dgemv_' hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma4gemvILb1ELb0ELb0EE15apply_blas_typeIdNS_3MatIdEEEEvPT_RKT0_PKS5_S5_S5_[__ZN4arma4gemvILb1ELb0ELb0EE15apply_blas_typeIdNS_3MatIdEEEEvPT_RKT0_PKS5_S5_S5_]+0xc6): more undefined references to
dgemv' follow
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$ZN4arma10glue_times5applyIdLb1ELb0ELb0ENS_3MatIdEES3_EEvRNS2_IT_EERKT3_RKT4_S4[ZN4arma10glue_times5applyIdLb1ELb0ELb0ENS_3MatIdEES3_EEvRNS2_IT_EERKT3_RKT4_S4]+0x17a): undefined reference to dgemm_' hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma10glue_times5applyIdLb1ELb0ELb0ENS_3MatIdEES3_EEvRNS2_IT_EERKT3_RKT4_S4_[__ZN4arma10glue_times5applyIdLb1ELb0ELb0ENS_3MatIdEES3_EEvRNS2_IT_EERKT3_RKT4_S4_]+0x397): undefined reference to
dsyrk'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'HurdleNormal'
- removing 'C:/Users/galaxywall/Documents/R/win-library/3.6/HurdleNormal'
Error: Failed to install 'HurdleNormal' from GitHub:
(converted from warning) installation of package ‘C:/Users/GALAXY~1/AppData/Local/Temp/RtmpWIcfig/file2f4c1e1c40c4/HurdleNormal_0.98.7.tar.gz’ had non-zero exit status
As I tried instead the code: devtools::install_github("amcdavid/HurdleNormal") , I got something similar.
Downloading GitHub repo amcdavid/HurdleNormal@HEAD
√ checking for file 'C:\Users\galaxywall\AppData\Local\Temp\RtmpWIcfig\remotes2f4c6e992fd3\amcdavid-HurdleNormal-f91e584/DESCRIPTION' (538ms)
- preparing 'HurdleNormal':
√ checking DESCRIPTION meta-information ... - cleaning src
- checking for LF line-endings in source and make files and shell scripts (431ms)
- checking for empty or unneeded directories
Removed empty directory 'HurdleNormal/inst/aoas_simulations'
Removed empty directory 'HurdleNormal/inst' - looking to see if a 'data/datalist' file should be added
- building 'HurdleNormal_0.98.7.tar.gz'
Installing package into ‘C:/Users/galaxywall/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
- installing source package 'HurdleNormal' ...
** using staged installation
** libs
*** arch - i386
C:/RBuildTools/3.5/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -I"C:/Users/galaxywall/Documents/R/win-library/3.6/RcppArmadillo/include" -I"C:/Users/galaxywall/Documents/R/win-library/3.6/Rcpp/include" -O2 -Wall -mtune=generic -c hurdle_distributions.cpp -o hurdle_distributions.o
C:/RBuildTools/3.5/mingw_32/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -I"C:/Users/galaxywall/Documents/R/win-library/3.6/RcppArmadillo/include" -I"C:/Users/galaxywall/Documents/R/win-library/3.6/Rcpp/include" -O2 -Wall -mtune=generic -c hurdle_likelihood.cpp -o hurdle_likelihood.o
C:/RBuildTools/3.5/mingw_32/bin/g++ -std=gnu++11 -shared -s -static-libgcc -o HurdleNormal.dll tmp.def hurdle_distributions.o hurdle_likelihood.o -LC:/PROGRA~1/R/R-36~1.2/bin/i386 -lR
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text+0x3e02): undefined reference to dgemv_' hurdle_likelihood.o:hurdle_likelihood.cpp:(.text+0x3ef2): undefined reference to
dgemv_'
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE[_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE]+0x12d): undefined reference to dgemv_' hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE[__ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE]+0x2d7): undefined reference to
dgemv'
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE[_ZN4arma27glue_times_redirect2_helperILb0EE5applyINS_3MatIdEENS_3ColIdEEEEvRNS3_INT_9elem_typeEEERKNS_4GlueIS7_T0_NS_10glue_timesEEE]+0x5b8): undefined reference to dgemv_' hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma4gemvILb1ELb0ELb0EE15apply_blas_typeIdNS_3MatIdEEEEvPT_RKT0_PKS5_S5_S5_[__ZN4arma4gemvILb1ELb0ELb0EE15apply_blas_typeIdNS_3MatIdEEEEvPT_RKT0_PKS5_S5_S5_]+0xc6): more undefined references to
dgemv' follow
hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$ZN4arma10glue_times5applyIdLb1ELb0ELb0ENS_3MatIdEES3_EEvRNS2_IT_EERKT3_RKT4_S4[ZN4arma10glue_times5applyIdLb1ELb0ELb0ENS_3MatIdEES3_EEvRNS2_IT_EERKT3_RKT4_S4]+0x17a): undefined reference to dgemm_' hurdle_likelihood.o:hurdle_likelihood.cpp:(.text$_ZN4arma10glue_times5applyIdLb1ELb0ELb0ENS_3MatIdEES3_EEvRNS2_IT_EERKT3_RKT4_S4_[__ZN4arma10glue_times5applyIdLb1ELb0ELb0ENS_3MatIdEES3_EEvRNS2_IT_EERKT3_RKT4_S4_]+0x397): undefined reference to
dsyrk'
collect2.exe: error: ld returned 1 exit status
no DLL was created
ERROR: compilation failed for package 'HurdleNormal'
- removing 'C:/Users/galaxywall/Documents/R/win-library/3.6/HurdleNormal'
Error: Failed to install 'HurdleNormal' from GitHub:
(converted from warning) installation of package ‘C:/Users/GALAXY~1/AppData/Local/Temp/RtmpWIcfig/file2f4c21d16c59/HurdleNormal_0.98.7.tar.gz’ had non-zero exit status
Could anyone help me figure out what's wrong. Thank you in advance!