I'm following the install and build instructions for PROmiRNA and have reached the 'make' stage where I hit this error:
Scanning dependencies of target PROmiRNA
[ 10%] Building CXX object CMakeFiles/PROmiRNA.dir/PROmiRNA.cpp.o
[ 20%] Building CXX object CMakeFiles/PROmiRNA.dir/CD-HIT/cdhit-common.c++.o
[ 30%] Building CXX object CMakeFiles/PROmiRNA.dir/CD-HIT/cdhit-utility.c++.o
[ 40%] Building CXX object CMakeFiles/PROmiRNA.dir/CD-HIT/cdhit-est.c++.o
[ 50%] Building CXX object CMakeFiles/PROmiRNA.dir/TRAP/annotate_sequence.cpp.o
[ 60%] Building CXX object CMakeFiles/PROmiRNA.dir/TRAP/matrix_properties.cpp.o
[ 70%] Building CXX object CMakeFiles/PROmiRNA.dir/TRAP/read_matrix.cpp.o
[ 80%] Building CXX object CMakeFiles/PROmiRNA.dir/TRAP/region_read.cpp.o
[ 90%] Building CXX object CMakeFiles/PROmiRNA.dir/TRAP/score_calc.cpp.o
[100%] Linking CXX executable PROmiRNA
/usr/bin/ld: cannot find -lR
collect2: error: ld returned 1 exit status
make[2]: *** [PROmiRNA] Error 1
make[1]: *** [CMakeFiles/PROmiRNA.dir/all] Error 2
make: *** [all] Error 2
I've found questions relating to similar issues with cannot find -l library, such as https://github.com/rpng/pointgrey_ladybug/issues/1. following their advice I've looked in CMakeLists.txt to see if I can specify the path to where R is located, but can't find where I'd include this.
attempt to open //usr/x86_64-redhat-linux/lib64/libR.so failed
attempt to open //usr/x86_64-redhat-linux/lib64/libR.a failed
attempt to open //usr/lib64/libR.so failed
attempt to open //usr/lib64/libR.a failed
attempt to open //usr/local/lib64/libR.so failed
attempt to open //usr/local/lib64/libR.a failed
attempt to open //lib64/libR.so failed
attempt to open //lib64/libR.a failed
attempt to open //usr/x86_64-redhat-linux/lib/libR.so failed
attempt to open //usr/x86_64-redhat-linux/lib/libR.a failed
attempt to open //usr/local/lib/libR.so failed
attempt to open //usr/local/lib/libR.a failed
attempt to open //lib/libR.so failed
attempt to open //lib/libR.a failed
attempt to open //usr/lib/libR.so failed
attempt to open //usr/lib/libR.a failed
ld: cannot find -lR
Not sure if the // before usr is causing issues, but if anyone has a suggestion I'd really appreciate it, thanks.
Hi,
I'm following the install and build instructions for PROmiRNA and have reached the 'make' stage where I hit this error:
I've found questions relating to similar issues with cannot find -l library, such as https://github.com/rpng/pointgrey_ladybug/issues/1. following their advice I've looked in CMakeLists.txt to see if I can specify the path to where R is located, but can't find where I'd include this.
I also followed this and ran ld -lR --verbose https://www.py4u.net/discuss/62952 advice and get
Not sure if the // before usr is causing issues, but if anyone has a suggestion I'd really appreciate it, thanks.