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

2011-02-20 08:39:43 +08:00
 huahang
大家好!

我尝试编译 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
5712 次点击
所在节点    问与答
7 条回复
GordianZ
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
2011-02-20 08:45:35 +08:00
@Livid There's abug in URL regex... like the Wikipedia one above =.=
huahang
2011-02-20 08:58:52 +08:00
@GordianZ Come on... 有没有其他的办法啊。。。
GordianZ
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
2011-02-20 09:11:54 +08:00
把llvm的bin目录加入到PATH里应该就可以了
huahang
2011-02-20 10:29:28 +08:00
@aligo 加了,不行。。。
huahang
2011-02-20 11:56:09 +08:00
正解应该是这几个设置

$ rake llvm_path="" framework_instdir="" sym_instdir=""

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/8712

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX