ri not work in Ruby Installer for Windows

Z

Zakaria

There have been problems getting the ri data files packaged with the
installer.

which explain s how to get these files.

Well, I follow the instruction but still doesn't work.
So I renamed things back to the original, rdoc work just fine.

Here some excerpt.
-------------------------------------------------------------------
C:\ruby\bin>ri Hash
File not found

C:\ruby\bin>ri blah
Nothing known about blah

C:\ruby\bin>dir /b|more

erb
erb.bat
irb
irb.bat
libexpat.dll
libexpatw.dll
msvcr71.dll
msvcrt-ruby18.dll
proxyserver.rb
ri
rdoc.bat
ri.bat
ruby.exe
rubyw.exe
sqlsh.rb
testrb
testrb.bat
msvcrt.dll
tcl83.dll
tclpip83.dll
tclsh83.exe
tk83.dll
wish83.exe
glut32.dll
glut32.lib
rdoc

C:\ruby\bin>type ri.bat
@echo off
"c:\ruby\bin\ruby.exe" "c:\ruby\bin\ri" %1 %2 %3 %4 %5 %6 %7 %8 %9

C:\ruby\bin>type rdoc.bat
@echo off
"c:\ruby\bin\ruby.exe" "c:\ruby\bin\rdoc" %1 %2 %3 %4 %5 %6 %7 %8 %9
-------------------------------------------------------------------

I'm using ruby181-13.exe on Windows Me.
Any other fix?

Wassallam,


-- Zakaria
(e-mail address removed) Yahoo!: z4k4ri4
http://zakaria.is-a-geek.org
http://pemula.linux.or.id
 
Z

Zakaria

Well, I follow the instruction but still doesn't work.
So I renamed things back to the original, rdoc work just fine.

Here some excerpt.
-------------------------------------------------------------------
C:\ruby\bin>ri Hash
File not found

C:\ruby\bin>ri blah
Nothing known about blah

C:\ruby\bin>type ri.bat
@echo off
"c:\ruby\bin\ruby.exe" "c:\ruby\bin\ri" %1 %2 %3 %4 %5 %6 %7 %8 %9

C:\ruby\bin>type rdoc.bat
@echo off
"c:\ruby\bin\ruby.exe" "c:\ruby\bin\rdoc" %1 %2 %3 %4 %5 %6 %7 %8 %9
-------------------------------------------------------------------
I'm using ruby181-13.exe on Windows Me.
Any other fix?

I finally able to track down the problem.
It seem when ri try to find a pager, ruby halt on
system("more < #{pager}").

This small patch will take care the problem, but still no pager
-------------------------------------------------------------------
--- ruby/lib/ruby/1.8/rdoc/ri/ri_display.rb.orig 2004-03-25 01:17:42.000000000 +0700
+++ ruby/lib/ruby/1.8/rdoc/ri/ri_display.rb 2004-06-15 19:11:52.000000000 +0700
@@ -222,7 +222,7 @@
STDOUT.reopen(@save_stdout)
@save_stdout = nil
paged = false
- for pager in [ ENV['PAGER'], "less", "more <", 'pager' ].compact.uniq
+ for pager in [ ENV['PAGER'], 'less', 'more', 'pager' ].compact.uniq
if system("#{pager} #{path}")
paged = true
break
-------------------------------------------------------------------

Any fix, Dave? :)

Wassallam,


-- Zakaria
(e-mail address removed) Yahoo!: z4k4ri4
http://zakaria.is-a-geek.org
http://pemula.linux.or.id
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,772
Messages
2,569,593
Members
45,111
Latest member
VetaMcRae
Top