Which site_ruby dir?

Probably a stupid question, but I can’t find the answer.

I just updated cvs to build Ruby 1.8 for the first time (mswin32, not
cygwin). The build output went into the previous directory that I built the
latest 1.7.x at the time. Now I’ve got site_ruby/1.7 and site_ruby/1.8. When
I run the new ruby 1.8 .exe, it’s $LOAD_PATH is still using 1.7:

…>d:\ruby_latest\bin\ruby.exe
puts VERSION
puts $LOAD_PATH
^Z
1.8.0
/cygdrive/d/usr/local/src/ruby
/cygdrive/d/usr/local/lib/ruby/1.6/irb
d:/ruby_latest/lib/ruby/site_ruby/1.7
d:/ruby_latest/lib/ruby/site_ruby/1.7/i386-msvcrt
d:/ruby_latest/lib/ruby/site_ruby
d:/ruby_latest/lib/ruby/1.7
d:/ruby_latest/lib/ruby/1.7/i386-mswin32
.

(Ignore the /cygdrive/… entries in LOAD_PATH, that’s cruft set in my
RUBYLIB ENV variable that I need to delete…)

How do I convince it to use the 1.8 entries…?

Chris
http://clabs.org

Hi,

···

At Fri, 21 Mar 2003 04:49:53 +0900, Chris Morris wrote:

I just updated cvs to build Ruby 1.8 for the first time (mswin32, not
cygwin). The build output went into the previous directory that I built the
latest 1.7.x at the time. Now I’ve got site_ruby/1.7 and site_ruby/1.8. When
I run the new ruby 1.8 .exe, it’s $LOAD_PATH is still using 1.7:

With 2003-03-12 version? You may have to re-configure before
build.


Nobu Nakada

With 2003-03-12 version?

I just did a CVS update fresh yesterday.

You may have to re-configure before
build.

I’m sure it’s a stupid question, but how do I do that?

Chris

Hi,

You may have to re-configure before
build.

I’m sure it’s a stupid question, but how do I do that?

Run win32/configure.bat as you did at first.

\PATH\TO\RUBY\SRC\win32\configure.bat
Creating Makefile
Creating config.h
Creating config.status
type `nmake’ to make ruby for mswin32.

···

At Fri, 21 Mar 2003 22:43:18 +0900, Chris Morris wrote:


Nobu Nakada

I’m sure it’s a stupid question, but how do I do that?

Run win32/configure.bat as you did at first.

\PATH\TO\RUBY\SRC\win32\configure.bat
Creating Makefile
Creating config.h
Creating config.status
type `nmake’ to make ruby for mswin32.

I was right - it was a stupid question :slight_smile: Thanks for the reply!

Chris

Run win32/configure.bat as you did at first.

\PATH\TO\RUBY\SRC\win32\configure.bat
Creating Makefile
Creating config.h
Creating config.status
type `nmake’ to make ruby for mswin32.

When I run configure.bat, it doesn’t make config.h. And that’s what has all
the 1.7 values in it, instead of 1.8. Do I have the right configure.bat
(says it’s dated Mar 19 2003 from cvs).

S:\ruby-cvs\ruby\win32>configure
Creating Makefile
type `NMAKE’ to make ruby for mswin32.

S:\ruby-cvs\ruby\win32>more configure.bat
@echo off
::: Don’t set environment variable in batch file other than autoexec.bat
::: to avoid “Out of environment space” problem on Windows 95/98.
::: set TMPMAKE=~tmp~.mak

~tmp~.mak ####

~tmp~.mak conf = %0
~tmp~.mak $(conf:=/): nul
~tmp~.mak @del ~tmp~.mak
~tmp~.mak @-$(MAKE) -l$(MAKEFLAGS) -f $(@D)/setup.mak
:loop
if “%1” == “” goto :end
if “%1” == “–srcdir” goto :srcdir
if “%1” == “srcdir” goto :srcdir
if “%1” == “–target” goto :target
if “%1” == “target” goto :target
~tmp~.mak “%1”
shift
goto :loop
:srcdir
~tmp~.mak “srcdir=%2”
shift
shift
goto :loop
:target
~tmp~.mak “%2”
shift
shift
goto :loop
:end
~tmp~.mak WIN32DIR=$(@D)
nmake -alf ~tmp~.mak

Hi,

When I run configure.bat, it doesn’t make config.h. And that’s what has all
the 1.7 values in it, instead of 1.8. Do I have the right configure.bat
(says it’s dated Mar 19 2003 from cvs).

Sorry for confusing, I’d forgotten modifying locally.

S:\ruby-cvs\ruby\win32>configure
Creating Makefile
type `NMAKE’ to make ruby for mswin32.

Delete config.h and config.status, they will be created
automatically.

···

At Sat, 22 Mar 2003 05:16:47 +0900, Chris Morris wrote:


Nobu Nakada

Delete config.h and config.status, they will be created
automatically.

Didn’t work for me. I went ahead and cleared out that whole directory of
NonCvs files and subdirectories, did an update -P -C, and configure still
doesn’t make config.h:

S:\ruby-cvs\ruby\win32>dir
Volume in drive S has no label.
Volume Serial Number is 7029-626E

Directory of S:\ruby-cvs\ruby\win32

03/21/2003 03:37p .
03/21/2003 03:37p …
03/19/2003 01:32p 821 configure.bat
03/19/2003 01:32p CVS
08/15/2002 12:06p 786 dir.h
03/21/2003 03:37p 582 Makefile
03/19/2003 01:32p 22,203 Makefile.sub
08/15/2002 12:06p 709 mkexports.rb
03/19/2003 01:32p 4,004 README.win32
03/19/2003 01:32p 2,427 resource.rb
03/19/2003 01:32p 1,987 setup.mak
03/19/2003 01:32p 70,906 win32.c
03/19/2003 01:32p 10,515 win32.h
08/03/2000 04:55a 208 winmain.c
11 File(s) 115,148 bytes
3 Dir(s) 1,510,092,800 bytes free

S:\ruby-cvs\ruby\win32>configure.bat
Creating Makefile
type `NMAKE’ to make ruby for mswin32.

Chris

Hi,

···

At Sat, 22 Mar 2003 06:39:03 +0900, Chris Morris wrote:

Delete config.h and config.status, they will be created
automatically.

Didn’t work for me. I went ahead and cleared out that whole directory of
NonCvs files and subdirectories, did an update -P -C, and configure still
doesn’t make config.h:

That’s OK, they will be created while making. You can make
them by `nmake config’ too.


Nobu Nakada