安装teambox(how to install teambox on centos6)

参考官网:https://github.com/teambox/teambox/wiki/Installing-locallymysql

安装GITgit

yum install git -ygithub

安装RVMsql

\curl -sSL https://get.rvm.io | bash -s stable --ruby   数据库

安装完后是比较新的版本,换成1.8.7的ruby

rvm install ruby-1.8.7bash

rvm listcurl

安装: rubygemsfetch

wget -c http://production.cf.rubygems.org/rubygems/rubygems-2.1.11.tgzurl

ruby setup.rb 

配置淘宝的源

sed -i 's!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby!' /usr/local/rvm/config/db

gem sources --remove https://rubygems.org/

gem sources -a http://ruby.taobao.org/

提示出错

Error fetching http://ruby.taobao.org/:

        no such name (http://ruby.taobao.org/specs.4.8.gz)

修改DNS为114.114.114.114从新添加

gem sources -l

安装BUNDLER

gem install bundler

安装MYSQL

yum install mysql mysql-server mysql-devel -y

安装ImageMagick

yum install ImageMagick ImageMagick-devel -y 

下载程序

git clone git://github.com/teambox/teambox.git

cd teambox

git checkout master

bundle install

而后看错误提示,缺啥补啥了

yum install .....  

gem install .....

继续bundle install

初始化数据库

bundle exec rake db:create db:schema:load RAILS_ENV=development

启动

rails server -e development

相关文章
相关标签/搜索