Config.h on Linux for building racc


#1

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


#2

On Feb 2, 2007, at 14:45, removed_email_address@domain.invalid wrote:

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.

$ ls /usr/local/lib/ruby/1.8/i686-darwin8.8.2/config.h
/usr/local/lib/ruby/1.8/i686-darwin8.8.2/config.h
$ ls /usr/lib/ruby/1.8/universal-darwin8.0/config.h
/usr/lib/ruby/1.8/universal-darwin8.0/config.h

I’m running Ubuntu 6.10 on a Vaio laptop.

Did you use a packaged ruby? If so, its probably been broken, you’ll
need to find the rest of the pieces so you have a complete ruby.


#3

On 2/3/07, removed_email_address@domain.invalid removed_email_address@domain.invalid wrote:

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… :wink:


#4

Thanks much… updating ruby did the trick.

Jack