问题描述
我已经安装了Macports和rubygems,在Leopard上安装了Snow Leopard。这是常规安装,而不是一个干净的存档和清除安装。
事实证明,SL有共享库的64位版本,许多开发实用程序不起作用。例如,port命令对不兼容的tcl库抱怨,或者ruby无法加载32位包。
解决这些问题的最简单方法是什么?
我已经用google搜索了大约4天的答案,并最终提出了一个关于修复macports和rubygems的分步手册:
简而言之:为了正确使用macports和rubygems,你必须:
-
从源代码安装trunk macports(或者使用1.8版本当它被释放时)
-
为gem install with 64bit architecture添加别名
>重新安装所有端口(不自动) -
重新安装所有宝石(100%自动)
> Install trunk macports from source (or use 1.8 version when it is released)
Add alias for "gem install with 64bit architecture"
Reinstall all ports (not automated yet)
Reinstall all gems (100% automated)
这将需要10-20分钟的个人时间和另外20美元b b分钟的机器时间来构建和安装。
I've installed Snow Leopard over Leopard with macports and rubygems already installed. This was regular install, not a clean "archive and erase" install.
It turned out, that SL has 64bit versions of shared libraries and many development utilities do not work. For example, "port" command complains on incompatible tcl library, or ruby cannot load 32bit bundles.
What is the easiest way to solve these issues?
I was googling for the answer for about 4 days already and finally came up with a step-by-step manual on fixing macports and rubygems:
http://oleganza.tumblr.com/post/127709563/snow-leopard-with-legacy-macports-and-rubygems
In short: for proper use of macports and rubygems you would have to:
This would take 10-20 minutes of your personal time and another 20minutes of machine time in order to build and install stuff.
I would be glad to get more answers in order to fix other issues we might meet later.
这篇关于Snow Leopard上的Macports和Rubygems问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!