Ubuntu安装使用系列: 数据库系统Sqlite3

Posted by cnruby Wed, 28 Jun 2006 21:45:00 GMT

Ubuntu安装使用系列: 目录和说明

安装使用数据库系统Sqlite3
  1. 安装数据库系统Sqlite3:
    apt-get install sqlite sqlite3
  2. 检查数据库安装结果:
    sqlite3 test.db
    .database
    .exit
    提供下面的命令我们应该可以看到文件test.db。
    ls
  3. 安装Sqlite3编译需要的工具包:
    apt-get install libsqlite3-dev
  4. 安装Sqlite3的Ruby语言接口:
    gem install sqlite3-ruby -r
  5. 检查安装结果:
    rails test
    vi config/database.yml
    vi db/create.db
    ./db/create.db
    ./script/generate scaffold lesson admin
    错误的输出结果图:

    正确的输出结果图:

  6. 参考资料:
    1. http://code.whytheluckystiff.net/camping/wiki/BeAlertWhenOnSqlite3
    2. http://daniel.lorch.cc/docs/rails_install_debian/
    3. http://www.econectados.com/2005/12/instalar_rails_en_ubuntu.html

Posted in  | Tags , ,  | no comments | no trackbacks

Trackbacks: 0

Use the following link to trackback from your own site: http://www.hhtong.com/blog1/articles/trackback/978

Comments: 0

Leave a response | RSS feed for this post

Leave a response

Toggle website and email fields