Forum: Ruby Compiling ruby on Windows 7 x64

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
36bb3d34936645673a87e6732d3281ca?d=identicon&s=25 Stanislaw Wozniak (swozniak)
on 2009-03-04 15:30
Attachment: build.log (20 KB)
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?
23172b6630dc631a134c9bad2fec2a39?d=identicon&s=25 Chris Hulan (Guest)
on 2009-03-04 16:11
(Received via mailing list)
On Mar 4, 9:29 am, Stanislaw Wozniak <s...@wozniak.com> 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/wo...

cheers
Chris
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2009-03-07 01:15
> 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
This topic is locked and can not be replied to.