LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-18-2009, 02:19 AM   #1
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Rep: Reputation: 15
yum install rails did not work?


yum install rails did not work. What should I do?
PS: trying to install ruby rails

Last edited by deostroll; 08-18-2009 at 02:23 AM.
 
Old 08-18-2009, 02:32 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe there is no RPM package for Rails. Or you don't have the repository that provides the rpm installed. I tried to search for a rails package in google, but I cannot find something useful, hence I guess you have to install it from source.

<edit> Correction: there are some packages (old versions anyway) out there, specifically for mandriva, opensuse and ubuntu. Found them at www.rpmseek.com </edit>

Last edited by colucix; 08-18-2009 at 02:36 AM.
 
Old 08-18-2009, 02:36 AM   #3
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
Confused! Via yum I had installed ruby & irb 1.8.5. So I am looking at installing the appropriate version of ruby on rails which supports this version of ruby. How do u find repositories which have ruby or rails or anything and then add it to your repo list?
 
Old 08-18-2009, 05:04 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# yum search rails
# yum install rubygem-rails mysql-devel ruby-devel

... rubygem-rails is in the 'epel.repo'.

# gem install rails
... and wait 5 minutes for it to complete the install.

Next
Code:
# gem install mysql -- --with-mysql-include=/usr/include/mysql --with-mysql-lib=/usr/lib/mysql --with-mysql-config
Ref.
http://involution.com/railsonrhel/
which is the first hit, by Googling .. dag rpm rails ..
( The page was issued 2005, at that time there was no
rpm package(s) rubygem-* available.)
.....

Please also do # yum search ruby
to see some other 'rubygem-xxxx' packages.
.....

Good luck !
.....

Last edited by knudfl; 08-18-2009 at 05:17 AM.
 
Old 08-18-2009, 05:40 AM   #5
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
how do you add that repo?
 
Old 08-18-2009, 06:09 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# yum -y install epel-release


epel means "extra packages el"
 
Old 08-18-2009, 06:16 AM   #7
deostroll
Member
 
Registered: Aug 2007
Location: Bangalore
Distribution: fedora
Posts: 113

Original Poster
Rep: Reputation: 15
i did a search for it. It does not exist.
 
Old 08-18-2009, 08:11 AM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by deostroll View Post
i did a search for it. It does not exist.
Take a look at http://wiki.centos.org/AdditionalResources/Repositories and search for Extra Packages for Enterprise Linux (EPEL). Follow instructions and the trick is done.
 
Old 08-19-2009, 01:42 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Sorry , I wasn't that alert.

It is a 'vicious circle'.

The package 'epel-release' is in ...... the epel.repo.


.....

Last edited by knudfl; 08-20-2009 at 03:51 AM.
 
Old 08-19-2009, 02:04 PM   #10
kingkashif
Member
 
Registered: May 2009
Posts: 94

Rep: Reputation: 16
well to install epel-release

Code:
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-3.noarch.rpm
to install ruby etc

Code:
yum install ruby-irb ruby-libs rubygems ruby ruby-rdoc

Good luck
 
  


Reply

Tags
epel, install, rails, ruby, rubygems, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
yum install for gcc-c++ doesn't work aagha Fedora 6 10-14-2010 08:46 AM
yum install xine doesnt work schneidz Fedora 4 07-08-2009 03:43 PM
How do I get Ruby on Rails Application to work? RavenLX Linux - Server 0 06-15-2009 04:06 PM
Yum Install doesn't work deepu_linux Linux - Software 7 11-18-2008 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:57 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