Erb does not work

[email protected]$G$9!#e(B

String#each e$B$,$J$/$J$C$?1F6A$G!"e(Berb e$B$Ne(B trim_mode=1, 2
e$B$,e(B
e$B%(%i!<$K$J$C$F$^$9!#e(B

~/src/ruby % ruby -v -I./lib -rerb -e ‘ERB.new("", nil, 2).result’
ruby 1.9.0 (2006-10-17) [x86_64-linux]
/home/aamine/src/ruby/lib/erb.rb:311:in
ERB::Compiler::TrimScanner#scan': undefined methodeach’ for “”:String
(NoMethodError)
from /home/aamine/src/ruby/lib/erb.rb:524:in
ERB::Compiler#compile' from /home/aamine/src/ruby/lib/erb.rb:691:ininitialize’
from -e:1:in `Class#new’
from -e:1

Index: lib/erb.rb

RCS file: /var/cvs/src/ruby/lib/erb.rb,v
retrieving revision 1.16
diff -u -r1.16 erb.rb
— lib/erb.rb 10 Jan 2006 15:21:45 -0000 1.16
+++ lib/erb.rb 17 Oct 2006 12:08:00 -0000
@@ -304,11 +304,11 @@
def scan(&block)
@stag = nil
if @percent

  • @src.each do |line|
    
  • @src.each_line do |line|
      percent_line(line, &block)
    end
    
    else
  • @src.each do |line|
    
  • @src.each_line do |line|
      @scan_line.call(line, &block)
    end
    

    end
    @@ -392,7 +392,7 @@

    class SimpleScanner < Scanner # :nodoc:
    def scan

  • @src.each do |line|
  • @src.each_line do |line|
    line.split(SplitRegexp).each do |token|
    next if token.empty?
    yield(token)

e$B31$H$$$$$^$9!#e(B

On 2006/10/17, at 21:12, Minero A. wrote:

[email protected]$G$9!#e(B

String#each e$B$,$J$/$J$C$?1F6A$G!"e(Berb e$B$Ne(B trim_mode=1, 2 e$B$,e(B
e$B%(%i!<$K$J$C$F$^$9!#e(B

e$B$"$&$"$&!#e([email protected]$C$1!E!#e(B

e$B<j85$Ge(B1.9e$B$,:n$l$J$$$N$G%3%_%C%[email protected]$1$J$$$G$7$g$&$+e(B? >
[email protected]$5$se(B

[email protected]$G$9!#e(B

In mail “[ruby-dev:29670] Re: erb does not work”
Masatoshi SEKI [email protected] wrote:

e$B31$H$$$$$^$9!#e(B

String#each e$B$,$J$/$J$C$?1F6A$G!"e(Berb e$B$Ne(B trim_mode=1, 2 e$B$,e(B
e$B%(%i!<$K$J$C$F$^$9!#e(B

e$B<j85$Ge(B1.9e$B$,:n$l$J$$$N$G%3%_%C%[email protected]$1$J$$$G$7$g$&$+e(B? > [email protected]$5$se(B

e$B%3%_%C%H$7$^$7$?!#e(B

e$B$M$P$?$G$9!#e(B
bcc32 e$B$G!"e(Bmake install e$B$G$-$^$;$s!#e(B

MAKE Version 5.2 Copyright © 1987, 2000 Borland
.\miniruby.exe .//instruby.rb --dest-dir=“C:\ruby19”
–extout=".ext" --make=“make” --mflags="" --make-flags=“l -o "
–installed-list .installed.list --mantype=”"
installing binary commands
installing command scripts
installing library scripts
installing headers
installing manpages
installing extension objects
installing extension scripts
Fatal: ‘post-install-bin’ does not exist - don’t know how to make it

make e$BCJ3,$G!"#[email protected]$17Y9p$,=P$F$$$^$7$?!#B>[email protected]>o$G$9!#e(B
tlib /a “bccwin32-ruby19-static.lib” array.obj ascii.obj
bignum.obj class.obj compar.obj dir.obj dln.obj enum.obj
enumerator.obj error.obj euc_jp.obj eval.obj file.obj gc.obj
hash.obj inits.obj io.obj marshal.obj math.obj numeric.obj
object.obj pack.obj parse.obj process.obj prec.obj random.obj
range.obj re.obj regcomp.obj regenc.obj regerror.obj
regexec.obj regparse.obj ruby.obj signal.obj sjis.obj sprintf.
obj st.obj string.obj struct.obj time.obj utf8.obj util.obj
variable.obj version.obj acosh.obj crypt.obj erf.obj win32.obj
dmyext.obj
TLIB 4.5 Copyright © 1987, 1999 Inprise Corporation
Warning: library was too large for page size, rebuilt with page size 32

bcc32\Makefile.sub e$B$N!"#1#4#[email protected]$7$F$bF1$8$G$7$?!#e(B
e$B!J5l!Ke(B
ARFLAGS = /a
e$B!J?7!Ke(B
ARFLAGS = /a /P32

e$B$I$J$?$+$4B8CN$N$+$?!"65$($F2<$5$$!#e(B

[email protected]$G$9!#e(B

At Thu, 19 Oct 2006 23:15:19 +0900,
Nebata wrote in [ruby-dev:29676]:

Fatal: ‘post-install-bin’ does not exist - don’t know how to make it

e$BD>$C$?$H;W$$$^$9!#$?$V$s!#e(B

static-linked-exte$B$r=|$$$F!#e(B

e$B$H$3$m$G!"$I$&$7$F$be(Bbcce$B$r;H$o$6$k$r$([email protected]<B$JM}M3$G$b$"$k$N$G$7$g$&e(B
e$B$+!#e(B

make e$BCJ3,$G!"#[email protected]$17Y9p$,=P$F$$$^$7$?!#B>[email protected]>o$G$9!#e(B
TLIB 4.5 Copyright © 1987, 1999 Inprise Corporation
Warning: library was too large for page size, rebuilt with page size 32

e$B$3$N7Y9p$O5$$E$$$F$^$;$s$G$7$?!#%G%U%)%k%[email protected]$He(B1MBe$B$^$G$7$+:n$l$J$$$H$+e(B
e$B$=$s$J46$8$G$7$g$&$+!#e(B

bcc32\Makefile.sub e$B$N!"#1#4#[email protected]$7$F$bF1$8$G$7$?!#e(B
e$B!J5l!Ke(B
ARFLAGS = /a
e$B!J?7!Ke(B
ARFLAGS = /a /P32

e$B$3$3$rJQ$($k$H%9%?%F%#%C%/%j%s%/$9$k3HD%%i%$%V%i%j$K$b1F6A$,=P$^$9$,!"e(B
e$B$^$!$?$$$7$?:9$G$O$J$$$+$b!#e(B

e$B$M$P$?$G$9!#e(B
e$B>e<j$/$$$-$^$7$?!#$"$j$,$H$&$4$6$$$^$9!#e(B

C:>ruby -v
ruby 1.9.0 (2006-10-20) [i386-bccwin32]

e$B$H$3$m$G!"$I$&$7$F$be(Bbcce$B$r;H$o$6$k$r$([email protected]<B$JM}M3$G$b$"$k$N$G$7$g$&e(B
e$B$+!#e(B
[email protected]<B$JM}M3$G$O$J$$$H;W$$$^$9$,!"#M#S#V#C$r%$%s%9%H!<%k$9$k$N$,LLE][email protected]$1e(B
e$B$G$9!#e(B
e$BIaCJ$O$"$^$je(B e$B#Ce(B
e$B$r;H$o$J$$$N$G!"#B#C#C$GMQ$,B-$j$F$$$^$9!#e(B
e$B$=$l$b!"e(BRuby e$B$re(B make
e$B$9$k$3$H$,<gL\E*$K$J$C$F$$$k46$8$G$9!#e(B


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs