- 浏览: 857447 次
- 性别:
- 来自: lanzhou
文章分类
最新评论
-
liu346435400:
楼主讲了实话啊,中国程序员的现状,也是只见中国程序员拼死拼活的 ...
中国的程序员为什么这么辛苦 -
qw8226718:
国内ASP.NET下功能比较完善,优化比较好的Spacebui ...
国内外开源sns源码大全 -
dotjar:
敢问兰州的大哥,Prism 现在在12.04LTS上可用么?我 ...
最佳 Ubuntu 下 WebQQ 聊天体验 -
coralsea:
兄弟,卫星通信不是这么简单的,单向接收卫星广播信号不需要太大的 ...
Google 上网 -
txin0814:
我成功安装chrome frame后 在IE地址栏前加上cf: ...
IE中使用Google Chrome Frame运行HTML 5
Ubuntu 9.04 repositories contain both Ruby 1.9 and Ruby 1.8. Unfortunately, the jaunty repositories contain Ruby 1.8.7 when we actually want Ruby 1.8.6.
To fix this we need to add the Hardy repository to our sources and pin Ruby libraries to the Hardy repository
Open up the terminal (Applications -> Accessories -> Terminal) and type: sudo nano /etc/apt/sources.list. Scroll down (Page Down key) to the bottom of this file and paste (press Shit + Control + V) the following:
- #Hardy Repos for Ruby 1.8.6
- deb http://gb.archive.ubuntu.com/ubuntu/ hardy restricted main multiverse universe
- deb-src http://gb.archive.ubuntu.com/ubuntu/ hardy restricted main multiverse universe
#Hardy Repos for Ruby 1.8.6 deb http://gb.archive.ubuntu.com/ubuntu/ hardy restricted main multiverse universe deb-src http://gb.archive.ubuntu.com/ubuntu/ hardy restricted main multiverse universe
Press Control + X to save. Type sudo nano /etc/apt/preferences and paste (Shift + Control + V) the following:
- Package: ruby
- Pin: release a=hardy
- Pin-Priority: 900
- Package: ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: rdoc1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: ri1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libgtk2-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libdbd-sqlite3-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libopenssl-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libsqlite3-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: ruby1.8-dev
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libdbi-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libatk1-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libpango1-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libatk1-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libgdk-pixbuf2-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libglib2-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libcairo-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: irb1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libreadline-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
- Package: libncurses-ruby1.8
- Pin: release a=hardy
- Pin-Priority: 900
Package: ruby Pin: release a=hardy Pin-Priority: 900 Package: ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: rdoc1.8 Pin: release a=hardy Pin-Priority: 900 Package: ri1.8 Pin: release a=hardy Pin-Priority: 900 Package: libgtk2-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libdbd-sqlite3-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libopenssl-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libsqlite3-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: ruby1.8-dev Pin: release a=hardy Pin-Priority: 900 Package: libdbi-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libatk1-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libpango1-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libatk1-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libgdk-pixbuf2-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libglib2-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libcairo-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: irb1.8 Pin: release a=hardy Pin-Priority: 900 Package: libreadline-ruby1.8 Pin: release a=hardy Pin-Priority: 900 Package: libncurses-ruby1.8 Pin: release a=hardy Pin-Priority: 900
This effectively pins all Ruby related packages to hardy. Type sudo apt-get update followed by sudo aptitude install ruby rdoc irb libyaml-ruby libzlib-ruby ri libopenssl-ruby ruby1.8-dev to install Ruby 1.8.6. Confirm by typing ruby -v at the prompt:
The above process can also be used to pin Ruby to 1.8.6 on Ubuntu Server.
- na@na-desktop:~$ ruby -v
- ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
na@na-desktop:~$ ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
9. Install Ruby Gems and Rails
Although Ubuntu does package GEM in its repositories it is my preference that GEM be installed from source. There is some controversy over whether Ubuntu should maintain Gems or RubyGems should. Personally, I would prefer it that Gems be maintained by RubyGems and not Ubuntu
To install RubyGem MySQL and Rails:
- cd ~
- mkdir gems && cd gems
- wget http://rubyforge.org/frs/download.php/55066/rubygems-1.3.2.tgz
- tar xf rubygems-1.3.2.tgz
- cd rubygems-1.3.2/
- sudo ruby setup.rb
- sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
- sudo gem update --system
- sudo gem install rails
- sudo gem install mongrel
- sudo apt-get install mysql-server libmysqlclient15-dev
- sudo gem install mysql
发表评论
-
Ubuntu 10.04 新视觉设计、主题和Logo
2010-03-04 18:46 972根据官方wiki (屏幕截图)的介绍,Ubuntu ... -
Ubuntu自动备份软件包和制作本地源
2010-01-27 11:47 2533执行过sudo apt-get update &&am ... -
10 scripts to create your own Linux distribution
2010-01-25 15:20 1044Those familiar with Linux will ... -
Ubuntu下rhythmbox播放MP3乱码问题的解决
2010-01-19 18:03 2428在Ubuntu下,系统是使用的UTF-8字符集。而rhyt ... -
解决ubuntu 鼠标键盘的失效问题
2010-01-11 10:09 11083把主板的apic 禁用掉就可以了,如果你是多系统的话,这样可能 ... -
Windows 7 or Ubuntu 9.10 – battle of the operating systems
2009-11-06 08:08 1015Operating systems have become l ... -
Hey Ubuntu, Stop Making Linux Look Bad
2009-11-06 08:07 893It’s the same old story. A new ... -
Ubuntu.com Suffers Intermittent Outages As Thousands Download Karmic Koala
2009-11-04 08:40 790(WEB HOST INDUSTRY REVIEW) -- T ... -
Xubuntu 9.10 Review and Commentary
2009-11-04 08:38 958With the recent release of Ub ... -
Ubuntu 9.10 - Almost Perfect
2009-11-03 09:48 736It’s been quite some time sin ... -
How to make Ubuntu extremely fast
2009-11-03 08:57 1670Old hardware? Want a faster boo ... -
5 things make Kubuntu 9.10 special
2009-11-03 08:50 878Kubutnu is the first distributi ... -
CentOS 5.4 vs. OpenSuSE 11.2 vs. Ubuntu 9.10 Benchmarks
2009-11-03 08:49 2963With the release of CentOS 5.4 ... -
many things to do after install ubuntu 9.10
2009-11-02 14:46 5600So you've just installed Ubuntu ... -
How to install Nvidia/ATI graphic cards drivers in Ubuntu 9.04
2009-11-01 23:49 1659Many a times users mess up thei ... -
How to install Ubuntu 9.10 without CD/DVD
2009-11-01 23:44 1310Ubuntu 9.10, Karmic Koala is ... -
Things to do after installing Ubuntu9.10 Karmic Koala
2009-11-01 22:44 1995Here are things i see are impor ... -
Ubuntu下安装MP3播放器Audacious
2009-11-01 08:02 2531在Ubuntu下安装软件就是简单方便,MP3你想不想听,那我们 ... -
The new Ubuntu Software Center
2009-10-31 08:25 1097You may remember my mention of ... -
Ubuntu 9.10 'Karmic Koala' released, could decide your OS fate
2009-10-30 09:51 702It's October 2009 which means s ...
相关推荐
### Ruby 1.8.6 与 Rails 2.1.0 的安装指南 #### 安装背景 本文档旨在指导用户如何在 Windows 操作系统上安装 Ruby 1.8.6 版本以及 Rails 2.1.0 版本,并确保其正确运行。这些版本虽然已经比较老旧,但在某些特定...
标题与描述中的关键词“ruby1.8.6”指向了Ruby编程语言的一个特定版本,即Ruby 1.8.6。这一版本在2007年发布,是Ruby语言发展历史上的一个重要里程碑,它在性能、稳定性和安全性方面相较于之前的版本有了显著提升,...
Ruby1.8.6 One-Click Installer
在本文中,我们将深入探讨如何在您的计算机上安装和配置Ruby 1.8.6、Rails 2.0.2、RadRails 0.7.2 IDE以及MySQL数据库。这是一个适用于初学者和有一定经验的开发者的技术指南,旨在帮助您创建一个稳定的开发环境,...
Ruby 1.8.6 是一个古老的 Ruby 语言版本,发布于2009年,主要为Windows用户提供安装程序。这个版本在当时是许多开发者和项目依赖的基础,它包含了对Ruby编程语言的基本特性以及对Windows操作系统的兼容性优化。本文...
Ruby 1.8.6 是一个古老的 Ruby 语言版本,发布于2009年,是许多开发者早期学习和构建应用程序的重要版本。Ruby 是一种面向对象的、动态类型的编程语言,以其简洁、清晰的语法和强大的元编程能力而受到欢迎。在 Ruby ...
Ruby-doc is a project dedicated to creating and collecting documentation on Ruby. You can find collections of articles and other resources at the website. stdlib-doc is a RubyForge project that ...
ruby 1.8.6官方chm文档,做为ruby开发者,这是必备文档.
Ruby1.8.6 One-Click Installer
4. **Enterprise Features(企业级特性)**:REE还包含了一些额外的库和工具,如 Passenger(又名Mod_Ruby,一个流行的Ruby on Rails部署解决方案),这些工具和库旨在简化服务器部署和管理,提高生产环境的稳定性。...
Ruby1.8.6 One-Click Installer带SciTE
随着互联网的快速发展,Ruby on Rails作为一种流行的Web开发框架,在开发领域得到了广泛的应用。它的简易性与高效性让许多开发者为之青睐。而想要在本地环境搭建Ruby on Rails的开发环境,掌握正确的安装步骤是基础...
4. **安装**:使用`sudo make install`将编译好的Ruby二进制文件安装到系统的适当位置。 标签中提到了"j2ee"和"net",这可能意味着Ruby可以与Java(J2EE)和.NET平台进行集成。Ruby可以通过Rack中间件与Java的...
6. **Rails框架**:Ruby 1.8.6时期的Ruby on Rails是一个非常流行的Web开发框架,它极大地简化了Web应用的构建过程,使得开发者能够快速开发出功能丰富的应用。虽然现在最新的Rails版本不再支持Ruby 1.8.6,但在当时...
好用的API chm格式 想要的就下载吧!!!!
synergy是结合你的桌面设备在一个连贯的体验。这是软件在多台计算机之间...for ubuntu 7B76313B70726F3B6A6F736570682077616E673B313B636E6A6F77616E6740676D61696C2E636F6D3B6B6164616E67206E6574776F726B733B303B307D
ruby api ruby文档 英文 ruby开发必备
ruby-1.8.6.tar.bz2
[root@test ~]# yum -y install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql 三、安装 RubyGems RubyGems 是一个 Ruby 软件包管理工具,用于安装 Ruby 软件包。需要安装 RubyGems 1.3.7 或更高版本...
例如,安装Ruby 1.8.6,你可能会运行`rvm install 1.8.6`(如果是RVM)或`gem install ruby-1.8.6`(如果使用chruby)。 - **验证安装**:安装完成后,运行`ruby -v`检查Ruby是否成功安装并显示正确版本。 4. **...