From: Hugh Sasse Date: 2007-08-15T18:55:08+09:00 Subject: Re: missing bison, gperf not detected, do I need ruby to build ruby? 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