LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-13-2011, 05:31 AM   #1
zoran119
Member
 
Registered: Dec 2007
Posts: 217

Rep: Reputation: 18
installing ruby on rails


hi all,

i want to have a play with ruby on rails. one of the ways to install it is to run
Code:
gem install rails
but this gives me an error:
Code:
rake requires RubyGems version >= 1.3.2
i could run
Code:
gem update
but i'm worried that this might break something.

can anyone suggest how to install rails?
 
Old 12-13-2011, 08:41 PM   #2
NoStressHQ
Member
 
Registered: Apr 2010
Location: Geneva - Switzerland ( Bordeaux - France / Montreal - QC - Canada)
Distribution: Slackware 14.2 - 32/64bit
Posts: 609

Rep: Reputation: 221Reputation: 221Reputation: 221
Hi,

Have a look at this http://beginrescueend.com/...

I use this on servers to allow redmine to run with a previous version of ruby (redmine doesn't support yet ruby 1.9, or at least didn't support it until recently, I haven't checked now...)

Cheers

Garry.
 
Old 12-14-2011, 08:26 AM   #3
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 88

Rep: Reputation: 63
Quote:
Originally Posted by zoran119 View Post
hi all,

i want to have a play with ruby on rails. one of the ways to install it is to run
Code:
gem install rails
but this gives me an error:
Code:
rake requires RubyGems version >= 1.3.2
i could run
Code:
gem update
but i'm worried that this might break something.

can anyone suggest how to install rails?
First off, since ruby/rails has many version constraints from project to project, the rvm command, as mentioned, is very handy. You can have multiple version of ruby and handle different sets of gems for projects without complicated installing/uninstalling.

Code:
rvm install ruby-1.9.3
rvm use ruby-1.9.3
rvm gemset create rails_test
rvm gemset use rails_test
gem update --system
gem install rails
and away you go. All of this is stored in your ~/.rvm/, so there is no need to mess with being root.

If you do want to use your system, and don't need the latest rails. Find the whole list of versions like so:
Code:
gem search -ra rails | less
A version of rails like 2.3.14 should do fine. Install it like:
Code:
gem install rails -v=2.3.14
If you do want the latest rails, then to update the version of rubygems on the system, do:
Code:
gem update --system
This installation installs to /usr/lib$SUFFIX/ruby/gems/ as well as /usr/lib$SUFFIX/ruby/site_ruby/, but that cruft shouldn't likely ever cause you problems. It's just good to know it's there.

Take care,
vb
 
Old 12-18-2011, 11:12 PM   #4
vbatts
Member
 
Registered: Jun 2005
Location: Raleigh, NC, USA
Distribution: slackware
Posts: 88

Rep: Reputation: 63
Quote:
Originally Posted by zoran119 View Post
Code:
rake requires RubyGems version >= 1.3.2
also, there is now a packaged update for rubygems on the slackbuilds.org site (http://slackbuilds.org/repository/13...bygems-update/)

Take care,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem installing ruby on rails kathmanduite Linux - Software 6 09-27-2012 06:59 AM
Any issues installing Ruby Gems and Ruby on Rails in Slackware? Lufbery Slackware 8 02-09-2011 07:22 PM
[SOLVED] [Ruby on Rails] backticks don't work under rails. bartonski Programming 1 09-08-2009 04:19 PM
LXer: Installing Ruby on Rails in Linux LXer Syndicated Linux News 0 12-04-2008 10:00 PM
Installing ruby with rails+mysql+apache on Slackware 10.2 from source paultoytoy Slackware 1 09-08-2006 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration