Archive for the ‘ubuntu’ Category

Install SQLite3 in Ubuntu

  1. Install Sqlite3
    sudo apt-get install sqlite3 libsqlite3-dev
    sudo gem install sqlite3-ruby
  2. To create a data base, we only need to create a empty file.
    touch database_name_dev.db
    touch database_name_test.db
    touch database_name_prod.db
  3. Configure Ruby on Rails Modificar el archivo config/database.yml:
      adapter: sqlite3
      database: db/database_name_dev.db
      adapter: sqlite3
      database: db/database_name_test.db
      adapter: sqlite3
      database: db/database_name_prod.db

Installing Rubinius in ubuntu

This post is out of date 

> sudo apt-get install ruby
> sudo apt-get install irb
> sudo apt-get install rdoc
> sudo apt-get install libglib2.0-dev libglib2.0-ruby libglib2.0-data
> sudo apt-get install subversion
> sudo apt-get install make automake
> sudo apt-get install bison pkg-config build-essentials libtool libglib2.0-dev
> sudo gem install rake rubyinline rspec ruby2ruby 

> shell$ svn co rbx
> shell$ cd rbx
> sudo gem install sydparse
> sudo gem install RubyInline
> sudo apt-get install bison
# installar glib
> shell$ rake build:all
> shell$ ./shotgun/rubinius -e "puts 'hello rubinius'"