From: Curt Hibbs Date: 2004-11-06T06:27:15+09:00 Subject: Re: Building One-Click Installer with latest snapshot source 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 >