[#11890] Ruby and Solaris door library — "Hiro Asari" <asari.ruby@...>

Hi, there. This is my first patch against ruby. I think I followed

19 messages 2007/08/13
[#11892] Re: Ruby and Solaris door library — Daniel Berger <djberg96@...> 2007/08/14

Hiro Asari wrote:

[#11899] pack/unpack 64bit Integers — Hadmut Danisch <hadmut@...>

Hi,

13 messages 2007/08/14
[#11903] Re: pack/unpack 64bit Integers — Brian Candler <B.Candler@...> 2007/08/15

On Wed, Aug 15, 2007 at 06:50:01AM +0900, Hadmut Danisch wrote:

[#11948] Fibers in Ruby 1.9? — David Flanagan <david@...>

I just noticed that my ruby1.9 build of August 17th includes a Fiber

22 messages 2007/08/22
[#11949] Re: Fibers in Ruby 1.9? — Daniel Berger <djberg96@...> 2007/08/22

David Flanagan wrote:

[#11950] Re: Fibers in Ruby 1.9? — "Francis Cianfrocca" <garbagecat10@...> 2007/08/22

On 8/22/07, Daniel Berger <djberg96@gmail.com> wrote:

[#11952] Re: Fibers in Ruby 1.9? — MenTaLguY <mental@...> 2007/08/22

On Wed, 22 Aug 2007 20:50:12 +0900, "Francis Cianfrocca" <garbagecat10@gmail.com> wrote:

[#11988] String#length not working properly in Ruby 1.9 — "Vincent Isambart" <vincent.isambart@...>

I saw that Matz just merged his M17N implementation in the trunk.

17 messages 2007/08/25
[#11991] Re: String#length not working properly in Ruby 1.9 — "Michael Neumann" <mneumann@...> 2007/08/25

On Sat, 25 Aug 2007 10:54:20 +0200, Yukihiro Matsumoto

[#11992] Re: String#length not working properly in Ruby 1.9 — Yukihiro Matsumoto <matz@...> 2007/08/25

Hi,

[#12042] Encodings of string literals; explicit codepoint escapes? — David Flanagan <david@...>

This message contains queries that probably only Matz can answer:

16 messages 2007/08/31
[#12043] Re: Encodings of string literals; explicit codepoint escapes? — Yukihiro Matsumoto <matz@...> 2007/08/31

Hi,

Re: missing bison, gperf not detected, do I need ruby to build ruby?

From: Hugh Sasse <hgs@...>
Date: 2007-08-15 09:55:08 UTC
List: ruby-core #11907
On Wed, 15 Aug 2007, Gabor Szabo wrote:

> Hi,
> 
> It seems ./configure did not detect the fact that bison was missing from
> my machine:

IIRC it would try to use yacc otherwise, but your output makes me think
you are on Linux, and I'm not sure about whether it could use yacc anyway
if there is no bison...

> 
> 
> svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby
> cd ruby
> autoconf
> ./configure
> ...

What showed up in the log file?  That might shed light on what is
going on.

> make
> /bin/sh: gperf: not found
> ...
> gcc -g -O2  -I. -I.ext/include/i686-linux -I./include -I.
> -DRUBY_EXPORT  -c numeric.c
> gcc -g -O2  -I. -I.ext/include/i686-linux -I./include -I.
> -DRUBY_EXPORT  -c object.c
> gcc -g -O2  -I. -I.ext/include/i686-linux -I./include -I.
> -DRUBY_EXPORT  -c pack.c
> bison  -o parse.c parse.y
> make: bison: Command not found
> make: *** [parse.c] Error 127
> 
> =========================
> sudo aptitude install bison
> sudo aptitude install gperf
> =========================

This next step is wrong, IMHO -- you should make distclean and reconfigure
to get these picked up correctly before doing make again.  In fact, since
you are using autoconf you may need to do that step again
> make
> 
> ...
> gcc -g -O2  -I. -I.ext/include/i686-linux -I./include -I.
> -DRUBY_EXPORT  -c version.c
> gcc -g -O2  -I. -I.ext/include/i686-linux -I./include -I.
> -DRUBY_EXPORT  -c blockinlining.c
> rm -f ruby
> ruby ./tool/insns2vm.rb --srcdir="."
> /bin/sh: ruby: not found
> make: *** [optinsn.inc] Error 127
> 
> 
> What? Do I need an installed ruby to build ruby from trunk or am I
> missing something else here?

I'm not familiar enough with the details of the build process to 
explain this, but I know from experience you don't need ruby to build ruby. 
I seem to recall ruby making use of itself once built to do the final bits
of the build, and the install, but I don't really keep this stuff in my
head.  Hoping someone else who writes this stuff can jump in here!

> If I need ruby, shouldn't configure complain that I don't have it?
> 
> SVN currrently at r12933
> Using Ubuntu 7.04
> 
> regards
>    Gabor
> 
        HTH
        Hugh

In This Thread