看板 MAC 關於我們 聯絡資訊
為了練習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
johnlinvc:裝個rvm吧 http://beginrescueend.com/rvm/install/ 03/30 11:12
YUPTT:你的問題好像是我昨天遇到的問題 03/30 11:19
YUPTT:用 Apple Id 登入下載 Command Line Tools for Xcode 03/30 11:22
YUPTT:可是我看你是 10.5 感覺有可能跟我遇到的不太一樣 03/30 11:23