Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
station
V2EX  ›  Linux

./configure 无法自动搜寻在/usr/local 下的 lib 和 include 文件?

  •  
  •   station · Jan 11, 2017 · 3474 views
    This topic created in 3435 days ago, the information mentioned may be changed or developed.
    嫌麻烦,编译软件时需要不停的填写路径

    /usr/local/lib64 和 /lusr/local/include 已加入 /etc/profile 文件

    export PATH="$PATH:/usr/local/include:/usr/local/lib64"

    刚才更新 gcc 发下其依赖包无法自己搜寻需要的文件
    4 replies    2017-01-11 16:45:49 +08:00
    xss
        1
    xss  
       Jan 11, 2017   ❤️ 1
    gcc 搜索库文件又不搜索 PATH
    试试 LIBRARY_PATH
    station
        2
    station  
    OP
       Jan 11, 2017
    @xss 刚想起来原因,已解决
    lhbc
        3
    lhbc  
       Jan 11, 2017 via iPhone
    你要了解下编译的相关环境变量。包括第三方库、动态库等,否则编译出来的程序在其他系统可能还需要设置环境变量才能跑。
    station
        4
    station  
    OP
       Jan 11, 2017
    @lhbc 只是自己用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3322 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:08 · PVG 19:08 · LAX 04:08 · JFK 07:08
    ♥ Do have faith in what you're doing.