fui icon indicating copy to clipboard operation
fui copied to clipboard

Can't work when system ruby version is not 2.3

Open buptwsg opened this issue 5 years ago • 5 comments

Hi there, After I type 'fui' in terminal, I get an error: -bash: /usr/local/bin/fui: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory

It seems that this tool has dependency of ruby 2.3, but my system ruby version is not 2.3.

Anyone please help me? Thanks.

buptwsg avatar Dec 13 '20 14:12 buptwsg

There's no dependency on a specific version of Ruby, but your system may be defaulting to 2.3 that is not working. Does typing ruby -v work at all and ruby -e "puts 'hello'"?

dblock avatar Dec 14 '20 13:12 dblock

@dblock ruby -v and ruby -e "puts 'hello'" works well. My ruby version is : ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]

Please help me, thanks.

buptwsg avatar Jul 23 '21 07:07 buptwsg

@dblock ruby -v and ruby -e "puts 'hello'" works well. My ruby version is : ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [x86_64-darwin19]

Please help me, thanks.

This has to be a problem in your installation. When you do which ruby, what do you get?

dblock avatar Jul 23 '21 14:07 dblock

/usr/local/opt/ruby/bin/ruby

buptwsg avatar Jul 23 '21 14:07 buptwsg

i think it looks similar to https://github.com/rbenv/rbenv/issues/886, check the discussion in there?

dblock avatar Jul 23 '21 17:07 dblock