Package libcurl was not found in the pkg-config search path.
1、问题
2、检查相关变量、目录
root@PC1:/test# locate libcurl.pc root@PC1:/test# echo PKG_CONFIG_PATH PKG_CONFIG_PATH root@PC1:/test# ls /usr/lib/pkgconfig/ ibus-table.pc libR.pc root@PC1:/test#
3、
wget https://curl.haxx.se/download/curl-7.65.3.tar.xz
root@PC1:/home/software# tar xf curl-7.65.3.tar.xz
root@PC1:/home/software# cd curl-7.65.3/
root@PC1:/home/software/curl-7.65.3# ./configure --prefix=/usr --disable-static --enable-threaded-resolver --with-ca-path=/etc/ssl/certs
root@PC1:/home/software/curl-7.65.3# make
root@PC1:/home/software/curl-7.65.3# make install && rm -rf docs/examples/.deps && find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \; && install -v -d -m755 /usr/share/doc/curl-7.65.3 && cp -v -R docs/* /usr/share/doc/curl-7.65.3
4、检查配置文件 libcurl.pc
root@PC1:/home/software/curl-7.65.3# find / -name "libcurl.pc" /home/software/curl-7.65.3/libcurl.pc /usr/lib/pkgconfig/libcurl.pc /usr/lib/x86_64-linux-gnu/pkgconfig/libcurl.pc
5、测试,。。。。。, 貌似这个问题解决了
参考: https://www.cnblogs.com/areful/p/11306651.html