# Config.h on Linux for building racc

**URL:** <https://www.ruby-forum.com/t/config-h-on-linux-for-building-racc/84310>\
**Category:** Ruby\
**Created:** [February 2, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/config-h-on-linux-for-building-racc/84310 "2007-02-02T23:45:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 2, 2007, 11:45pm UTC](https://www.ruby-forum.com/t/config-h-on-linux-for-building-racc/84310/1 "2007-02-02T23:45:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 3, 2007, 5:06am UTC](https://www.ruby-forum.com/t/config-h-on-linux-for-building-racc/84310/2 "2007-02-03T05:06:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 3, 2007, 6:14am UTC](https://www.ruby-forum.com/t/config-h-on-linux-for-building-racc/84310/3 "2007-02-03T06:14:00Z")

</div>

On 2/3/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto: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… 😉

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 3, 2007, 5:17pm UTC](https://www.ruby-forum.com/t/config-h-on-linux-for-building-racc/84310/4 "2007-02-03T17:17:48Z")

</div>

Thanks much… updating ruby did the trick.

Jack
