I just installed ruby181-13.exe from rubyforge.net . It works great
with one exception, I couldn't get ri to work
when I do ri Hash all I get is File not found.
I use Windows Me if thats matter.
Wassallam,
-- Zakaria
聽聽聽z4k4ri4@bigfoot.com Yahoo!: z4k4ri4
聽聽聽http://zakaria.is-a-geek.org
聽聽聽http://pemula.linux.or.id
Zakaria wrote:
I just installed ruby181-13.exe from rubyforge.net . It works great
with one exception, I couldn't get ri to work
when I do ri Hash all I get is File not found.
There have been problems getting the ri data files packaged with the installer.
See:
http://www.ruby-doc.org/index.rb/2004/Apr/23#Ruby1.8.1.RiDataFiles
which explain s how to get these files.
James
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.
路路路
On Fri, Jun 11, 2004 at 09:54:02PM +0900, James Britt wrote:
Zakaria wrote:
>I just installed ruby181-13.exe from rubyforge.net . It works great
>with one exception, I couldn't get ri to work
>when I do ri Hash all I get is File not found.
There have been problems getting the ri data files packaged with the
installer.
See:
http://www.ruby-doc.org/index.rb/2004/Apr/23#Ruby1.8.1.RiDataFiles
which explain s how to get these files.
-------------------------------------------------------------------
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?
James
Wassallam,
-- Zakaria
z4k4ri4@bigfoot.com Yahoo!: z4k4ri4
http://zakaria.is-a-geek.org
http://pemula.linux.or.id
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
路路路
On Sat, Jun 12, 2004 at 02:51:38AM +0900, Zakaria wrote:
On Fri, Jun 11, 2004 at 09:54:02PM +0900, James Britt wrote:
> Zakaria wrote:
> >I just installed ruby181-13.exe from rubyforge.net . It works great
> >with one exception, I couldn't get ri to work
> >when I do ri Hash all I get is File not found.
> There have been problems getting the ri data files packaged with the
> installer.
> See:
> http://www.ruby-doc.org/index.rb/2004/Apr/23#Ruby1.8.1.RiDataFiles
> 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>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?
-------------------------------------------------------------------
--- 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?
> James
Wassallam,
-- Zakaria
z4k4ri4@bigfoot.com Yahoo!: z4k4ri4
http://zakaria.is-a-geek.org
http://pemula.linux.or.id