Install Ruby 1.9.2 (from source) and Rails 3.0.1 on Ubuntu 10.10 & Debian6
来源:互联网 发布:淘宝卖家资质认证 编辑:程序博客网 时间:2024/06/05 07:54
原文:http://www.giantflyingsaucer.com/blog/?p=1883
本人在Debian6上实验安装成功
Install Ruby 1.9.2 (from source) and Rails 3.0.1 on Ubuntu 10.10
Although I believe using RVM is a better way to install and manage Ruby on Ubuntu (seemy article on how to do that), you can however just install Ruby from source code. Today I’ll go over the steps to do that as well as installingRails 3.0.1 and SQLite.
I will be installing Ruby 1.9.2 on a clean Ubuntu 10.10 system. The first thing is to install all the required libraries:
$ sudo apt-get update$ sudo apt-get install build-essential zlib1g zlib1g-dev libreadline5 libreadline5-dev libssl-dev
Grab the source code from the Ruby FTP site and adjust the version number as newer builds are released into the stable tree:
$ mkdir ruby-src && cd ruby-src$ wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p0.tar.gz$ tar -zxvf ruby-1.9.2-p0.tar.gz && cd ruby-1.9.2-p0$ ./configure$ make && sudo make install
Verify that the correct Ruby version is now running:
$ ruby -v
Expected output:
Since RubyGems already comes with Ruby 1.9.2 we can install Rails 3.0.1 (without the documentation) like this:
$ gem update --system$ sudo gem install rails --no-rdoc --no-ri
Verify the correct Rails version was installed:
$ rails -v
Expected output:
Install SQLite and the SLQite ruby binding (without the documentation):
$ sudo apt-get install sqlite3 libsqlite3-dev$ sudo gem install sqlite3-ruby --no-rdoc --no-ri
Verify the correct SQLite version was installed:
$ sqlite3 --version
Expected output:
List and verify your local Gems:
$ gem list --local
You are now ready to build Ruby on Rails 3 web apps.
- Install Ruby 1.9.2 (from source) and Rails 3.0.1 on Ubuntu 10.10 & Debian6
- 【Ruby on Rails】Install rjb on Ubuntu
- install Ruby on Rails
- Install Ruby on Rails on Ubuntu 12.04 LTS
- Install Ruby on rails on Ubuntu 14.04 LST
- Install ruby 1.9.3-p125 from source
- How to install Ruby on Rails in Ubuntu 11.10
- CentOS install Ruby On Rails
- install ruby on rails debian
- Ruby On Rails Ubuntu
- ruby and ruby on rails
- Installing Ruby 1.8.6 from Source on Ubuntu
- Install ruby on rails on CentOS
- ruby on rails - ubuntu篇
- Ubuntu 配置Ruby on Rails
- Ubuntu 安装ruby on rails
- How to Install Ruby on Rails on Ubuntu 12.04 LTS (Precise Pangolin) with RVM
- java php rails on ruby open source
- 最长递增子序列问题
- 梦想是沿途的风景
- Strategy模式
- 写给那些身边最近分手。离别。背叛。迷茫。纠结。心情不好的朋友们。单纯的希望你们可以开心
- Notepad++ 插件 开发
- Install Ruby 1.9.2 (from source) and Rails 3.0.1 on Ubuntu 10.10 & Debian6
- C#控件大全
- jquery treeview插件在ie6上的bug修正
- 数据结构_串_用链表做存储结构实现KMP算法_C++实现
- SVN 版本服务器搭配全过程详解(含服务端、客户端)
- The 36th ACM/ICPC Asia Regional Beijing Site Online Contest - B_Eliminate Witches!
- va_start和va_end的用法
- 香农定理 奈奎斯特定理 傅立叶变换 z变换 S变换
- GCC使用手册及常用命令行