Skip to main content

Installing Ruby

deepika@linux-yq3p:~> sudo zypper in ruby devel_ruby
root's password:
Loading repository data...
Reading installed packages...
'ruby' is already installed.
'devel_ruby' not found.
Resolving package dependencies...

Nothing to do.



----------------------------------------------------

Installing RubyGems :

{ RubyGems is a package management tool, much like zypper. It’s got very simple syntax and installation is straightforward as well.}

deepika@linux-yq3p:~> sudo zypper in rubygems
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW packages are going to be installed:
ruby-devel rubygems

2 new packages to install.
Overall download size: 1.5 MiB. After the operation, additional 6.2 MiB will be
used.
Continue? [y/n/?] (y): y
Retrieving package ruby-devel-1.8.7.p72-7.3.i586 (1/2), 955.0 KiB (2.8 MiB unpac
ked)
Retrieving: ruby-devel-1.8.7.p72-7.3.i586.rpm [done (0 B/s)]
Installing: ruby-devel-1.8.7.p72-7.3 [done]
Retrieving package rubygems-1.3.1-4.3.i586 (2/2), 628.0 KiB (3.5 MiB unpacked)
Retrieving: rubygems-1.3.1-4.3.i586.rpm [done]
Installing: rubygems-1.3.1-4.3 [done]

----------------------------------------------------------

Use ruby gems to install Rails:
{You’ll need to install Ruby, ruby-sqlite, and ruby gems. done prev}

deepika@linux-yq3p:~> sudo gem install rails
root's password:
Successfully installed rake-0.8.7
Successfully installed activesupport-2.3.5
Successfully installed activerecord-2.3.5
Successfully installed rack-1.0.1
Successfully installed actionpack-2.3.5
Successfully installed actionmailer-2.3.5
Successfully installed activeresource-2.3.5
Successfully installed rails-2.3.5
8 gems installed
Installing ri documentation for rake-0.8.7...
Installing ri documentation for activesupport-2.3.5...
Installing ri documentation for activerecord-2.3.5...
Installing ri documentation for rack-1.0.1...
Installing ri documentation for actionpack-2.3.5...
Installing ri documentation for actionmailer-2.3.5...
Installing ri documentation for activeresource-2.3.5...
Installing RDoc documentation for rake-0.8.7...
Installing RDoc documentation for activesupport-2.3.5...
Installing RDoc documentation for activerecord-2.3.5...
Installing RDoc documentation for rack-1.0.1...
Installing RDoc documentation for actionpack-2.3.5...
Installing RDoc documentation for actionmailer-2.3.5...
Installing RDoc documentation for activeresource-2.3.5...
------------------------------------------------

Rails should be all installed and ready to go. You can test it out by creating a new project:

deepika@linux-yq3p:~> sudo zypper in rubygems
Loading repository data...
Reading installed packages...
deepika@linux-yq3p:~> rails foobar
create
create app/controllers
create app/helpers
create app/models

create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create db/seeds.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log

Comments

Popular posts from this blog

How to Use Chisanbop (Korean Finger Math) for Basic Addition and Counting | eHow.com

How to Use Chisanbop (Korean Finger Math) for Basic Addition and Counting eHow.com Difficulty: Easy Instructions Step 1 In Chisanbop you'll be using your two hands and ten fingers to represent numbers from 0 to 99. Start out with your hands out in front of you with closed fists. This represents 0. Each finger (not thumb) on your right hand represents 1. To represent 3, just press down three right hand fingers. Your right thumb represents 5. To represent 7, press down your right thumb and 2 right hand fingers. Think of your right hand as the ones or units place (column). Step 2 Your left hand represents the tens place (column). Each finger on your left hand is worth 10. For example, to represent 30, press down three left hand fingers. To represent 38, do the same, but also use your right hand to represent 8 as described above. Your left thumb represents 50. To represent 86, press down your left thumb and three left hand fingers for the 80, and your right thumb and one righ

How to load the sample database into the MariaDB server.

1. Download  the Sample Database  (Source :  https://www.mariadbtutorial.com/getting-started/mariadb-sample-database/  ) 2. unzip the file to a directory e.g.,  c:\mariadb\nation.sql 2.   connect to the MariaDB server  with the  root  user account, type the password and press the   Enter  keyboard. sudo mysql -u root -p Enter password: ******** 3.  Load the database by using the source command: mysql>source c:\mariadb\nation.sql 4.  select the   nation   database and display tables of the database: mysql> use nation; Database changed mysql> show tables ;