[Win32utils-devel] Building Ruby with Visual Studio 2008

Heesob Park phasis at gmail.com
Thu May 14 20:36:14 EDT 2009


Hi,

2009/5/15 Daniel Berger <djberg96 at gmail.com>:
> I can no longer remember the magic incantation to setup my build
> environment properly. I've got both VC 6 and VC 9 installed, so I
> don't know if that's causing issues or what.
>
> Windows XP, btw.
>
> C:\Documents and Settings\djberge\My Documents\My
> Downloads\Ruby\ruby-1.8.6-p114>nmake DESTDIR=c:\rubyvc9 install
>
> Microsoft (R) Program Maintenance Utility Version 9.00.21022.08
> Copyright (C) Microsoft Corporation.  All rights reserved.
>
>        .\miniruby.exe  ./instruby.rb --dest-dir="c:\rubyvc9"
> --extout=".ext"  --make="nmake"  --mflags=""  --make-flags="
>       " --insta
> lled-list .installed.list --mantype=""
> '.\miniruby.exe' is not recognized as an internal or external command,
> operable program or batch file.
> NMAKE : fatal error U1077: '.\miniruby.exe' : return code '0x1'
> Stop.
>
> C:\Documents and Settings\djberge\My Documents\My
> Downloads\Ruby\ruby-1.8.6-p114>set
> ALLUSERSPROFILE=C:\Documents and Settings\All Users
> APPDATA=C:\Documents and Settings\djberge\Application Data
> CC=cl -W3
> CLIENTNAME=Console
> CommonProgramFiles=C:\Program Files\Common Files
> COMPUTERNAME=DANIEL-AB0B1958
> ComSpec=C:\WINDOWS\system32\cmd.exe
> DevEnvDir=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
> FP_NO_HOST_CHECK=NO
> Framework35Version=v3.5
> FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
> FrameworkVersion=v2.0.50727
> HOMEDRIVE=C:
> HOMEPATH=\Documents and Settings\djberge
> INCLUDE=C:\Program Files\Microsoft Visual Studio
> 9.0\VC\ATLMFC\INCLUDE;C:\Program Files\Microsoft Visual Studio
> 9.0\VC\INCLUDE;C:\Program Files\\Micro
> soft SDKs\Windows\v6.0A\include;
> J2D_D3D=false
> LIB=C:\Program Files\Microsoft Visual Studio
> 9.0\VC\ATLMFC\LIB;C:\Program Files\Microsoft Visual Studio
> 9.0\VC\LIB;C:\Program Files\\Microsoft SDKs\Wi
> ndows\v6.0A\lib;c:\program files\microsoft visual studio\vc98\lib
> LIBPATH=C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program
> Files\Microsoft Visual Studio 9.0\VC\ATLMFC\L
> IB;C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;
> LOGONSERVER=\\DANIEL-AB0B1958
> NUMBER_OF_PROCESSORS=2
> OS=Windows_NT
> Path=C:\Program Files\Microsoft Visual Studio
> 9.0\Common7\IDE;C:\Program Files\Microsoft Visual Studio
> 9.0\VC\BIN;C:\Program Files\Microsoft Visual St
> udio 9.0\Common7\Tools;C:\WINDOWS\Microsoft.NET\Framework\v3.5;C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program
> Files\Microsoft Visual Studio
> 9.0\VC\VCPackages;C:\Program Files\\Microsoft
> SDKs\Windows\v6.0A\bin;C:\Ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\usr\local\
> wbin;C:\Program Files\PostgreSQL\8.3\bin;c:\Program Files\Microsoft
> SQL Server\90\Tools\binn\;c:\program files\microsoft visual
> studio\vc98\bin
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.RB;.RBW
> PROCESSOR_ARCHITECTURE=x86
> PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 6, GenuineIntel
> PROCESSOR_LEVEL=6
> PROCESSOR_REVISION=0f06
> ProgramFiles=C:\Program Files
> PROMPT=$P$G
> RUBYOPT=-rubygems
> SESSIONNAME=Console
> SystemDrive=C:
> SystemRoot=C:\WINDOWS
> TEMP=C:\DOCUME~1\djberge\LOCALS~1\Temp
> TMP=C:\DOCUME~1\djberge\LOCALS~1\Temp
> USERDOMAIN=DANIEL-AB0B1958
> USERNAME=djberge
> USERPROFILE=C:\Documents and Settings\djberge
> VCINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0\VC
> VS90COMNTOOLS=C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\
> VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0
> windir=C:\WINDOWS
> WindowsSdkDir=C:\Program Files\\Microsoft SDKs\Windows\v6.0A\
>
> I ran vcvars32.bat, too, but that didn't help.
>
This is a bug of ruby's Makefile.

First, you must run 'nmake' to build miniruby.exe

Then, run 'nmake DESTDIR=c:\rubyvc9 install'

Regards,

Park Heesob


More information about the win32utils-devel mailing list