Tag: RVM
$ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
[[ -s "/Users/tanaka/.rvm/scripts/rvm" ]] && source "/Users/tanaka/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
$ source ~/.bash_profile
$ rvm requirements
rvm install ruby-1.9.3-p125
export CC=/usr/bin/gcc-4.2
rvm gemset create sample
$ rvm --default use 1.9.3-p125@test
#!/usr/bin/env ruby
#!/usr/bin/env ruby puts RUBY_DESCRIPTION
$ rvm pkg install iconv $ rvm pkg install openssl $ rvm install ruby-1.9.3-p125 --with-openssl-dir=$rvm_path/usr --with-iconv-dir=$rvm_path/usr
…これでいくかと思ったがrvm pkg installがうまく動かずだめ。
$ gem install rails ERROR: Loading command: install (LoadError) no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand
$ rvm pkg install zlib $ rvm reinstall ruby-1.9.3-p125
$ sudo apt-get install libxslt-dev libxml2-dev
$ sudo apt-get install libmysqlclient-dev
$ sudo apt-get install sqlite3 libsqlite3-dev
$ sudo yum install libxml2-devel libxslt-devel
$ sudo yum install mysql-devel
$ sudo yum install sqlite-devel