LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-02-2008, 11:35 AM   #1
Mangalaiii
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Turning a Ruby on Rails Ubuntu command into a Redhat command


Hi,

I'm the noobiest noob you'll find on here. I'm having trouble getting ruby on rails to work with mysql on redhat. So on their forum I asked how to install the latest "sqlite" database package on linux. They told me to run:

Quote:
sudo apt-get install build-essential ruby1.8-dev libsqlite3-dev
Now, I don't think I need "sudo" because I am the root user on my database, and I don't think I can use "apt-get" because I'm using redhat, not ubuntu.

1) Is there a way of running the above command on redhat? (A redhat command for installing things?)

2) How can I be sure I'm using redhat and not some other OS?

Would majorly appreciate this. Thanks, David
 
Old 12-02-2008, 03:37 PM   #2
tospo
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Rep: Reputation: 0
ok, where do we start....

First, here is a command that should show you which OS you are using:
Code:
less /proc/version
On RedHat you use yum instead of apt-get. For example: to list packages that contain sqlite in the name do this:
Code:
yum list '*sqlite*'
when I do this I get this list (being on a i386 system):
Installed Packages
python-sqlite.i386 1.1.7-1.2.1 installed
sqlite.i386 3.3.6-2 installed
sqlite-devel.i386 3.3.6-2 installed
Available Packages
...

I can now install with this command:
Code:
sudo yum install sqlite.i386 sqlite-devel.i386
You do need to be the root user for your sytem for this and that has nothing to do with the root for your database.

Ruby should be installed on your system already but you can check with yum whether you can install any update packages (in that case use yum update).

You will also want to install the sqlite ruby gem:
Code:
gem install sqlite-ruby
Of course you need rubygems for that first (see here)

and then you can install rails:
Code:
gem install rails
GOOD LUCK!!!
 
  


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
Any issues installing Ruby Gems and Ruby on Rails in Slackware? Lufbery Slackware 8 02-09-2011 07:22 PM
LXer: How to Install Ruby on Rails (ROR) in Ubuntu LXer Syndicated Linux News 0 11-07-2007 01:30 AM
PHP v Ruby/Ruby on Rails Neko_D Linux - General 4 02-08-2007 11:56 PM
Getting started with Ruby on Rails Ephracis Linux - Server 1 09-24-2006 03:40 PM
LXer: Ruby on Rails LXer Syndicated Linux News 0 02-16-2006 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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

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