Rvm on beagleboneblack disable posix

2019-09-09 21:34发布

I'm trying to run rvm on Angstrom linux on BBB.

When i try to launch rvm, i obtain:

RVM can not be run with set -o posix, please turn it off and try again.

Someone know about this?

2条回答
我欲成王,谁敢阻挡
2楼-- · 2019-09-09 21:56

This is a check to prevent running RVM from pure Sh shells, for proper functioning RVM requires Arrays(along other features) which are only available in Bash and Zsh.

查看更多
相关推荐>>
3楼-- · 2019-09-09 22:04

Answer shared by @mapapis was useful to understand the reason (thanks) but I think precise steps to change the default login shell complement this and are useful.

As stated here you may need to change the login shell for your user in order to use the shell of your preference by default, in my case is bash so I made some changes the way I launch my terminal.

chsh is advised but in my particular case I'm using ConEmu Windows Terminal with Cygwin in a Windows 10 environment; sh.exe is used by default thus this RVM warning... chsh is not available in Cygwin, so I followed this reccomendation that states that:

it is just a matter of changing (...) whatever shortcut you are using to start cygwin to call {prefered shell here} instead

I hope this is useful. Gretings!

查看更多
登录 后发表回答