OS X 10.6 + ruby-1.9.2-p180.tar => ruby library version = 1.9.1

In OS X 10.6.6, I downloaded ruby-1.9.2-p180.tar and performed a
./configure using the following parameters:

./configure --prefix=/usr/local/ruby --enable-shared --enable-pthread
CFLAGS=-D_XOPEN_SOURCE=1

After it finishes, I see something very strange. Near the end of the
output, it lists:


checking for if make is GNU make… yes
checking for nroff… /usr/bin/nroff
.ext/include/x86_64-darwin10.6.0/ruby/config.h updated
ruby library version = 1.9.1
<----- why 1.9.1???
configure: creating ./config.status
config.status: creating Makefile

The line above that states ruby library version is 1.9.1. Is this
normal? The ruby binary shows 1.9.2 though…

The ruby app I’m using requires 1.9.2, and I’m having problem getting
the app to run at all. I believe the mismatch in library version is
likely the cause of the problem.

Can anyone confirm the library version??

Thanks alot!

What do you get when you type:

$ruby -v

I get this from a copy of p180 I have;

ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux]

A quick perusal of the source discovers;

head -n 20 ruby-1.9.2-p180/version.h
#define RUBY_VERSION “1.9.2”
#define RUBY_PATCHLEVEL 180
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1

#define RUBY_RELEASE_YEAR 2011
#define RUBY_RELEASE_MONTH 2
#define RUBY_RELEASE_DAY 18
#define RUBY_RELEASE_DATE “2011-02-18”

#include “ruby/version.h”

#if !defined RUBY_LIB_VERSION && defined RUBY_LIB_VERSION_STYLE

if RUBY_LIB_VERSION_STYLE == 3

define RUBY_LIB_VERSION

STRINGIZE(RUBY_VERSION_MAJOR)".“STRINGIZE(RUBY_VERSION_MINOR)”."STRINGIZE(RUBY_VERSION_TEENY)

elif RUBY_LIB_VERSION_STYLE == 2

define RUBY_LIB_VERSION

STRINGIZE(RUBY_VERSION_MAJOR)"."STRINGIZE(RUBY_VERSION_MINOR)

endif

#endif

How curious.

Sam

OZAWA Sakuro wrote in post #986371:

http://www.ruby-lang.org/en/news/2010/08/18/ruby-1-9.2-released/#label-6

On Wed, Mar 9, 2011 at 11:29, Charles S. [email protected] wrote:

The line above that states ruby library version is 1.9.1. Is this
normal? The ruby binary shows 1.9.2 though…


OZAWA Sakuro

“I think we can agree, the past is over.” - George W. Bush

Great! My question solved.

http://www.ruby-lang.org/en/news/2010/08/18/ruby-1-9.2-released/#label-6

On Wed, Mar 9, 2011 at 11:29, Charles S. [email protected] wrote:

The line above that states ruby library version is 1.9.1. Is this
normal? The ruby binary shows 1.9.2 though…


OZAWA Sakuro

“I think we can agree, the past is over.” - George W. Bush