On 2/3/07, jack / ganssle.com <jack / ganssle.com> wrote: > Hi all, > > I'm trying to build racc, the yacc-like thing for Ruby. I get this > error at make time: > "*** No rule to make target '/usr/lib/ruby/1.8/i486-linux.config.h', > needed by 'cparse.o'. Stop" > > So, looking in that directory there's no config.h. In fact, there are > only two config.h's in the Ruby distro, one for VMS (which looks very > VMS specific) and one in ext/nkf/nkt-utf8, which is baffling, probably > full of Kanji. > > I'm running Ubuntu 6.10 on a Vaio laptop. > > This is in the second stop of building racc, when one issues: ruby > setup.rb setup. > > Any help would sure be appreciated. > > Jack I'll assume you mistyped the filename ("/config.h", not ".config.h"), and that you installed ruby via an ubuntu package. There's a handy tool in ububtu called apt-file ("apt-get install apt-file" if you don't have it yet), which lets you search the contents of packages you don't have. g@bang:~$ apt-file search /usr/lib/ruby/1.8/i486-linux/config.h ruby1.8-dev: usr/lib/ruby/1.8/i486-linux/config.h Aha! Try "apt-get install ruby1.8-dev". At a broader level, though, Debian/Ubuntu's packaging of ruby is quite a PITA. If you want a complete distribution of "standard" ruby (*nods suggestively*), I think you should install these packages: g@bang:~$ grep-dctrl -s Binary -SX ruby1.8 /var/lib/apt/lists/*Sources | sed -e 's/Binary: //' -e 's/, /\n/g' | sort -u irb1.8 libdbm-ruby1.8 libgdbm-ruby1.8 libopenssl-ruby1.8 libreadline-ruby1.8 libruby1.8 libruby1.8-dbg libtcltk-ruby1.8 rdoc1.8 ri1.8 ruby1.8 ruby1.8-dev ruby1.8-elisp ruby1.8-examples Or, just compile it from source... ;-)