taylor / kiex

Elixir version manager
http://taylor.github.io/kiex/
MIT License
776 stars 66 forks source link

Does not appear to co-exist well with rvm #40

Closed dueckes closed 8 years ago

dueckes commented 8 years ago

With the following in my login shell script:

export KIEX_DIR="$HOME/.kiex"
[[ -s "$KIEX_DIR/scripts/kiex" ]] && source "$KIEX_DIR/scripts/kiex"

#THIS MUST BE AT THE END OF THE FILE FOR RVM TO WORK!!!
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

I receive the following error when sourcing the script:

/Users/me/.rvm/scripts/env: line 3: /base: No such file or directory
/Users/me/.rvm/scripts/env: line 5: __rvm_env_print: command not found

Commenting out lines related to kiex solves the problem.

Any idea on the cause?

dueckes commented 8 years ago

Additionally, when attempting to install, I (eventually) experience the following:

==> iex (compile)
Compiled lib/iex/app.ex
Compiled lib/iex/cli.ex
Compiled lib/iex/remsh.ex
Compiled lib/iex.ex
Compiled lib/iex/history.ex
Compiled lib/iex/autocomplete.ex
Compiled lib/iex/config.ex
Compiled lib/iex/evaluator.ex
Compiled lib/iex/server.ex
Compiled lib/iex/helpers.ex
Compiled lib/iex/introspection.ex
Compiled lib/iex/info.ex
Generated iex app
==> elixir (compile)
==> elixir (install)
/Users/me/.rvm/scripts/install: line 18: /Users/me/.kiex/builds/elixir-git/scripts/functions/installer: No such file or directory
/Users/me/.rvm/scripts/install: line 20: install_rvm: command not found
dueckes commented 8 years ago

Appears to have worked after tweaking the order of initialization in my login shell script.

taylor commented 8 years ago

What order made it work for you?

On Thu, Mar 3, 2016, 22:53 Matthew Ueckerman notifications@github.com wrote:

Appears to have worked after tweaking the order of initialization in my login shell script.

— Reply to this email directly or view it on GitHub https://github.com/taylor/kiex/issues/40#issuecomment-192104888.