/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [gert.so] Error 1
ERROR: compilation failed for package ‘gert’
* removing ‘/local_data1/GUEST/med_train/software/R-4.0.2/lib64/R/library/gert’
ERROR: dependency ‘gert’ is not available for package ‘usethis’
* removing ‘/local_data1/GUEST/med_train/software/R-4.0.2/lib64/R/library/usethis’
ERROR: dependency ‘usethis’ is not available for package ‘devtools’
* removing ‘/local_data1/GUEST/med_train/software/R-4.0.2/lib64/R/library/devtools’
The downloaded source packages are in
‘/tmp/RtmpLOOk42/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning messages:
1: In install.packages("devtools") :
installation of package ‘gert’ had non-zero exit status
2: In install.packages("devtools") :
installation of package ‘usethis’ had non-zero exit status
3: In install.packages("devtools") :
installation of package ‘devtools’ had non-zero exit status
表示是ld的版本不行,因此从新安装,并设置环境变量即可
网友评论