I am trying to run the following script from a remote computer on a Linux machine with RVM:
plink.exe -pw root @ <Linux ip> /root/script.shERROR: Error installing / usr / local / rvm / gems / ruby -1.9.2-p290 / cache / bundler-1.0.22.gem: package requires version RubyGems> = 1.3.6
plink.exe -pw root @ <Linux ip> /root/script.sh
ERROR: Error installing / usr / local / rvm / gems / ruby -1.9.2-p290 / cache / bundler-1.0.22.gem: package requires version RubyGems> = 1.3.6
script.sh is a script that runs ruby script.
I think the problem is with some sort of collusion with RVM or the gems builder on remote Linux.
Can anyone advise?
, script rvm. . script, "ruby --- version" / "which ruby" first
Edit:
bash script - :
[[ -s "/usr/local/rvm/scripts/rvm" ]] && . "/usr/local/rvm/scripts/rvm" # Load RVM function rvm use 1.9.2