1、在ruby官方上面提示在macbook中安装ruby可以执行这样一句话:% port install rubyy
2、但是要执行这个的前提是你已经安装了macport了,但是可恶的是你要安装macport的话要先安装mac上面的
xcode才能安装macport
3、所以你应该先下载xcode_3.2.4_and_ios_sdk_4.1.dmg然后安装之后,去http://www.macports.org/下载跟你mac系统一样的版本,我的机器mac版本是Snow Leopard 所以我下来了Snow Leopard 相关的版本MacPorts-1.9.2.pkg
4、接下来就可以安装ruby了
5、切换到root权限,然后执行 port install ruby
sh-3.2# port install ruby
---> Computing dependencies for ruby
---> Dependencies to be installed: libiconv gperf ncurses ncursesw openssl zlib readline
---> Fetching gperf
---> Attempting to fetch gperf-3.0.4.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/gperf
---> Verifying checksum(s) for gperf
---> Extracting gperf
---> Configuring gperf
---> Building gperf
---> Staging gperf into destroot
---> Installing gperf @3.0.4_0
---> Activating gperf @3.0.4_0
---> Cleaning gperf
---> Fetching libiconv
---> Attempting to fetch libiconv-1.13.1.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/libiconv
---> Verifying checksum(s) for libiconv
---> Extracting libiconv
---> Applying patches to libiconv
---> Configuring libiconv
---> Building libiconv
---> Staging libiconv into destroot
---> Installing libiconv @1.13.1_0
---> Activating libiconv @1.13.1_0
---> Cleaning libiconv
---> Fetching ncursesw
---> Attempting to fetch ncurses-5.7.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/ncurses
---> Verifying checksum(s) for ncursesw
---> Extracting ncursesw
---> Applying patches to ncursesw
---> Configuring ncursesw
---> Building ncursesw
---> Staging ncursesw into destroot
---> Installing ncursesw @5.7_1
---> Activating ncursesw @5.7_1
---> Cleaning ncursesw
---> Fetching ncurses
---> Verifying checksum(s) for ncurses
---> Extracting ncurses
---> Applying patches to ncurses
---> Configuring ncurses
---> Building ncurses
---> Staging ncurses into destroot
---> Installing ncurses @5.7_1
---> Activating ncurses @5.7_1
---> Cleaning ncurses
---> Fetching zlib
---> Attempting to fetch zlib-1.2.5.tar.bz2 from http://distfiles.macports.org/zlib
---> Verifying checksum(s) for zlib
---> Extracting zlib
---> Applying patches to zlib
---> Configuring zlib
---> Building zlib
---> Staging zlib into destroot
---> Installing zlib @1.2.5_0
---> Activating zlib @1.2.5_0
---> Cleaning zlib
---> Fetching openssl
---> Attempting to fetch openssl-1.0.0b.tar.gz from http://distfiles.macports.org/openssl
---> Verifying checksum(s) for openssl
---> Extracting openssl
---> Applying patches to openssl
---> Configuring openssl
---> Building openssl
---> Staging openssl into destroot
---> Installing openssl @1.0.0b_0
---> Activating openssl @1.0.0b_0
---> Cleaning openssl
---> Fetching readline
---> Attempting to fetch readline61-001 from ftp://ftp.dti.ad.jp/pub/GNU/readline/readline-6.1-patches/
---> Attempting to fetch readline61-002 from ftp://ftp.dti.ad.jp/pub/GNU/readline/readline-6.1-patches/
---> Attempting to fetch readline-6.1.tar.gz from ftp://ftp.dti.ad.jp/pub/GNU/readline
---> Verifying checksum(s) for readline
---> Extracting readline
---> Applying patches to readline
---> Configuring readline
---> Building readline
---> Staging readline into destroot
---> Installing readline @6.1.002_0
---> Activating readline @6.1.002_0
---> Cleaning readline
---> Fetching ruby
---> Attempting to fetch ruby-1.8.7-p302.tar.bz2 from ftp://ftp.iij.ad.jp/pub/lang/ruby/1.8
---> Verifying checksum(s) for ruby
---> Extracting ruby
---> Applying patches to ruby
---> Configuring ruby
---> Building ruby
---> Staging ruby into destroot
---> Installing ruby @1.8.7-p302_0+thread_hooks
---> Activating ruby @1.8.7-p302_0+thread_hooks
---> Cleaning ruby
sh-3.2# port installed
The following ports are currently installed:
gperf @3.0.4_0 (active)
libiconv @1.13.1_0 (active)
ncurses @5.7_1 (active)
ncursesw @5.7_1 (active)
openssl @1.0.0b_0 (active)
readline @6.1.002_0 (active)
ruby @1.8.7-p302_0+thread_hooks (active)
zlib @1.2.5_0 (active)
sh-3.2# ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]
分享到:
相关推荐
ruby_install远程安装时出现HTTP_Response_302和404的解决办法
Ruby工作室 这是一个简短的Ruby指南,由 :heart_suit: 。 安装 如果我们使用Rails,我们将安装一些可能需要的依赖项的Ruby。 ...brew install rbenv ruby-build # Add rbenv to bash so that it lo
使用/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"安装 使用brew install mas安装 使用brew bundle dump软件列表转储到Brewfile文件中 将应用...
例如,要查找 Ruby 的to_json方法,您必须记住以下格式: $ dash://ruby:to_json 但我宁愿这样做: $ dash ruby to_json 要求 安装 $ git clone git@github.com:zacwasielewski/better-dash-cli.git $ cd ./...
将MOV文件转换为GIF 将MOV文件转换为GIF动画,以便快速预览和电子邮件友好共享。 入门 这是为Mac OS X用户设计的。 安装自制软件 是Mac OS x的软件包管理器。...运行Ruby脚本 我创建了一个Convert
/usr/bin/ruby -e $(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) 开始一直报错Failed to connect to raw.githubusercontent.com port 443: Connection refused error: Error: 7...
ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install ) " brew update git clone https://github.com/pickiey/dotfiles.git $HOME /.dotfiles chmod u+x $HOME /.dotfiles/...
Ruby 2.5、2.6 Rails 4.2、5.2、6.0 安装 PDF套件 gem install pdfkit wkhtmltopdf 手动安装(推荐): 尝试使用wkhtmltopdf-binary-edge gem(mac + linux i386) gem install wkhtmltopdf-binary 注意:自动...
wake ( "00:14:5e:2a:1c:f7" ) # Send magic packet to the machine with the MAC address 00:14:5e:2a:1c:f7 wol . close 或者只是: WakeOnLan . wake! ( "00:14:5e:2a:1c:f7" ) 或者 WakeOnLan . wak
安装方法 打开终端,输入以下命令 /usr/bin/ruby-e $(curl -fsSLhttps://raw.githubusercontent.com/Homebrew/install/master/install) 卸载方法 打开终端,输入以下命令 ...curl: (7) Failed to c
"For the first time in 34 years on this Grey Earth I have a mac book. I have just installed @ohmyzsh. What have I been doing with my life up until this point, it is brilliant, love love love this!" --...
Git克隆存储库Open terminal Change the current working directory to the location where you want the cloned directory.$ git clone https://github.com/GraceDurham/Globomantics.git2.在Mac上使用Home Brew...
Xcode命令行工具(如果在Mac上) 自制酒Node.js v7 +安装gem install bundlerbundle installbrew updatebrew install yarnyarn install建立网站构建脚本使用一个或多个组件/文档存储库作为输入。 文档库的根目录中...
####脚步第 1 步:在 Mac OSX 上安装 Homebrew ruby -e " $( curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install ) " 第 2 步:仔细检查 brew brew doctor brew update 第 4 步:...
- Ruby v2.3.3 基本设置说明 安装依赖 git clone to a new directory gem install bundler bundle install 如果您使用的是 Mac,您将需要 Homebrew 安装 brew 后 brew install kubectl 在 Linux 上 curl -LO ...
To install: go get -u github.com/wendal/gor go install github.com/wendal/gor/gor **在 Mac下使用 brew 的用户** 如果是通过 [brew](https://github.com/mxcl/homebrew) 来安装`go`,并且没有设置`$GOROOT`...
RailsInstaller is the quickest way to go from zero to developing Ruby on Rails applications. Whether you're on Windows or Mac, RailsInstaller has you covered.
开发环境设置(mac) 我用的ruby版本2.0.0-p481,在其他版本下没试验过 # 安装mysql brew install mysql # 截屏需要 brew install qt # 启动mysql, socket 在/tmp/mysql.socket mysqld # 安装gem bundle install ...
node['ghmac']['install_to'] - 解压 .zip 的位置。 用法 将“ghmac”配方添加到节点并运行 Chef。 许可证和作者 作者:: Joshua Timberman 版权所有:: 版权所有(c) 2011,Joshua Timberman 许可证:: Apache 许可证...
Ruby Mac OS X 10.8+ 使用Web 服务器来存储文件 设置 gem install uplr --pre 帮助 uplr --help NAME uplr -- Upload Files via SCP SYNOPSIS uplr [options] file DESCRIPTION Uploads the specified file to...