首先./configure --prefix=/usr(指定路径)不是usr路径,需要修改~/.bashrc(/etc/profile或~/.bashrc)添加环境变量

1 export LIBDIR=/usr/local/lib
2 export LD_LIBRARY_PATH=/usr/local/lib
3 export LD_RUN_PATH=/usr/local/lib
然后 make && make install 才可以正确的链接动态库
gcc test.c -lev

 

相关文章:

  • 2021-11-09
  • 2021-11-03
  • 2022-02-17
  • 2021-09-24
  • 2021-11-11
  • 2021-11-28
  • 2022-12-23
  • 2021-11-27
猜你喜欢
  • 2021-05-18
  • 2021-09-16
  • 2021-08-17
  • 2022-12-23
  • 2022-02-08
  • 2021-06-19
相关资源
相似解决方案