Ask A Question

Notifications

You’re not receiving notifications from this thread.

Installing ruby on rails in ubuntu 24.04

Punnareddy Jilugu asked in General

I am following your tutorial for installing ruby on rails in ubuntu 24.04 using esdf and installed esdf.while installing ruby it downloaded ruby and while configuring the system shut down suddenly.when tried with rvm the same problem ariaised.Is this is due to problem in newly installed 24.04.Kindly help me.

Reply

Hi Punnareddy Jilugu, I think I had an issue with RVM on my new Ubuntu 24.04 LTS. I think I just tried using rbenv instead. I installed usign the following commands on the terminal:

sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
type rbenv
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

And finally you can install the version you need for example ruby 3.0.7

rbenv install -l
rbenv install 3.0.7
rbenv global 3.0.7
ruby -v

I hope this can be helpful to you! I would also appreciate if someone could tell us if my solution has some drawback.

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 85,376+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.