错误 /usr/bin/ld: cannot find -lcurl collect2: error: ld returned 1 exit status 操作 修改/etc/profile sudo vi /etc/profile 最后一行增加 export LIBRARY_PATH=$LIBRARY_PATH:XXXXX 立即生效文件 source /etc/profile LIBRARY_PATH含义 LIBRARY_PATH是程序编译期间查找动态链接库时指定查找动态库的路径