RVMSUDO does not use environment variables

I created a set of env vars that I installed in my .bash_profile

which does not work when using RVMSUDO

then I tried to export rvm, and when viewing rvmsudo env they get rvm_old_ $ nameofvariable instead of $ nameofvariable

I also tried adding export name = value to .rvmc in the project and that dosen't doesn't seem to be reflected.

Any suggestions?

+6
source share
2 answers

According to: https://github.com/wayneeseguin/rvm/blob/master/bin/rvmsudo#L83

You must prefix your environment variable "http_" or "PATH" so that rvm passes this variable along.

+2
source

I needed to copy and modify rvmsudo so that it saves ORACLE_HOME and LD_LIBRARY_PATH for the root account in order to install ruby-oci8:

]$ diff `which rvmsudo` rvmsudo 84c84 < GREP_OPTIONS="" \grep -E '^rvm|^gemset|^http_|^PATH|^IRBRC|RUBY|GEM' | --- > GREP_OPTIONS="" \grep -E '^rvm|^gemset|^http_|^PATH|^IRBRC|^ORA|^LD_LIBRARY|RUBY|GEM' | 
0
source

Source: https://habr.com/ru/post/974233/


All Articles