Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rhc setup gives error `no such file dl/import`

Tags:

ruby

openshift

Updating net-ssh to 2.9.3.beta1, as cremno suggested in this comment, resolved my problem.

gem install net-ssh -v 2.9.3.beta1

Before that, I tried gem install net-ssh, but it didn't help.


I ran into this problem when I used the latest version of Ruby (currently 2.2.1) as stated on the OpenShift setup instructions. I fixed it by:

  1. Installing Ruby 1.9.3
  2. Re-running "gem install rhc"

After that, I was able to run "rhc setup" without any issue.


If you are running Windows 10 Pro x64, try installing Ruby 2.1.8 (x64) with Git Version 2.7.0. This will surely allow you to run rhc setup as it did happened with me. Earlier I had a problem running & installing latest version of Ruby 2.2.4 (x64) but when I downgraded to ruby version 2.1.8 (x64) I was able to run rhc setup and configure OpenShift client toolson Windows. See the image for Ruby version I'm using - ruby 2.1.8p440 (2015-12-16 revision 53160) [x64-mingw32]

enter image description here

Read here for getting started to OpenShift client tools on windows.


Use the RHC tested Ruby version instead of the latest. As of today it is 1.9.3-p194


Try using/installing a lower version of ruby after uninstalling the 2,2,0 because some windows version conflict with ruby version you are using. I tried 2.2.3 and then lowered to 2.2.0 and it worked for me.