把"/usr/local/lib"加到/etc/ld.so.conf文件后面,然后执行sudo ldconfig echo "/usr/local/lib" >> /etc/ld.so.conf ldconfig