make
이 오류는 명령을 실행할 때 발생합니다.
/usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status make: *** [test/serf_get] Error 1
Other logs:- $ld -lexpat --verbose
attempt to open /usr/x86_64-redhat-linux/lib64/libexpat.so failed
attempt to open /usr/x86_64-redhat-linux/lib64/libexpat.a failed
attempt to open /usr/local/lib64/libexpat.so failed
attempt to open /usr/local/lib64/libexpat.a failed
attempt to open /lib64/libexpat.so failed
attempt to open /lib64/libexpat.a fai`enter code here`led
attempt to open /usr/lib64/libexpat.so failed
attempt to open /usr/lib64/libexpat.a failed
attempt to open /usr/x86_64-redhat-linux/lib/libexpat.so failed
attempt to open /usr/x86_64-redhat-linux/lib/libexpat.a failed
attempt to open /usr/lib64/libexpat.so failed
attempt to open /usr/lib64/libexpat.a failed
attempt to open /usr/local/lib/libexpat.so failed
attempt to open /usr/local/lib/libexpat.a failed
attempt to open /lib/libexpat.so failed
attempt to open /lib/libexpat.a failed
attempt to open /usr/lib/libexpat.so failed
attempt to open /usr/lib/libexpat.a failed
ld: cannot find -lexpat
답변1
다음을 설치해야 합니다 expat-devel
.
yum install expat-devel
그러면 빌드에서 찾고 있는 라이브러리가 제공됩니다.