Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RVM issuing warnings #3267

Closed
maus- opened this issue Jan 16, 2015 · 6 comments
Closed

RVM issuing warnings #3267

maus- opened this issue Jan 16, 2015 · 6 comments

Comments

@maus-
Copy link

maus- commented Jan 16, 2015

I'm seeing this issue after installing RVM on a vanilla chef/ubuntu1404 box via vagrant. Using a shell script to provision. No zsh or anything out of the ordinary here.

ubuntu_rvm ()
{
  gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
  curl -L https://get.rvm.io | sudo bash -s stable
  source /etc/profile.d/rvm.sh
  sudo usermod -a -G rvm $(whoami)
  rvm autolibs enable
  rvm install $SYSTEM_RUBY_VERSION --auto-dotfiles
  rvm use $SYSTEM_RUBY_VERSION@$SYSTEM_RUBY_GEMSET --default --create
  ubuntu_log_info "Finished installing RVM!"
}

Generates the following warnings whenever I login

Warning: PATH set to RVM ruby but GEM_HOME and/or GEM_PATH not set, see:
    https://github.com/wayneeseguin/rvm/issues/3212
@mpapis
Copy link
Member

mpapis commented Jan 16, 2015

can I also see output of:

echo $GEM_HOME
echo $GEM_PATH
echo $PATH

before and after this message is displayed (rvm is sourced)?

@maus-
Copy link
Author

maus- commented Jan 16, 2015

I'm pretty sure it doesn't matter if rvm is sourced or not.

root@vagrant:/opt# echo $GEM_HOME; echo $GEM_PATH; echo $PATH


/usr/local/rvm/gems/ruby-2.1.3@global/bin:/usr/local/rvm/rubies/ruby-2.1.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/rvm/bin
root@vagrant:/opt# source /etc/profile.d/rvm.sh
root@vagrant:/opt# echo $GEM_HOME; echo $GEM_PATH; echo $PATH


/usr/local/rvm/gems/ruby-2.1.3@global/bin:/usr/local/rvm/rubies/ruby-2.1.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/rvm/bin
root@vagrant:/opt#

@mpapis
Copy link
Member

mpapis commented Jan 18, 2015

can you try with RVM head version?

@maus-
Copy link
Author

maus- commented Jan 19, 2015

Issue still persists while using

  curl -L https://get.rvm.io | sudo bash -s head

during a normal install

@mpapis
Copy link
Member

mpapis commented Jan 21, 2015

sourcing RVM from command line does nothing, please rather put the echo lines like this:

ubuntu_rvm ()
{
  gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
  curl -L https://get.rvm.io | sudo bash -s stable
+ echo $GEM_HOME
+ echo $GEM_PATH
+ echo $PATH
  source /etc/profile.d/rvm.sh
+ echo $GEM_HOME
+ echo $GEM_PATH
+ echo $PATH
  sudo usermod -a -G rvm $(whoami)
  rvm autolibs enable
  rvm install $SYSTEM_RUBY_VERSION --auto-dotfiles
  rvm use $SYSTEM_RUBY_VERSION@$SYSTEM_RUBY_GEMSET --default --create
  ubuntu_log_info "Finished installing RVM!"
}

@havenwood
Copy link
Member

Closing, presuming this helped and the issue was resolved since it's been so long. Please reopen if this isn't the case!

@pkuczynski pkuczynski modified the milestone: rvm-1.27.0 Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants