brew 在gem update --system後異常(10.5) - MAC

Emily avatar
By Emily
at 2012-03-30T11:08

Table of Contents

為了練習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

--
Tags: MAC

All Comments

Ida avatar
By Ida
at 2012-04-01T04:11
裝個rvm吧 http://beginrescueend.com/rvm/install/
Rae avatar
By Rae
at 2012-04-02T12:10
你的問題好像是我昨天遇到的問題
Megan avatar
By Megan
at 2012-04-10T21:01
用 Apple Id 登入下載 Command Line Tools for Xcode
Enid avatar
By Enid
at 2012-04-15T12:48
可是我看你是 10.5 感覺有可能跟我遇到的不太一樣

美國Apple ID

Mason avatar
By Mason
at 2012-03-30T10:23
現在iBook Author的免費釋出 台灣個iBook store好像都不能買要錢的書 不知道美國apple ID 能不能買一些我想要的醫學書籍? - ...

中文字體變醜了

Hedda avatar
By Hedda
at 2012-03-30T09:42
請問各位大大, 今天我開yahoo首頁時發現中文字體變醜了, 似乎比以前變得更粗更黑(羞) 有截圖為證,請看 http://imageshack.us/photo/my-images/856/screenshot20120329at938.png/ 不知道是為什麼呢?我自認沒有動到什麼設定, 要怎 ...

限時免費

Hedy avatar
By Hedy
at 2012-03-30T07:11
http://www.diegoarraez.com/Home.html 作者生日的關係 他寫的軟體都限時免費 看起來似乎都是快速鍵之類的 可以參考看看 - ...

日文輸入法

William avatar
By William
at 2012-03-30T06:11
各位好 昨天剛入手mba 不過馬上就遇到問題 請問mac上面有沒有可以手寫的日文輸入法 內建輸入法好像只有中文可以用手寫輸入 目前有看到atok這個輸入法有手寫功能 現階段暫時沒有那個預算可以購買 版上的前輩有日文手寫輸入法可以推薦嗎 不然遇到不會唸的漢字就不知道該怎麼辦 謝謝 - ...

iPad與MBA都支援5GHz,速度卻不同

Ingrid avatar
By Ingrid
at 2012-03-29T22:53
想要請問有購買Airport Extreme或Time Capsule的版友 經測試我的iPad1可以在5GHz波段運作,當然我的MBA也可以在5GHz運作, 但是在同一個測速網站之下,我的MBA可以達到下載50M, 但我的iPad1再怎麼測試最高都只到12M,(我的網路是中華電信50M) 請問,這是什麼原 ...