LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   yum install rails did not work? (https://www.linuxquestions.org/questions/linux-software-2/yum-install-rails-did-not-work-748349/)

deostroll 08-18-2009 02:19 AM

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

colucix 08-18-2009 02:32 AM

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>

deostroll 08-18-2009 02:36 AM

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?

knudfl 08-18-2009 05:04 AM

# 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 !
.....

deostroll 08-18-2009 05:40 AM

how do you add that repo?

knudfl 08-18-2009 06:09 AM

# yum -y install epel-release


epel means "extra packages el"

deostroll 08-18-2009 06:16 AM

i did a search for it. It does not exist.

colucix 08-18-2009 08:11 AM

Quote:

Originally Posted by deostroll (Post 3647826)
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.

knudfl 08-19-2009 01:42 PM

Sorry , I wasn't that alert.:Pengy:

It is a 'vicious circle'.

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

.....

kingkashif 08-19-2009 02:04 PM

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


All times are GMT -5. The time now is 10:14 PM.