Jarl F. wrote:
Sumon [email protected] writes:
in addition, in windows i use WAMP(Windows Apache MySql and PHP) which
is really easy and install in one shot. now i am looking for
equivalent of WAMP in fedora 10. i guess there are no tool in linux
like WAMP.
Have you ever heard of LAMP?
so, if i get an step by step instruction of “How to install RoR in
Fedora 10”
If you are lucky (you have choosen the development package
collection), it may already be installed. open a console and try to
enter ‘rails’, it may already be there.
Depending on what version of Fedora you use, there is a graphical
package management application similar to “Add/Remove Programs” in
windows (e.g. http://www.aravind.name/packagekit-fedora-9) use that
tool to add ‘ruby’ and ‘rubygems’ then on a console run ‘gem install
rails’
The default database for the latest version of rails is sqlite3, so it
might be best to install that database first. Then doesn’t the op also
need to install a package that lets ruby talk to whatever database the
op chooses to use?
So I think the op needs to do 5 things:
- install ruby
- install sqlite3(preferred) or mysql
- install rubygems
- install the latest version of rails
- install a package that allows ruby to talk to the database of choice
And if that isn’t enough, you may need to install some additional
dependencies that those things require.
I have the latest edition of AWDWR which is the 3rd edition, and it’s
the book linked to previously. This is what it says about installing on
Linux:
-
Use your platform’s native package management system to do the
installing, e.g. rpm.
-
Install necessary dependencies:
$ sudo rpm update
$ sudo rpm install build-essential libopenssl-ruby
$ sudo rpm install ruby rubygems ruby1.8-dev libsqlite3-dev
- Before proceeding check to make sure your installation of rubygems is
1.3.1 or later.
$ gem -v
If not, try updating like this:
$ sudo gem update --system
or if that doesn’t succeed in updating, try:
$ sudo gem install rubygems-update
$ sudo update_rubygems
or if that doesn’t work, try:
$ sudo gem install rubygems-update
$ cd /var/lib/gems/1.8/gems/rubygems-update-*
$ sudo ruby setup.rb
otherwise, install a higher version from source:
$ wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz
$ tar xzf rubygems-1.3.1.tgz
$ cd rubygems-1.3.1
$ sudo ruby setup.rb
-
$ sudo gem install rails
-
$ sudo gem install sqlite3-ruby
When prompted select the topmost gem that contains the word “ruby” in
parentheses.
- You may need to add /var/lib/gems/1.8/bin to your PATH environment
variable. You can do that by adding this line to your .bashrc file:
export PATH=/var/lib/gems/1.8/bin:$PATH
Good luck.