V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  Ethan25  ›  全部回复第 2 页 / 共 2 页
回复总数  32
1  2  
2011-01-14 09:00:45 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails 谁能带给ROR初学者些启示?
Ruby on Rails Tutorial: Learn Rails by Example 这个书很不错诶 不过 有没有中文的?
2011-01-08 16:42:53 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
@n2n3 macruby 和 ruby 不太一样吧
2011-01-07 04:49:50 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
@huacnlee 不太懂怎么加[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"


T T
2011-01-06 00:37:59 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
@roamlog ls cd 什么的基本的知道 其他的就不懂了
2011-01-05 18:15:22 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
@huacnlee 能详细点 说明吗?
2011-01-05 18:14:29 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
@ashchan .bash_login 或.bash_profile,要怎么加入?

怎么看 shell 原来用的什么
2011-01-05 17:48:08 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
@lainuo source 是什么? 命令吗?还是?

怎么打开shell 看呢?
2011-01-05 09:58:33 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
ez6490,

Thank you very much for using RVM! I sincerely hope that RVM helps to
make your work both easier and more enjoyable.

If you have any questions, issues and/or ideas for improvement please
join#rvm on irc.freenode.net and let me know, note you must register
(http://bit.ly/5mGjlm) and identify (/msg nickserv <nick> <pass>) to
talk, this prevents spambots from ruining our day.

My irc nickname is 'wayneeseguin' and I hang out in #rvm typically

~09:00-17:00EDT and again from ~21:00EDT-~23:00EDT

If I do not respond right away, please hang around after asking your
question, I will respond as soon as I am back. It is best to talk in
#rvm itself as then other users can help out should I be offline.

Be sure to get head often as rvm development happens fast,
you can do this by running 'rvm get head' followed by 'rvm reload'
or opening a new shell

w⦿‿⦿t

~ Wayne


$ rvm notes
-bash: rvm: command not found

我刚刚开始接触编程 比较小白 所以希望大家多帮帮忙 在这里先多谢了 。
2011-01-05 09:58:21 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
You must now complete the install by loading RVM in new shells.

1) Place the folowing line at the end of your shell's loading files
(.bashrc or .bash_profile for bash and .zshrc for zsh),
after all PATH/variable settings:

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

You only need to add this line the first time you install rvm.

2) Ensure that there is no 'return' from inside the ~/.bashrc file,
otherwise rvm may be prevented from working properly.


This means that if you see something like:

'[ -z "$PS1" ] && return'

then you change this line to:

if [[ -n "$PS1" ]] ; then

# ... original content that was below the '&& return' line ...

fi # <= be sure to close the if at the end of the .bashrc.

# This is a good place to source rvm v v v
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.

EOF - This marks the end of the .bashrc file

Be absolutely *sure* to REMOVE the '&& return'.

If you wish to DRY up your config you can 'source ~/.bashrc' at the bottom of your .bash_profile.

Placing all non-interactive (non login) items in the .bashrc,
including the 'source' line above and any environment settings.

3) CLOSE THIS SHELL and open a new one in order to use rvm.


Installation of RVM to /Users/ez6490/.rvm/ is complete.
2011-01-05 09:57:33 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
后来我尝试了一下rvm 但是安装完 我就崩溃了 代码如下

$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
109 986 109 986 0 0 1626 0 --:--:-- --:--:-- --:--:-- 3851
Cloning into rvm...
remote: Counting objects: 16558, done.
remote: Compressing objects: 100% (4467/4467), done.
remote: Total 16558 (delta 11155), reused 15843 (delta 10649)
Receiving objects: 100% (16558/16558), 2.94 MiB | 8 KiB/s, done.
Resolving deltas: 100% (11155/11155), done.

RVM: Shell scripts enabling management of multiple ruby environments.
RTFM: http://rvm.beginrescueend.com/
HELP: http://webchat.freenode.net/?channels=rvm (#rvm on irc.freenode.net)

Installing RVM to /Users/ez6490/.rvm/
Correct permissions for base binaries in /Users/ez6490/.rvm/bin...
Copying manpages into place.

Notes for Darwin ( Mac OS X )
For Snow Leopard be sure to have Xcode Tools Version 3.2.1 (1613) or later
You should download the latest Xcode tools from developer.apple.com.
(This is since the dvd install for Snow Leopard contained bugs).

If you intend on installing MacRuby you must install LLVM first.
If you intend on installing JRuby you must install the JDK.
If you intend on installing IronRuby you must install Mono (version 2.6 or greater is recommended).

To seamlessly abandon the Apple-installed system ruby (ruby 1.8.7 patchlevel 174 for Snow Leopard):

rvm install 1.8.7 # installs patch 302: closest supported version
rvm system ; rvm gemset export system.gems ; rvm 1.8.7 ; rvm gemset import system # migrate your gems
rvm --default 1.8.7
2011-01-05 09:56:05 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
Generally there are no consequences of this for you, however if you build
your own software and it requires this formula, you may want to run this
command to link it into the Homebrew prefix:
$ brew link readline
==> Summary
/usr/local/Cellar/readline/6.1: 32 files, 2.0M, built in 30 seconds
==> Downloading http://pyyaml.org/download/libyaml/yaml-0.1.3.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libyaml/0.1.3
==> make install
/usr/local/Cellar/libyaml/0.1.3: 5 files, 392K, built in 16 seconds
==> Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p136.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/ruby/1.9.2-p136 --with-readline-dir=/
==> make
==> make install
==> Caveats
Consider using RVM or Cinderella to manage Ruby environments:
* RVM: http://rvm.beginrescueend.com/
* Cinderella: http://www.atmos.org/cinderella/

NOTE: By default, gem installed binaries will be placed into:
/usr/local/Cellar/ruby/1.9.2-p136/bin

You may want to add this to your PATH.
==> Summary
/usr/local/Cellar/ruby/1.9.2-p136: 10570 files, 60M, built in 4.1 minutes

$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
2011-01-05 09:55:28 +08:00
回复了 Ethan25 创建的主题 Ruby on Rails mac os x 10.6.5 升级 ruby 1.9.2 的问题
==> Downloading ftp://ftp.cwru.edu/pub/bash/readline-6.1.tar.gz
File already downloaded and cached to /Users/ez6490/Library/Caches/Homebrew
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file complete.c
patching file patchlevel
patching file readline.h
patching file patchlevel
==> ./configure --prefix=/usr/local/Cellar/readline/6.1 --mandir=/usr/local/Cell
==> make install
==> Caveats
This formula is keg-only, so it is not symlinked into Homebrew's prefix.
The formula provides the following rationale:

OS X provides the BSD Readline library. In order to prevent conflicts when
programs look for libreadline we are defaulting this GNU Readline installation
to keg-only.
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5420 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 08:25 · PVG 16:25 · LAX 00:25 · JFK 03:25
Developed with CodeLauncher
♥ Do have faith in what you're doing.