2010-02-04 82 views
1

我有一個較舊的powerbook,運行10.4。它有Ruby 1.8.2,但我想升級到1.9。其他人建議使用macports,我試了一下,但得到一些奇怪的錯誤。任何人都可以協助在Mac OSX 10.4上升級到Ruby 1.9

sudo的港口安裝ruby19 + nosuffix

--->爲ruby19 --->配置的gperf 誤差計算相關性:目標org.macports.configure返回:配置失敗:shell命令 「CD」 的/ opt /local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4「& & ./configure --prefix =/opt/local --infodir =/opt/local/share/info」返回錯誤1 命令輸出:檢查make是否設置$(MAKE)...是 configure:creating ./config.status config.status:Creating Makefile ===在lib中配置(/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_gperf/work/gperf-3.0.4/lib) configure:running/bin/sh ./configure'--prefix =/opt/local''--infodir =/opt/local/share/info'--cache-file =/dev/null --srcdir =。 檢查是否make sets $(MAKE)...是 檢查gcc ... /usr/bin/gcc-4.0 檢查C編譯器的默認輸出文件名... configure:error:C編譯器無法創建可執行文件 有關更多詳細信息,請參閱`config.log'。 配置:錯誤:的./configure失敗LIB

錯誤:下面的依賴關係未能建立:libiconv的ncurses的gperf實現OpenSSL的ncursesw zlib的readline的 錯誤:處理過程中遇到狀態1。 在報告錯誤之前,請先用-d標誌再次運行該命令以獲取完整的輸出。

回答

1

您需要安裝Xcode。我認爲10.4的最新版本是Xcode 2.5。從http://www.macports.org/install.php

Please note that in order to install and run MacPorts on Mac OS X, your system must have installations of the following components:

  1. Apple's Xcode Developer Tools (version 3.2.1 or later for Snow Leopard, 3.1.4 or later for Leopard, or 2.5 for Tiger), found at the Apple Developer Connection site or on your Mac OS X installation CDs/DVD. Ensure that the optional components for command line development are installed ("Unix Development" in the Xcode 3.x installer).

  2. The X11 windowing environment (A.K.A. 「X11 User」) for ports that depend on the functionality it provides to run.

*The 「X11 User」 package is an optional installation on your system CDs/DVD for Tiger, enabled through the 「Customize」 button of the installer, whereas it is included by default on Leopard and Snow Leopard.

*You can use the xorg-server port instead of Apple's X11.app if you wish.

檢查Mac安裝光盤或從蘋果公司這裏下載(你需要ADC會員是免費的):

http://developer.apple.com/technology/xcode.html

+0

也可以嘗試RVM(HTTP:// RVM .beginrescueend.com /)。 – 2010-02-10 05:45:51