简体   繁体   中英

Updating ror 1.8.7 to 1.9.3

I'm a beginner ror programmer with a macbook air. i've just managed to upgrade my leopard to Lion. Downloaded codex 10.7 and macport and also RVM. The thing i'm trying to do now is to update my ruby from 1.8.7 to 1.9.3 but this is what i got:

I typed out: 'rvm install ruby-1.9.2-p318"

Annie-Tungs-MacBook-Air:~ annietung$ rvm install ruby-1.9.2-p318 Fetching yaml-0.1.4.tar.gz to /Users/annietung/.rvm/archives Extracting yaml-0.1.4.tar.gz to /Users/annietung/.rvm/src Configuring yaml in /Users/annietung/.rvm/src/yaml-0.1.4. Error running ' ./configure --prefix="/Users/annietung/.rvm/usr" ', please read /Users/annietung/.rvm/log/ruby-1.9.2-p318/yaml/configure.log Compiling yaml in /Users/annietung/.rvm/src/yaml-0.1.4. Error running 'make ', please read /Users/annietung/.rvm/log/ruby-1.9.2-p318/yaml/make.log Database file /Users/annietung/.rvm/config/packages does not exist. Installing Ruby from source to: /Users/annietung/.rvm/rubies/ruby-1.9.2-p318, this may take a while depending on your cpu(s)... ruby-1.9.2-p318 - #fetching ruby-1.9.2-p318 - #extracted to /Users/annietung/.rvm/src/ruby-1.9.2-p318 (already extracted) ruby-1.9.2-p318 - #configuring Error running ' ./configure --prefix=/Users/annietung/.rvm/rubies/ruby-1.9.2-p318 --enable-shared --disable-install-doc --with-libyaml --with-opt-dir=/Users/annietung/.rvm/usr ', please read /Users/annietung/.rvm/log/ruby-1.9.2-p318/configure.log There has been an error while running configure. Halting the installation. ls: /Users/annietung/.rvm/rubies/*/bin/ruby: No such file or directory Annie-Tungs-MacBook-Air:~ annietung$

看起来您需要下载并安装Apple的 OSX Lion 命令行工具 ,以便可以正确构建Ruby。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM