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

ruby: not found #168

Open
gwL955 opened this issue Jun 20, 2023 · 5 comments
Open

ruby: not found #168

gwL955 opened this issue Jun 20, 2023 · 5 comments
Labels
Milestone

Comments

@gwL955
Copy link

gwL955 commented Jun 20, 2023

When miga is miga init, it always reports ruby not found
The same is true on a brand new server

I think this is a permanent mistake

/home/gewenlong11/basic/miniconda3/envs/miga/share/rubygems/bin/miga: 6: exec: /home/gewenlong11/basic/miniconda3/envs/miga/share/rubygems/bin/ruby: not found
@gwL955
Copy link
Author

gwL955 commented Jun 20, 2023

It's actually in the following position

which ruby
/home/gewenlong11/basic/miniconda3/envs/miga/bin/ruby

I tried to directly modify the sixth line to specify the position that could be passed

#exec "$bindir/ruby" "-x" "$0" "$@"
exec "/home/gewenlong11/basic/miniconda3/envs/miga/bin/ruby" "-x" "$0" "$@"

@jianshu93
Copy link

Hello all,

I believe we have exactly the same problem when trying install miga in a conda environment last time, after version 1.3.1 or so @FangYuan0059 @lmrodriguezr

Jianshu

@lmrodriguezr
Copy link
Member

lmrodriguezr commented Jun 20, 2023

Hello @gewenlong365

Thanks for the report!

I believe this is not a bug in MiGA but a bug in the Ruby recipe in conda-forge (conda-forge/ruby-feedstock#116).

I'll try to resolve the issue directly in conda-forge, but a more stable workaround in the meantime is to symlink Ruby in the rubygems folder (instead of editing the executable):

mkdir -p "$GEM_HOME/bin"
ln -s "$CONDA_PREFIX/bin/ruby" "$GEM_HOME/bin/ruby"

@lmrodriguezr lmrodriguezr changed the title BUG-ruby: not found ruby: not found Jun 20, 2023
@lmrodriguezr lmrodriguezr added this to the 1.4 milestone Jun 20, 2023
@lmrodriguezr
Copy link
Member

A pull request was created in conda-forge which should solve this issue: conda-forge/ruby-feedstock#122

@lmrodriguezr
Copy link
Member

A workaround exists, and the solution doesn't depend on MiGA. Bumping to 1.5

@lmrodriguezr lmrodriguezr modified the milestones: 1.4, 1.5 Mar 20, 2024
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

3 participants