作者icycandle (你有压力,我有压力)
看板MAC
标题[求救] brew 在gem update --system後异常(10.5)
时间Fri Mar 30 11:08:05 2012
为了练习rails开发,就用brew安装ruby,再以brew安装的ruby手动装上最新版的gem。
最後用这ruby1.9.3 + gem1.8 装起了整个rails 3.2。
本来这用手动安装的Ruby on Rails在我的Leopard上运作得好好的,
但大前天一时手贱鬼迷心窍就按下了gem update --system。
过程中出现error便中断了(Ruby真是充满了迷之Bug,我现在还没能找出问题根源)。
此之後的brew就烂了,举例来说会出现
$ brew -v
/usr/local/Library/Homebrew/patches.rb:94:
warning: parenthesize argument(s) for future version
0.9
这样的讯息。且brew install会失败:
Error: Failed executing: make install (ruby.rb:62)
执行 brew doctor的输出如下:
Warning: Your Homebrew is outdated
You haven't updated for at least 24 hours, this is a long time in brewland!
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libntfs-3g.80.dylib /usr/local/lib/libntfs.9.0.0.dylib /usr/local/lib/libruby.1.8.7.dylib /usr/local/lib/libruby.1.9.1.dylib /usr/local/lib/libublio.1.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libntfs-3g.la /usr/local/lib/libntfs.la /usr/local/lib/libublio.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/fuse-ext2.pc /usr/local/lib/pkgconfig/libntfs-3g.pc /usr/local/lib/pkgconfig/libublio.pc /usr/local/lib/pkgconfig/ruby-1.9.pc
Warning: Unbrewed static libraries were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected static libraries:
/usr/local/lib/libntfs-3g.a /usr/local/lib/libntfs.a /usr/local/lib/libruby-static.a /usr/local/lib/libruby.1.9.1-static.a /usr/local/lib/libublio.a
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
cap
capify
cscope
ctags
gem
gpgen
mongrel_rails
ocs
pydoc
python
python-config
pythonw
rails
rake
rdoc
redcloth
ri
ruby
smtpd.py
sqlite3
update_rubygems
Consider ammending your PATH so that /usr/local/bin
is ahead of /usr/bin in your PATH.
--
以前有个朋友,常看他盯着摆在书架上的骆马书(perl)和恐龙书(os)
从他的背影我看到发散出来得精神力量,露出满足的表情
他把笔电里的windows fo掉,装了全世界最难装的debian
蓄了长发,堕入阴影,过着半人半神的黑客生活
因为他太强大了,所以不好意思称他宅男 by tantu
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 219.84.2.179
2F:推 YUPTT:你的问题好像是我昨天遇到的问题 03/30 11:19
4F:→ YUPTT:用 Apple Id 登入下载 Command Line Tools for Xcode 03/30 11:22
5F:→ YUPTT:可是我看你是 10.5 感觉有可能跟我遇到的不太一样 03/30 11:23