I am using centOS 7. I was trying to install 'digest' package on R 3.5.0.
install.packages('digest')
But failed compilation with this error :
/usr/bin/ld: aes.o: unrecognized relocation (0x2a) in section `.text.aes_set_key' /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status
make: ***[/opt/R/3.5.0/lib64/R/share/make/shlib.mk:6: digest.so] Error 1 ERROR: compilation failed for package ‘digest’ * removing ‘/opt/R/3.5.0/lib64/R/library/digest’
Do you have any suggestions?
I have installed the library in my Ubuntu24.04 LTS using
sudo apt install binutils
Then I made sure that everything is starting fresh, so I cleaned the project using:- make clean then rebuilt it using make.
This is what worked for me, make sure to clean the project before building it again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With