Steps for Rails installation | How to install rails by abhishek singh


100% worked for me so I'm sharing this. Every line is a separate command so copy each line and execute.


        sudo add-apt-repository ppa:webupd8team/atom -y

        sudo apt-get update && sudo apt-get upgrade

        sudo apt-get install -y curl git openssl postgresql libpq-dev sqlite redis-server

        sudo apt-get install -y vim atom

        cd

        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

        source ./.bashrc


        sudo apt-get install -y libssl-dev libreadline-dev zlib1g-dev

        rbenv install -v 2.4.0

        rbenv global 2.4.0 && rbenv shell 2.4.0

        ruby -v

        echo "gem: --no-document" > ~/.gemrc

        gem update --system

        gem install bundler

        gem install rails

        rbenv rehash

        git clone https://github.com/rbenv/rbenv-vars.git $(rbenv root)/plugins/rbenv-vars

        curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

        sudo rm /var/cache/apt/archives/lock && sudo apt-get update

        sudo apt-get install -y nodejs && sudo apt-get install -y build-essential

        nodejs -v

        wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh

        sudo apt-get autoremove -y

        sudo update-rc.d postgresql enable

Comments

Popular posts from this blog

Most trending cafe and restaurant chain Btechchaiwala

BtechChaiwala explains how to run your restaurant

Btechchaiwala | Boost your restaurants sell using technology | How technology can improve your business