Stephen Bannasch | 13 May 07:24

problems compiling 1.9 on MacOS 10.5.2


I'm getting errors that purelib.rb can't be found compiling Ruby 1.9 
on MacOS 10.5.2.

ruby trunk r16372

mkdir ruby1.9
cd ruby1.9/
svn co http://svn.ruby-lang.org/repos/ruby/trunk src
cd src
autoconf
./configure --prefix=/Users/stephen/dev/ruby1.9
make

...

gcc -g -O2 -pipe -fno-common    -I. -I.ext/include/i686-darwin9.2.2 
-I./include -I.  -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o 
blockinlining.o -c blockinlining.c
rm -f ruby
ruby -Ks ./tool/insns2vm.rb --srcdir="." insns.inc
ruby: no such file to load -- purelib.rb (LoadError)
make: *** [insns.inc] Error 1

However purelib.rb is in ext/ dir:

$ ls ext/purelib.rb
ext/purelib.rb

(Continue reading)

Nobuyoshi Nakada | 13 May 09:57
Favicon

Re: problems compiling 1.9 on MacOS 10.5.2

Hi,

At Tue, 13 May 2008 14:26:00 +0900,
Stephen Bannasch wrote in [ruby-core:16754]:
> ruby trunk r16372

> gcc -g -O2 -pipe -fno-common    -I. -I.ext/include/i686-darwin9.2.2 
> -I./include -I.  -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o 
> blockinlining.o -c blockinlining.c
> rm -f ruby
> ruby -Ks ./tool/insns2vm.rb --srcdir="." insns.inc
> ruby: no such file to load -- purelib.rb (LoadError)
> make: *** [insns.inc] Error 1

It's fixed at r16376.

> However purelib.rb is in ext/ dir:

It should be used only by miniruby and compiled ruby, not
BASERUBY, to prevent load already installed libraries.

--

-- 
Nobu Nakada


Gmane