Ruby Install / Init does not find dk.rb

I am trying to download / install Ruby on Win7 (I am new to Ruby).

I went to this URL: http://rubyinstaller.org/downloads/ and the downloadable version of "Ruby 1.9.3-p545" I installed in the following folder / directory: C: \ RubyDevKit \ (no spaces in the folder name).

I get the following error when I try to execute the init step:

C:\RubyDevKit>ruby dk.rb init
ruby: No such file or directory -- dk.rb (LoadError)

I ran this on the command line:

C:\RubyDevKit>ruby -v
ruby 1.9.3p545 (2014-02-24) [i386-mingw32]

So, I have a ruby, and I ended up in the correct directory (for this link SO: LoadError when installing ruby ​​devkit )

I also tried and got the same error:

C:\RubyDevKit>chcp 1252
Active code page: 1252

I have Aptana v3 installed on 3.4.2.201308081805 (but there are no other versions of Ruby). I also can not find the acutal dk.rb file anywhere through the windows / cmd explorer.

C:\RubyDevKit>dir
Volume in drive C is Local Disk
Volume Serial Number is 0CBF-3D16

Directory of C:\RubyDevKit

05/29/2014  03:04 PM    <DIR>          .
05/29/2014  03:04 PM    <DIR>          ..
05/29/2014  03:04 PM    <DIR>          bin
05/29/2014  03:04 PM    <DIR>          doc
05/29/2014  03:04 PM    <DIR>          include
05/29/2014  03:04 PM    <DIR>          lib
05/29/2014  03:04 PM    <DIR>          share
05/29/2014  03:04 PM           167,349 unins000.dat
05/29/2014  03:04 PM         1,193,995 unins000.exe
           2 File(s)      1,361,344 bytes
           7 Dir(s)  1,287,681,196,032 bytes free

Bin directory:

C:\RubyDevKit>cd bin

C:\RubyDevKit\bin>dir
Volume in drive C is Local Disk
Volume Serial Number is 0CBF-3D16

Directory of C:\RubyDevKit\bin

05/29/2014  03:04 PM    <DIR>          .
05/29/2014  03:04 PM    <DIR>          ..
02/24/2014  09:20 PM             4,397 erb
02/24/2014  09:20 PM               177 erb.bat
02/24/2014  09:20 PM               921 gem
02/24/2014  09:20 PM               177 gem.bat
02/24/2014  09:20 PM               318 irb
02/24/2014  09:20 PM               177 irb.bat
02/24/2014  09:20 PM         1,486,336 libeay32.dll
02/24/2014  09:20 PM           127,316 libffi-6.dll
02/24/2014  09:20 PM           140,586 libgdbm-3.dll
02/24/2014  09:20 PM           103,726 libgdbm_compat-3.dll
02/24/2014  09:20 PM         1,262,898 libiconv-2.dll
02/24/2014  09:20 PM           441,874 libyaml-0-2.dll
02/24/2014  09:17 PM         2,289,664 msvcrt-ruby191.dll
02/24/2014  09:20 PM           238,505 pdcurses.dll
02/24/2014  09:20 PM             1,231 rake
02/24/2014  09:20 PM               177 rake.bat
02/24/2014  09:20 PM               788 rdoc
02/24/2014  09:20 PM               177 rdoc.bat
02/24/2014  09:20 PM               188 ri
02/24/2014  09:20 PM               177 ri.bat
02/24/2014  09:17 PM            70,239 ruby.exe
02/24/2014  09:17 PM            70,239 rubyw.exe
12/30/2013  01:11 PM               312 setrbvars.bat
02/24/2014  09:20 PM           341,504 ssleay32.dll
02/24/2014  09:20 PM               298 testrb
02/24/2014  09:20 PM               177 testrb.bat
02/24/2014  09:20 PM            83,968 zlib1.dll
          27 File(s)      6,666,547 bytes
           2 Dir(s)  1,287,679,569,920 bytes free

, , Ruby, "init".

Edit: Aptana IDE → Terminal :

$ gem install ruby-debug-ide --platform=ruby

:

Fetching: ruby-debug-ide-0.4.22.gem (100%)
ERROR:  Error installing ruby-debug-ide:
    The 'ruby-debug-ide' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

( cmd:

C:\RubyDevKit\bin>gem -v
1.8.28
+4
2

DEVKIT C.

, DEVKIT . -, , DEVKIT Ruby , , (x86/64).

: http://www.waydotnet.com/2010/02/12/rmagick-on-ruby-1-9-1-i386-mingw32-work-d/

0

, , DevKit dk.rb. DevKit 4.5 (DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe), Ruby 1.9.3-p551, dr.rb script.

TL; DR: , dk.rb, Ruby 1.9 DevKit 4.5

0

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


All Articles