LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Ruby on Rails on CentOS 5.3 (https://www.linuxquestions.org/questions/programming-9/ruby-on-rails-on-centos-5-3-a-760057/)

nandanm1 10-06-2009 09:48 AM

Ruby on Rails on CentOS 5.3
 
Hi,

Could someone help me in installing and configuring Ruby on Rails on CentOS?

I checked this link http://wiki.rubyonrails.org/getting-...n/linux-fedora.

But the first step itself failed. I was not able to find any packages like rubygem-rails or rubygem-sqlite3-ruby.

centosboy 10-06-2009 01:31 PM

Quote:

Originally Posted by nandanm1 (Post 3709644)
Hi,

Could someone help me in installing and configuring Ruby on Rails on CentOS?

I checked this link http://wiki.rubyonrails.org/getting-...n/linux-fedora.

But the first step itself failed. I was not able to find any packages like rubygem-rails or rubygem-sqlite3-ruby.


yes, but do you have fedora repository set up? i guess not..


Code:

https://fedoraproject.org/wiki/EPEL

nandanm1 10-07-2009 10:02 AM

Quote:

Originally Posted by centosboy (Post 3709922)
yes, but do you have fedora repository set up? i guess not..


Code:

https://fedoraproject.org/wiki/EPEL

I have now installed it by enabling the EPEL repo but I am not sure how to move further.

centosboy 10-07-2009 10:06 AM

Quote:

Originally Posted by nandanm1 (Post 3711063)
I have now installed it by enabling the EPEL repo but I am not sure how to move further.

depends what you are after

apache + mongrel
apache + passenger
nginx + mongrel


personally i am using apache+mongrel for puppet

nandanm1 10-14-2009 12:16 PM

Quote:

Originally Posted by centosboy (Post 3711066)
depends what you are after

apache + mongrel
apache + passenger
nginx + mongrel


personally i am using apache+mongrel for puppet

I just referred this link http://guides.rubyonrails.org/getting_started.html and installed the same.

One of the issues I faced was "Error installing sqlite3-ruby: sqlite3-ruby requires Ruby version > 1.8.5 "

I used this command: gem install sqlite3-ruby --version '= 1.2.4' and the issue got resolved.

However my new issue is I don't really understand the whole of the ruby code. I want to design a simple web application with date & time to be mentioned. I am not sure how to go about the same.

I searched for some sample data but could not find it. Could someone help?

centosboy 10-15-2009 03:40 AM

Quote:

Originally Posted by nandanm1 (Post 3719120)
I just referred this link http://guides.rubyonrails.org/getting_started.html and installed the same.

One of the issues I faced was "Error installing sqlite3-ruby: sqlite3-ruby requires Ruby version > 1.8.5 "

I used this command: gem install sqlite3-ruby --version '= 1.2.4' and the issue got resolved.

However my new issue is I don't really understand the whole of the ruby code. I want to design a simple web application with date & time to be mentioned. I am not sure how to go about the same.

I searched for some sample data but could not find it. Could someone help?

take your pick from here

nandanm1 10-15-2009 12:10 PM

Quote:

Originally Posted by centosboy (Post 3719992)
take your pick from here

I tried installing mongrel using "gem install mongrel" and gem install mongrel_service. I am getting a new error message as mentioned below:

** Ruby version is not up-to-date; loading cgi_multipart_eof_fix
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- win32/service (LoadError)

Could you help!


All times are GMT -5. The time now is 03:32 PM.