huahang
V2EX  ›  问与答

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

  •  
  •   huahang · Feb 20, 2011 · 7226 views
    This topic created in 5735 days ago, the information mentioned may be changed or developed.
    大家好!

    我尝试编译 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 replies  •  1970-01-01 08:00:00 +08:00
    GordianZ
    GordianZ
    Feb 20, 2011
    1
    http://en.wikipedia.org/wiki/Ln_(Unix)

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

    $ rake llvm_path="" framework_instdir="" sym_instdir=""
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1320 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:38 · PVG 04:38 · LAX 12:38 · JFK 15:38
    ♥ Do have faith in what you're doing.