bio-miga/miga

ruby: not found

Opened this issue · 5 comments

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

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" "$@"

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

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"

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

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