在新做的Linux系统上安装第三方包(install libs on bare linux)

访问量: 2133

参考: http://www.jasonrowland.com/2009/12/30/bare-ubuntu-configuration-for-ruby-on-rails/

on ubuntu (对于 ubuntu14 , libopenssl-ruby找不到了,需要使用 sudo apt-get install libopenssl-ruby1.9)

$ sudo apt-get install libapr1-dev libxml2-dev  libxslt-dev mysql-server libmysqlclient-dev 
$ sudo apt-get install git curl build-essential libssl-dev libreadline-dev 
$ sudo apt-get install libopenssl-ruby1.9 build-essential libssl-dev libreadline-dev vim
on centus:
$ yum install curl curl-devel zlib-devel openssl-devel cpio expat-devel gettext-devel
$ yum install bash curl git patch
$ yum install gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf  automake libtool bison iconv-devel  bzip2-devel  libbz2-devel

install VIM, RUBY, gems:

$ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL -l
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install 1.9.3-p551


$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

(more details for installing vim , check this out: http://siwei.me/blog/posts/installing-vim-and-vundle )

订阅/RSS Feed

Subscribe

分类/category