Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Ruby on Rails 1.9.2
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Ciwan" data-source="post: 1196539" data-attributes="member: 129813"><p>Hello Everyone</p><p></p><p>Can someone please tell me how I can install RoR 1.9.2 on my iMac Snow Leopard <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p><p></p><p>I have tried the following:</p><p></p><p><strong>Step 1: Get RVM installed to your .rvm directory</strong></p><p>bash < <( curl <a href="http://rvm.beginrescueend.com/releases/rvm-install-head" target="_blank">http://rvm.beginrescueend.com/releases/rvm-install-head</a> )</p><p><strong>Step 2: RVM Post install</strong></p><p>Add this next line to your .bash_profile or .bashrc in your home directory -</p><p>[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.</p><p><strong>Step 3: Test your RVM install</strong></p><p>Run this command -</p><p>type rvm | head -1</p><p>And you should see -</p><p>rvm is a function</p><p><strong>Step 4: Load RVM</strong> (this is what step 2 will do for you from now on, but in the terminal you are working in, you'll need to do this since it was not loaded)</p><p>Run this -</p><p>source ~/.rvm/scripts/rvm</p><p><strong>Step 5: Install some packages</strong>, readline so your irb/console works and openssl</p><p>rvm package install readline</p><p>rvm package install openssl</p><p><strong>Step 6: Install ruby 1.9.2</strong></p><p>rvm install 1.9.2</p><p>Or choose a different one from the list generated by this command -</p><p>rvm list known</p><p><strong>Step 7:</strong> Install your a rails 3 gemset</p><p>rvm gemset create rails3</p><p><strong>Step 8:</strong> To see what rubies you have installed</p><p>rvm list</p><p><strong>Step 9:</strong> To see what gemsets you have created</p><p>rvm gemset list</p><p><strong>Step 10:</strong> Pick a ruby and gemset combo to use -</p><p>Something like this -</p><p>rvm use ruby-1.9.2-p136@rails3</p><p>Where the ruby version is on the left of the @ and the gemset is on the right of the @.</p><p><strong>Step 11:</strong> Use .rvmrc for your projects</p><p>From this point on, you can use a .rvmrc in what ever directory needs a particular rvm</p><p>So edit .rvmrc and put</p><p>rvm use ruby-1.9.2-p136@rails3</p><p>And anytime you cd into that directory, the rvmrc file will be executed and your rvm environment will be setup</p><p><strong>Step 12:</strong> Always know what rvm environment you are in -</p><p>rvm info</p><p>The important parts are the ruby version (about a 3rd of the way down) and the gemset (very last bit listed)</p><p><strong>Step 13:</strong> Install rails</p><p>Once you've made sure that you're using the proper ruby and gemset, then you can install gems (do not use sudo here)</p><p>gem install rails</p><p>This will install the latest rails version, 3.0.4 as of 2/8/2011</p><p><strong>Step 14:</strong> Create your rails app</p><p>rails new my_app</p><p>Step 15: You'll need bundler to run your Gemfile</p><p>gem install bundler</p><p>Every other gem for the project should be maintained in the Gemfile and installed using bundler</p><p>bundle install</p><p></p><p>However on step one, I get the following error:</p><p></p><p></p><p></p><p>I would greatly appreciate any help. I really need this for my University exercises <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite3" alt=":(" title="Frown :(" loading="lazy" data-shortname=":(" /></p></blockquote><p></p>
[QUOTE="Ciwan, post: 1196539, member: 129813"] Hello Everyone Can someone please tell me how I can install RoR 1.9.2 on my iMac Snow Leopard :( I have tried the following: [B]Step 1: Get RVM installed to your .rvm directory[/B] bash < <( curl [url]http://rvm.beginrescueend.com/releases/rvm-install-head[/url] ) [B]Step 2: RVM Post install[/B] Add this next line to your .bash_profile or .bashrc in your home directory - [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session. [B]Step 3: Test your RVM install[/B] Run this command - type rvm | head -1 And you should see - rvm is a function [B]Step 4: Load RVM[/B] (this is what step 2 will do for you from now on, but in the terminal you are working in, you'll need to do this since it was not loaded) Run this - source ~/.rvm/scripts/rvm [B]Step 5: Install some packages[/B], readline so your irb/console works and openssl rvm package install readline rvm package install openssl [B]Step 6: Install ruby 1.9.2[/B] rvm install 1.9.2 Or choose a different one from the list generated by this command - rvm list known [B]Step 7:[/B] Install your a rails 3 gemset rvm gemset create rails3 [B]Step 8:[/B] To see what rubies you have installed rvm list [B]Step 9:[/B] To see what gemsets you have created rvm gemset list [B]Step 10:[/B] Pick a ruby and gemset combo to use - Something like this - rvm use ruby-1.9.2-p136@rails3 Where the ruby version is on the left of the @ and the gemset is on the right of the @. [B]Step 11:[/B] Use .rvmrc for your projects From this point on, you can use a .rvmrc in what ever directory needs a particular rvm So edit .rvmrc and put rvm use ruby-1.9.2-p136@rails3 And anytime you cd into that directory, the rvmrc file will be executed and your rvm environment will be setup [B]Step 12:[/B] Always know what rvm environment you are in - rvm info The important parts are the ruby version (about a 3rd of the way down) and the gemset (very last bit listed) [B]Step 13:[/B] Install rails Once you've made sure that you're using the proper ruby and gemset, then you can install gems (do not use sudo here) gem install rails This will install the latest rails version, 3.0.4 as of 2/8/2011 [B]Step 14:[/B] Create your rails app rails new my_app Step 15: You'll need bundler to run your Gemfile gem install bundler Every other gem for the project should be maintained in the Gemfile and installed using bundler bundle install However on step one, I get the following error: I would greatly appreciate any help. I really need this for my University exercises :( [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Ruby on Rails 1.9.2
Top