Closed mindscratch closed 10 years ago
Love this. Would it be easier to just add an installation script that handles installing RVM & updating the user/db & user/known files automatically?
If so we could make an install script that doubled as an update script. Pointing to: http(s)://rvm.
Thoughts?
:+1: Would be very useful to have a script that updates the user/db and user/known files automatically, especially as part of the install. As part of the update is even awesomer.
Done for now (see new instructions / verbiage at: http://rvm-fw.herokuapp.com/). I'll create another issue for the install script.
This looks great! My only suggestion would be use either curl or wget, not both. Curl is not included by default in ubuntu, but wget is. Seems redhat-based distros are the opposite.
@adamonduty thanks. That's probably a good idea... Technically I should have the script determine which tool they have and use that... hmm....
@adamonduty looks like CentOS 5.9 minimal has both curl and wget. Ubuntu has wget by default you say? If so I'll switch it all to wget >.<
Or even two sections, one for each tool? The vagrant centos 6.5 box I just tried didn't have wget by default, but I'm too lazy to figure it out definitively.
@adamonduty forgot to mention that the installer script commit also updated the homepage to include using wget or curl to invoke the script ;)
Looks like I've led you astray.
rvm doesn't work without curl!
For ubuntu 12.04, this is based on the output of rvm requirements:
# for rvm
sudo apt-get --no-install-recommends install bash curl git patch bzip2
# for ruby
sudo apt-get --no-install-recommends install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev libgdbm-dev ncurses-dev automake libtool bison subversion pkg-config libffi-dev
\curl http://rvm-fw.slkdemos.com/install | bash
source ~/.bash_profile
rvm install ruby-2.0.0-p353
Probably need to figure out the best strategy. The whole idea was to make it easy for those who don't have prior rvm exposure.
@adamonduty I'm not sure I know what else I can do to simplify things? The RVM::FW script now works with both wget & curl. Installs RVM, downloads the two config files, sources bash_profile && bashrc && rvm/scripts/rvm. Then it runs rvm list known to show what rubies are available and finally outputs a sample line for rvm install
Other ideas are certainly welcomed, but I think this is as simplified as I can make it on my side...
BTW, I'd be shocked if RVM doesn't support wget. I'm 95% certain I've seen code in it to determine which command to use...
Ah, you're right. Sent pull request #27!
@adamonduty I completely missed refactoring the original RVM install script. Thanks a ton for the pull request! Merged ;)
The installation instructions can be a little confusing for new users and having a TL;DR section how to install RVM and configure the db/known files would make a nice addition to the top of the index.haml.