Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rbenv stuck on installing ruby #144

Closed
charlescho opened this issue Apr 12, 2016 · 13 comments
Closed

rbenv stuck on installing ruby #144

charlescho opened this issue Apr 12, 2016 · 13 comments

Comments

@charlescho
Copy link

when using using rbenv to install ruby, bash is stuck on "Installing ruby -2.3.0".

@jwsloan
Copy link

jwsloan commented Apr 12, 2016

I experienced the same thing. Also failed with RVM. I ended up following this post:
http://daverupert.com/2016/04/jekyll-on-windows-with-bash/

@hut8
Copy link

hut8 commented Apr 12, 2016

Brightbox's Ruby PPA packages work great:

https://www.brightbox.com/docs/ruby/ubuntu/

@akitaonrails
Copy link

I can say that I installed rvenv with ruby-build plugin and while installing a new ruby takes a huge amount of time it does end. CPU goes 100% for a very long time, an hour or more sometimes, but it finished correctly and ruby does work. I installed 2.3.0.

@charlescho
Copy link
Author

After waiting about 30 minutes, ruby-build did manage to complete the installation.

@10XL
Copy link

10XL commented May 4, 2017

If you use --verbose, you should see the install progress.

  • rbenv install --verbose 2.3.1

@lopezunwired
Copy link

I did these commands, still running.
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

Then install rbenv:

cd
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

rbenv install 2.3.1

@lopezunwired
Copy link

Mine installed (about 25 minutes). After completing the last step I ran:

rbenv global 2.3.1
ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

@algobasket
Copy link

@lopezunwired Nice , rbenv install --verbose 2.3.1
You have saved my day

@lopezunwired
Copy link

Glad it helped you @algobasket . I haven't used ruby much since then.

@techieroshan
Copy link

It is over 30 mins for me already and still waiting for rbenv install 2.5.3 to finish

@tieandsuit
Copy link

tieandsuit commented Jan 9, 2019

takes some time indeed. Waited for 10 min and done .. but --verbose helped . as I now can see it's not stuck. Thanks for a tip.

@iam-veeramalla
Copy link

--verbose helped. Thanks alot :)

@Tony-Sol
Copy link

Same here, but i'm trying to install ruby from rbenv via mise (which is like asdf and wrapper over rbenv)
it stucks on 2 processes:
compiling psych_to_ruby.c and make[2]: Entering directory '/tmp/ruby-build.20240216210431.7436.FEZYoq/ruby-3.3.0/ext/rubyvm

top-to-bottom:
mise procees (with RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@3)")
ps aux | rg ruby
strace of stucked processes

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests