vedranvinko icon

ruby_ubuntu

vedranvinko | PRO | 06/04/17 11:15:32 AM UTC | 0 ⭐ | 1000 👁️ | Never ⏰ | []
text |

1.08 KB

|

None

|

0 👍

/

0 👎

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev
sudo apt-get install python-software-properties libffi-dev
 git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL
 git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
 git clone https://github.com/sstephenson/rbenv-gem-rehash.git ~/.rbenv/plugins/rbenv-gem-rehash
 rbenv install 2.2.2
rbenv global 2.2.2
ruby -v
 echo "gem: --no-ri --no-rdoc" > ~/.gemrc
gem install bundler
 git config --global color.ui true
git config --global user.name "YOUR NAME"
git config --global user.email "[email protected]"
ssh-keygen -t rsa -C "[email protected]"
 cat ~/.ssh/id_rsa.pub
 ssh -T [email protected]
 Ukoliko prenosis .gitconfig s windoza, postavi autocrlf = false

Comments