Ubuntu 12.0.4 => rbenv install
Firstly rbenv like other dev tools should be installed on your home directory not your root. (Dont sudo install it)
##Installing rbenv
follow the commands on the github repo
=> https://github.com/sstephenson/rbenv
- install ruby env
- install ruby build
=> sudo apt-get install g++ gcc make libc6-dev patch openssl ca-certificates libreadline6 libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
Installing a version of ruby
=>rbenv install [version]
####An old error
Doing this I keep getting an error saying BUILD FAILED
Solution in terminal
=> rm -rf /tmp/ruby-build.[a long code of numbers]
=> sudo apt-get install g++ gcc make libc6-dev patch openssl ca-certificates libreadline6 libreadline6-dev curl zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev autoconf libc6-dev libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev
=> rbenv install [version]