# yum groupinstall 'Development Tools' 'Development Libraries'
The rest of the packages can be installed with:
# yum install zlib-devel libyaml-devel openssl-devel gdbm-devel readline-devel ncurses-devel libffi-devel curl git openssh-server redis libxml2-devel libxslt-devel libcurl-devel libicu-devel python
3.
yum install git-all vim ruby mysql-server rubygem-bundler ruby-mysql ruby-devel \ libicu-devel libicu tar nginx libxml2 libxml2-devel libxslt libxslt-devel mysql-devel \ gdm-devel gdbm-devel readline-devel ncurses-devel libffi libffi-devel redis \ libcurl-devel postfix mlocate wget cmake
-
Check the installed verison of python
# python —version
Python 2.7.3
-
Start postfix mail server
systemctl enable postfix
systemctl start postfix
-
Install the newest ruby bundler (the installed RPM is not very recent!)
gem install bundler bundle —version Bundler version 1.3.5
1.
2.
gem install bundler -p
安装成功
不过很奇怪貌似上面那个源我都加入进去了的:
gem source --add ''
added to sources
[root@db5 soft_bak]# gem source -l
*** CURRENT SOURCES ***
gem source -u
source cache successfully updated
Gemfile.lock用来记录Application中的依赖Gem包,并详细记录了依赖Gem包的版本。当Application的环境发生变化时,我们可以用Bundle update来更新相关依赖包,也可以保持Gemfile.lock不变。
当我们希望Application中的引用的包保持一致不变时,只要保持Gemfile.lock不变即可。
阅读(1119) | 评论(0) | 转发(0) |