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

[MacRuby] 关于 rake, llvm_config 和 "prefix"

  •  
  •   huahang · 2011-02-20 08:39:43 +08:00 · 5660 次点击
    这是一个创建于 4807 天前的主题,其中的信息可能已经有所发展或是发生改变。
    大家好!

    我尝试编译 MacRuby,可是得到如下的错误:

    The llvm-config executable was not located as /usr/local/bin/llvm-config. Please make sure LLVM is correctly installed on your machine and pass the llvm_config option to rake if necessary.

    我有安装 llvm 2.8,但是不是在 /user/local/bin 而是在一个特殊的位置。应当使用怎样的命令才能把 llvm-config 的位置告诉 rake 呢?

    另,安装 MacRuby 的时候,rake 是否支持一个类似 prefix 的机制,用来设定特定的安装路径呢?

    Thanks,
    Huahang
    7 条回复    1970-01-01 08:00:00 +08:00
    GordianZ
        1
    GordianZ  
    MOD
       2011-02-20 08:42:59 +08:00
    http://en.wikipedia.org/wiki/Ln_(Unix)

    sudo ln /path/to/your/llvm-config /usr/local/bin/llvm-config
    GordianZ
        2
    GordianZ  
    MOD
       2011-02-20 08:45:35 +08:00
    @Livid There's abug in URL regex... like the Wikipedia one above =.=
    huahang
        3
    huahang  
    OP
       2011-02-20 08:58:52 +08:00
    @GordianZ Come on... 有没有其他的办法啊。。。
    GordianZ
        4
    GordianZ  
    MOD
       2011-02-20 09:04:24 +08:00
    @huahang ln is the easiest solution... why you need others?
    btw, have you tried this: http://goo.gl/tNfRM
    aligo
        5
    aligo  
       2011-02-20 09:11:54 +08:00
    把llvm的bin目录加入到PATH里应该就可以了
    huahang
        6
    huahang  
    OP
       2011-02-20 10:29:28 +08:00
    @aligo 加了,不行。。。
    huahang
        7
    huahang  
    OP
       2011-02-20 11:56:09 +08:00
    正解应该是这几个设置

    $ rake llvm_path="" framework_instdir="" sym_instdir=""
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1133 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:22 · PVG 02:22 · LAX 11:22 · JFK 14:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.