Building One-Click Installer with latest snapshot source

Discussion in 'Ruby' started by J. D., Nov 5, 2004.

  1. J. D.

    J. D. Guest

    Hi,

    Has anyone tried building the Ruby One-Click Installer using a
    downloaded Ruby stable snapshot?

    Can it be done with Visual C++ 6.0? Or the free Visual C++ Toolkit 2003
    1.01?
    J. D., Nov 5, 2004
    #1
    1. Advertising

  2. J. D.

    Curt Hibbs Guest

    J. D. wrote:
    >
    > Hi,
    >
    > Has anyone tried building the Ruby One-Click Installer using a
    > downloaded Ruby stable snapshot?
    >
    > Can it be done with Visual C++ 6.0? Or the free Visual C++ Toolkit 2003
    > 1.01?


    You can use vc++ 6.0 and the results appear to be good, but the FreeRIDE
    debugger will not work. I've never been able to figure out why, but the
    problem disappears when you build ruby with vc++ 7.1. There is some subtle
    difference that makes me wonder what else might not work with a vc++ 6
    build. Anyway, for this reason I no longer use vc++ 6 with the cone-click
    installer.

    I've been meaning to try the free vc++ 7 compiler but I haven't yet had
    time.

    If you try to build the one-click installer, it has two build targets
    "stable" and "dev". The dev target is meant for building from any version of
    ruby source you already have on your machine. However, I haven't touched the
    dev target in a while and I'm willing to bet its broken. So, I would suggest
    using the stable target and modifying the Package.new statement on line 119
    of builder.rb to specify the version of ruby that you want built.

    Joao Pedrosa posted instructions on RubyGarden for setting up the free vc++
    7 compiler. You can find them here:

    http://www.rubygarden.org/ruby?WindowsCompiler

    Good luck!

    Curt
    Curt Hibbs, Nov 5, 2004
    #2
    1. Advertising

  3. J. D.

    J. D. Guest

    Curt Hibbs wrote:
    > If you try to build the one-click installer, it has two build targets
    > "stable" and "dev". The dev target is meant for building from any version of
    > ruby source you already have on your machine. However, I haven't touched the
    > dev target in a while and I'm willing to bet its broken. So, I would suggest
    > using the stable target and modifying the Package.new statement on line 119
    > of builder.rb to specify the version of ruby that you want built.
    >


    Curt,

    Thanks for the info!

    I tried building the one-click installer using the latest stable
    snapshot. The only change I made was replacing line 119 in builder.rb to:

    "ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz",

    My current install of ruby is in d:\apps\ruby. And I'm trying to build
    from t:\rubyinstaller. Not sure if the different drive letters is what
    is causing the problem but here's what I get using VC Toolkit 2003 1.01:


    ***********************************************************

    Building Version 182-14

    ***********************************************************
    --------
    Ruby
    --------

    Downloading stable-snapshot.tar.gz from ftp.ruby-lang.org
    Checking 'ruby-1.8.2'
    copy stable-snapshot.tar.gz temp.tgz
    1 file(s) copied.
    gzip -d stable-snapshot.tar.gz
    rename temp.tgz stable-snapshot.tar.gz
    tar -xf stable-snapshot.tar
    cd ruby-1.8.2
    d:/apps/ruby/lib/ruby/1.8/fileutils.rb:98:in `chdir': No such file or
    directory
    - ruby-1.8.2 (Errno::ENOENT)
    from d:/apps/ruby/lib/ruby/1.8/fileutils.rb:98:in `cd'
    from ./commands.rb:184:in `run'
    from ./commands.rb:167:in `each'
    from ./commands.rb:167:in `run'
    from ./package.rb:114:in `initialize'
    from builder.rb:119:in `new'
    from builder.rb:119
    NMAKE : fatal error U1077: 'ruby.exe' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077:
    'D:\apps\Microsoft_VCToolkit2003\bin\nmake.exe' : ret
    urn code '0x2'
    Stop.
    J. D., Nov 5, 2004
    #3
  4. J. D.

    J. D. Guest

    I changed another line and created the directory to fix the problem.

    Long story short, line 123 fo builder.rb was changed to:

    T:/rubyinstaller/rubyinstaller/installer-win/stable/download/ruby

    And it seems to work now. The clue was the attempt to 'cd win32' and
    run 'configure.bat'.
    J. D., Nov 5, 2004
    #4
  5. J. D.

    Curt Hibbs Guest

    J. D. wrote:
    >
    > Curt Hibbs wrote:
    > > If you try to build the one-click installer, it has two build targets
    > > "stable" and "dev". The dev target is meant for building from

    > any version of
    > > ruby source you already have on your machine. However, I

    > haven't touched the
    > > dev target in a while and I'm willing to bet its broken. So, I

    > would suggest
    > > using the stable target and modifying the Package.new statement

    > on line 119
    > > of builder.rb to specify the version of ruby that you want built.
    > >

    >
    > Curt,
    >
    > Thanks for the info!
    >
    > I tried building the one-click installer using the latest stable
    > snapshot. The only change I made was replacing line 119 in builder.rb to:
    >
    > "ftp://ftp.ruby-lang.org/pub/ruby/stable-snapshot.tar.gz",
    >
    > My current install of ruby is in d:\apps\ruby. And I'm trying to build
    > from t:\rubyinstaller. Not sure if the different drive letters is what
    > is causing the problem but here's what I get using VC Toolkit 2003 1.01:


    The problem is the preview release tarball unpacks into a directory named
    "ruby-1.8.2" while the stable snapshot tarball unpacks into a directory
    named "ruby". So in addition to changing the URL parameter of where to get
    Ruby, you also need to change the following parameter that specifies the
    unpack directory.

    Curt


    >
    > ***********************************************************
    >
    > Building Version 182-14
    >
    > ***********************************************************
    > --------
    > Ruby
    > --------
    >
    > Downloading stable-snapshot.tar.gz from ftp.ruby-lang.org
    > Checking 'ruby-1.8.2'
    > copy stable-snapshot.tar.gz temp.tgz
    > 1 file(s) copied.
    > gzip -d stable-snapshot.tar.gz
    > rename temp.tgz stable-snapshot.tar.gz
    > tar -xf stable-snapshot.tar
    > cd ruby-1.8.2
    > d:/apps/ruby/lib/ruby/1.8/fileutils.rb:98:in `chdir': No such file or
    > directory
    > - ruby-1.8.2 (Errno::ENOENT)
    > from d:/apps/ruby/lib/ruby/1.8/fileutils.rb:98:in `cd'
    > from ./commands.rb:184:in `run'
    > from ./commands.rb:167:in `each'
    > from ./commands.rb:167:in `run'
    > from ./package.rb:114:in `initialize'
    > from builder.rb:119:in `new'
    > from builder.rb:119
    > NMAKE : fatal error U1077: 'ruby.exe' : return code '0x1'
    > Stop.
    > NMAKE : fatal error U1077:
    > 'D:\apps\Microsoft_VCToolkit2003\bin\nmake.exe' : ret
    > urn code '0x2'
    > Stop.
    >
    > ---
    > Incoming mail is certified Virus Free.
    > Checked by AVG anti-virus system (http://www.grisoft.com).
    > Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
    >
    Curt Hibbs, Nov 5, 2004
    #5
  6. J. D.

    J. D. Guest

    I got past the FXRuby and Expat installation screens. The build
    continued until the following error. I'll put together notes from this
    exercise and post it in a useful format once I get this to build
    successfully.

    Thanks for helping.

    ----

    T:\rubyinstaller\rubyinstaller\installer-win\stable\download\xmlparser>nmake
    /NO
    LOGO
    cl -nologo -MD -Zi -O2b2xg- -G6 -I.
    -IT:/rubyinstaller/rubyinstaller/ins
    taller-win/stable/lib/ruby/1.8/i386-mswin32
    -IT:/rubyinstaller/rubyinstaller/ins
    taller-win/stable/lib/ruby/1.8/i386-mswin32 -I. -DHAVE_EXPAT_H
    -DHAVE_XML_SETNOT
    STANDALONEHANDLER -DHAVE_XML_SETPARAMENTITYPARSING
    -DHAVE_XML_SETDOCTYPEDECLHAND
    LER -DHAVE_XML_PARSERRESET -DHAVE_XML_SETSKIPPEDENTITYHANDLER
    -DHAVE_XML_GETFEAT
    URELIST -DHAVE_XML_USEFOREIGNDTD -DHAVE_XML_GETIDATTRIBUTEINDEX
    -IT:/rubyinstall
    er/rubyinstaller/installer-win/stable/download/Expat-1.95.7/Source/lib
    -I. -I./.
    .. -I./../missing -DNEW_EXPAT -DXML_DTD -c -Tcxmlparser.c
    xmlparser.c
    xmlparser.c(530) : error C2143: syntax error : missing ';' before 'type'
    xmlparser.c(533) : error C2065: 'content' : undeclared identifier
    xmlparser.c(933) : error C2143: syntax error : missing ';' before 'type'
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.

    T:\rubyinstaller\rubyinstaller\installer-win\stable\download\xmlparser>nmake
    ins
    tall /NOLOGO
    cl -nologo -MD -Zi -O2b2xg- -G6 -I.
    -IT:/rubyinstaller/rubyinstaller/ins
    taller-win/stable/lib/ruby/1.8/i386-mswin32
    -IT:/rubyinstaller/rubyinstaller/ins
    taller-win/stable/lib/ruby/1.8/i386-mswin32 -I. -DHAVE_EXPAT_H
    -DHAVE_XML_SETNOT
    STANDALONEHANDLER -DHAVE_XML_SETPARAMENTITYPARSING
    -DHAVE_XML_SETDOCTYPEDECLHAND
    LER -DHAVE_XML_PARSERRESET -DHAVE_XML_SETSKIPPEDENTITYHANDLER
    -DHAVE_XML_GETFEAT
    URELIST -DHAVE_XML_USEFOREIGNDTD -DHAVE_XML_GETIDATTRIBUTEINDEX
    -IT:/rubyinstall
    er/rubyinstaller/installer-win/stable/download/Expat-1.95.7/Source/lib
    -I. -I./.
    .. -I./../missing -DNEW_EXPAT -DXML_DTD -c -Tcxmlparser.c
    xmlparser.c
    xmlparser.c(530) : error C2143: syntax error : missing ';' before 'type'
    xmlparser.c(533) : error C2065: 'content' : undeclared identifier
    xmlparser.c(933) : error C2143: syntax error : missing ';' before 'type'
    NMAKE : fatal error U1077: 'cl' : return code '0x2'
    Stop.
    ../commands.rb:199:in `run': Command failed: (RuntimeError)
    from ./commands.rb:167:in `each'
    from ./commands.rb:167:in `run'
    from ./commands.rb:117:in `extconf'
    from builder.rb:247
    from builder.rb:225:in `instance_eval'
    from ./package.rb:131:in `instance_eval'
    from ./package.rb:131:in `initialize'
    from builder.rb:225:in `new'
    from builder.rb:225
    NMAKE : fatal error U1077: 'ruby.exe' : return code '0x1'
    Stop.
    NMAKE : fatal error U1077:
    'D:\apps\Microsoft_VCToolkit2003\bin\nmake.exe' : ret
    urn code '0x2'
    Stop.
    J. D., Nov 5, 2004
    #6
  7. J. D.

    Curt Hibbs Guest

    J. D. wrote:
    >
    > I got past the FXRuby and Expat installation screens. The build
    > continued until the following error. I'll put together notes from this
    > exercise and post it in a useful format once I get this to build
    > successfully.


    How about updating the readme and sending it to me. I can then check that in
    to cvs.

    I have a patch for the compile error you are getting. In the directory:

    ...\installer-win\local\Patch-182

    you'll find a patched version of "xmlparser.c". Use this to replace the one
    that came with xmlparser in:

    ...\installer-win\stable\download\xmlparser

    and you should get past this error.

    Feel free to email me directly (curt at hibbs dot com), and we can help keep
    the noise level down on ruby-talk.

    Curt

    >
    > T:\rubyinstaller\rubyinstaller\installer-win\stable\download\xmlpa
    > rser>nmake
    > /NO
    > LOGO
    > cl -nologo -MD -Zi -O2b2xg- -G6 -I.
    > -IT:/rubyinstaller/rubyinstaller/ins
    > taller-win/stable/lib/ruby/1.8/i386-mswin32
    > -IT:/rubyinstaller/rubyinstaller/ins
    > taller-win/stable/lib/ruby/1.8/i386-mswin32 -I. -DHAVE_EXPAT_H
    > -DHAVE_XML_SETNOT
    > STANDALONEHANDLER -DHAVE_XML_SETPARAMENTITYPARSING
    > -DHAVE_XML_SETDOCTYPEDECLHAND
    > LER -DHAVE_XML_PARSERRESET -DHAVE_XML_SETSKIPPEDENTITYHANDLER
    > -DHAVE_XML_GETFEAT
    > URELIST -DHAVE_XML_USEFOREIGNDTD -DHAVE_XML_GETIDATTRIBUTEINDEX
    > -IT:/rubyinstall
    > er/rubyinstaller/installer-win/stable/download/Expat-1.95.7/Source/lib
    > -I. -I./.
    > .. -I./../missing -DNEW_EXPAT -DXML_DTD -c -Tcxmlparser.c
    > xmlparser.c
    > xmlparser.c(530) : error C2143: syntax error : missing ';' before 'type'
    > xmlparser.c(533) : error C2065: 'content' : undeclared identifier
    > xmlparser.c(933) : error C2143: syntax error : missing ';' before 'type'
    > NMAKE : fatal error U1077: 'cl' : return code '0x2'
    > Stop.
    >
    > T:\rubyinstaller\rubyinstaller\installer-win\stable\download\xmlpa
    > rser>nmake
    > ins
    > tall /NOLOGO
    > cl -nologo -MD -Zi -O2b2xg- -G6 -I.
    > -IT:/rubyinstaller/rubyinstaller/ins
    > taller-win/stable/lib/ruby/1.8/i386-mswin32
    > -IT:/rubyinstaller/rubyinstaller/ins
    > taller-win/stable/lib/ruby/1.8/i386-mswin32 -I. -DHAVE_EXPAT_H
    > -DHAVE_XML_SETNOT
    > STANDALONEHANDLER -DHAVE_XML_SETPARAMENTITYPARSING
    > -DHAVE_XML_SETDOCTYPEDECLHAND
    > LER -DHAVE_XML_PARSERRESET -DHAVE_XML_SETSKIPPEDENTITYHANDLER
    > -DHAVE_XML_GETFEAT
    > URELIST -DHAVE_XML_USEFOREIGNDTD -DHAVE_XML_GETIDATTRIBUTEINDEX
    > -IT:/rubyinstall
    > er/rubyinstaller/installer-win/stable/download/Expat-1.95.7/Source/lib
    > -I. -I./.
    > .. -I./../missing -DNEW_EXPAT -DXML_DTD -c -Tcxmlparser.c
    > xmlparser.c
    > xmlparser.c(530) : error C2143: syntax error : missing ';' before 'type'
    > xmlparser.c(533) : error C2065: 'content' : undeclared identifier
    > xmlparser.c(933) : error C2143: syntax error : missing ';' before 'type'
    > NMAKE : fatal error U1077: 'cl' : return code '0x2'
    > Stop.
    > ../commands.rb:199:in `run': Command failed: (RuntimeError)
    > from ./commands.rb:167:in `each'
    > from ./commands.rb:167:in `run'
    > from ./commands.rb:117:in `extconf'
    > from builder.rb:247
    > from builder.rb:225:in `instance_eval'
    > from ./package.rb:131:in `instance_eval'
    > from ./package.rb:131:in `initialize'
    > from builder.rb:225:in `new'
    > from builder.rb:225
    > NMAKE : fatal error U1077: 'ruby.exe' : return code '0x1'
    > Stop.
    > NMAKE : fatal error U1077:
    > 'D:\apps\Microsoft_VCToolkit2003\bin\nmake.exe' : ret
    > urn code '0x2'
    > Stop.
    >
    > ---
    > Incoming mail is certified Virus Free.
    > Checked by AVG anti-virus system (http://www.grisoft.com).
    > Version: 6.0.788 / Virus Database: 533 - Release Date: 11/1/2004
    >
    Curt Hibbs, Nov 5, 2004
    #7
  8. Daniel Berger, Nov 10, 2004
    #8
  9. J. D.

    Curt Hibbs Guest

    Daniel Berger wrote:
    >
    > "Curt Hibbs" <> wrote in message
    > news:<>...
    >
    > > Joao Pedrosa posted instructions on RubyGarden for setting up

    > the free vc++
    > > 7 compiler. You can find them here:
    > >
    > > http://www.rubygarden.org/ruby?WindowsCompiler
    > >
    > > Good luck!
    > >
    > > Curt

    >
    > Actually, it was me. :) That information is almost entirely based on
    > a post by Robert McGovern on the wxRuby mailing list. Original post
    > can be found at:
    >
    > http://rubyforge.org/pipermail/wxruby-users/2004-May/000532.html


    Oops... I just cut'n'pasted from an email I saved. I didn't mean to slight
    you or Robert.

    Sorry,
    Curt
    Curt Hibbs, Nov 10, 2004
    #9
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Charles Comstock

    [BUG] Latest Ruby Stable Snapshot

    Charles Comstock, May 24, 2004, in forum: Ruby
    Replies:
    3
    Views:
    105
  2. gabriele renzi
    Replies:
    4
    Views:
    97
    Curt Hibbs
    Sep 10, 2004
  3. Martin Kahlert

    FXRuby and the latest snapshot(s)

    Martin Kahlert, Nov 5, 2004, in forum: Ruby
    Replies:
    4
    Views:
    116
    Joel VanderWerf
    Dec 5, 2004
  4. R. Mark Volkmann

    MySQL under latest one-click installer

    R. Mark Volkmann, Apr 2, 2005, in forum: Ruby
    Replies:
    12
    Views:
    209
    R. Mark Volkmann
    Apr 2, 2005
  5. Harold Hausman
    Replies:
    3
    Views:
    193
    Jano Svitok
    Apr 27, 2007
Loading...

Share This Page