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

macOS JRuby fails on cp with src dir #423

Open
esotericpig opened this issue May 3, 2022 · 1 comment
Open

macOS JRuby fails on cp with src dir #423

esotericpig opened this issue May 3, 2022 · 1 comment
Labels

Comments

@esotericpig
Copy link

esotericpig commented May 3, 2022

(Sorry on mobile, so accidentally sent original bug without description.)

Description

On macOS if install JRuby like this:

$ mkdir temp
$ ruby-install -s temp jruby

Fails on copy_into function:

cp: temp/jruby-9.3.4.0/*: No such file or directory

I added a pwd to copy_into in util.sh, and I see that it actually CDed into that directory:

pwd
/Users/.../temp/jruby-9.3.4.0

So workaround is to use full, absolute path (instead of relative). Interestingly though, just using temp works for installing ruby.

Don't know if this is by design or not.

Environment

  • Darwin kernel v21.4.0
  • bash (not zsh)
  • ruby-install v0.8.3
@esotericpig esotericpig added the bug label May 3, 2022
@postmodern
Copy link
Owner

This is because bin/ruby-install cds into $src_dir/$ruby_dir_name. So if the src_dir is relative, it won't be able to find the $src_dir/$ruby_dir_name while within $src_dir/$ruby_dir_name. We could change the copy_into call to copy the current directory, or replace install_ruby of jruby with better logic that is specifically for installing binary or pre-compiled rubies.

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

No branches or pull requests

2 participants