Compiling ruby on Windows 7 x64


#1

I’ve been trying to compile newest 1.9.1-p0 ruby on windows 7 x64 but no
success.

Steps I have followed so far.

  1. I have installed Visual Studio 2005
  2. I have installed Microsoft Platform SDK
  3. I have launched Visual Studio 2005 x64 Win64 command prompt
  4. Navigated to the source directory (C:\ruby-1.9.1-p0)
  5. In this directory I have executed
    a) win32\configure --prefix=/usr/local --target=x64-mswin64
    b) nmake

You can find output from both commands attached. Basically it fails when
it tries to build manifest file for miniruby.

It fails with the following:

cl -nologo main.obj dmydln.obj dmyencoding.obj miniprelude.obj array.obj
bignum.obj class.obj compar.obj complex.obj dir.obj enum.obj
enumerator.obj error.obj eval.obj load.obj proc.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 random.obj range.obj
rational.obj re.obj regcomp.obj regenc.obj regerror.obj regexec.obj
regparse.obj regsyntax.obj ruby.obj safe.obj signal.obj sprintf.obj
st.obj strftime.obj string.obj struct.obj time.obj transcode.obj
util.obj variable.obj version.obj compile.obj debug.obj iseq.obj
vm.obj vm_dump.obj thread.obj cont.obj ascii.obj us_ascii.obj
unicode.obj utf_8.obj newline.obj acosh.obj cbrt.obj crypt.obj erf.obj
lgamma_r.obj strlcat.obj strlcpy.obj tgamma.obj win32.obj langinfo.obj
dmyext.obj oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib
-Feminiruby.exe -link -incremental:no -debug -opt:ref -opt:icf
Creating library miniruby.lib and object miniruby.exp
miniruby.exe -v
ruby 1.9.1p0 (2009-01-30 revision 21907) [x64-mswin64_80]
mt -nologo -manifest miniruby.exe.manifest
-outputresource:miniruby.exe;2

NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual
Studio 8\Common7\Tools\bin\mt.EXE”’ : return code ‘0x1f’
Stop.

What am I doing wrong?


#2

On Mar 4, 9:29 am, Stanislaw W. removed_email_address@domain.invalid wrote:

a) win32\configure --prefix=/usr/local --target=x64-mswin64
gc.obj hash.obj inits.obj io.obj marshal.obj math.obj numeric.obj
Creating library miniruby.lib and object miniruby.exp

Attachments:http://www.ruby-forum.com/attachment/3386/build.log


Posted viahttp://www.ruby-forum.com/.

No experience with this, but a quick google found this:
http://blogs.msdn.com/karinm/archive/2009/01/25/workaround-running-mt-exe-on-windows-7-beta.aspx

cheers
Chris


#3

NMAKE : fatal error U1077: ‘“C:\Program Files (x86)\Microsoft Visual
Studio 8\Common7\Tools\bin\mt.EXE”’ : return code ‘0x1f’
Stop.

What am I doing wrong?

If you’re not afraid of 32 bit there’s the mingw oneclick
http://github.com/oneclick/rubyinstaller/tree/master