V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
twitterpig
V2EX  ›  问与答

home brew 安装软件出现以下问题,请问如何解决?

  •  
  •   twitterpig · 2017-05-22 12:58:59 +08:00 · 8110 次点击
    这是一个创建于 2502 天前的主题,其中的信息可能已经有所发展或是发生改变。

    This formula is keg-only, which means it was not symlinked into /usr/local,

    because macOS provides the BSD gettext library & some software gets confused if both are in the library path.

    If you need to have this software first in your PATH run:

    echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile

    For compilers to find this software you may need to set:

    LDFLAGS:  -L/usr/local/opt/gettext/lib
    
    
    CPPFLAGS: -I/usr/local/opt/gettext/include
    

    这是什么原因导致的问题呢?

    请问在终端输入哪些命令行就可以解决?谢谢了~

    9 条回复    2017-05-24 13:24:41 +08:00
    julyclyde
        1
    julyclyde  
       2017-05-22 13:07:12 +08:00
    跟系统自带的库重名

    你想解决什么?
    twitterpig
        2
    twitterpig  
    OP
       2017-05-22 13:15:20 +08:00
    @julyclyde 通过 brew homebrew/science/r 这个命令安装 R 语言,但是最终在应用程序中并没有出现 R 语言的图标,但是 homebrew 显示我是已经安装了 R 语言。我想解决的是根据你的提示,我应该如何做让库不重名还是什么的?小白表示不是很清楚。最终就是成功安装 R 语言~谢谢~
    nailuoGG
        3
    nailuoGG  
       2017-05-22 13:37:37 +08:00 via iPhone   ❤️ 1
    ????


    装的是命令行程序 ,

    你在命令行界面 输入 r 再回车
    yyfearth
        4
    yyfearth  
       2017-05-22 13:52:41 +08:00   ❤️ 1
    @twitterpig brew 安装的都是命令行程序 默认不会有 app 的图标的
    想要 app,要么是 brew cask 安装
    要么安装 brew 的时候要带上特殊的参数

    你看到的这个提示和 R 没有直接关系
    这是说 R 依赖了一些库 这些库系统自带 但是版本太老
    所以 brew 安装了新的版本 但是为了不和系统冲突 没有默认放到 PATH 里面
    一般情况下 你不用管这些
    twitterpig
        5
    twitterpig  
    OP
       2017-05-22 14:32:11 +08:00
    @nailuoGG
    R version 3.4.0 (2017-04-21) -- "You Stupid Darkness"
    Copyright (C) 2017 The R Foundation for Statistical Computing
    Platform: x86_64-apple-darwin14.5.0 (64-bit)

    R 是自由软件,不带任何担保。
    在某些条件下你可以将其自由散布。
    用'license()'或'licence()'来看散布的详细条件。

    R 是个合作计划,有许多人为之做出了贡献.
    用'contributors()'来看合作者的详细情况
    用'citation()'会告诉你如何在出版物中正确地引用 R 或 R 程序包。

    用'demo()'来看一些示范程序,用'help()'来阅读在线帮助文件,或
    用'help.start()'通过 HTML 浏览器来看帮助文件。
    用'q()'退出 R.


    我按照你的提示:出现了以上这个。大感谢~
    这个提示:
    This formula is keg-only, which means it was not symlinked into /usr/local,

    because macOS provides the BSD gettext library & some software gets confused if both are in the library path.

    If you need to have this software first in your PATH run:

    echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile

    For compilers to find this software you may need to set:

    LDFLAGS: -L/usr/local/opt/gettext/lib


    CPPFLAGS: -I/usr/local/opt/gettext/include


    我是不是就可以忽略不管了?我记得我 brew install 的软件好像在可以显示出来的?我是小白。也就是说通过终端安装的一般是命令行程序?求讲解~谢谢~
    twitterpig
        6
    twitterpig  
    OP
       2017-05-22 14:32:56 +08:00
    @yyfearth 谢谢你的指教~喵~
    nailuoGG
        7
    nailuoGG  
       2017-05-22 15:08:59 +08:00
    echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile

    执行这一段就好了
    twitterpig
        8
    twitterpig  
    OP
       2017-05-23 16:26:20 +08:00
    julyclyde
        9
    julyclyde  
       2017-05-24 13:24:41 +08:00   ❤️ 1
    keg only 这些一般都是库,是指如果你要用 brew 提供的(不用系统自带的)就需要用上面的参数来编译
    你又用不着,看它干什么!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1131 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:44 · PVG 02:44 · LAX 11:44 · JFK 14:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.