Installing Ruby 2.3.x on Ubuntu 18.04 is causing an error by the end of the installation process

前端 未结 7 908
孤城傲影
孤城傲影 2021-02-05 06:48

I recently updated my system to Ubuntu 18.04 LTS, and since then, the Ruby version seems to have updated to 2.5. The issue is that, when attempting to deploy a project that uses

7条回答
  •  迷失自我
    2021-02-05 07:25

    Try this with rvm

    rvm install ruby-2.3.4
    

    Or perhaps try https://gorails.com/setup/ubuntu/18.04

    You probably are missing required libraries so try running these first:

    curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
    curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    
    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 python-software-properties libffi-dev nodejs yarn
    

提交回复
热议问题