OS X 10.6 + ruby-1.9.2-p180.tar

C

Charles S.

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!
 
7

7stud --

Maybe the ruby library as in the "Ruby Standard Library", which is a
collection of modules you can use in your programs, has a current
version number of 1.9.1?
 
S

Sam Duncan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top