Forum: Ruby config.h on Linux for building racc

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ca6103b810b3b8962c7650be116925c3?d=identicon&s=25 jack@ganssle.com (Guest)
on 2007-02-02 23:45
(Received via mailing list)
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
58479f76374a3ba3c69b9804163f39f4?d=identicon&s=25 Eric Hodel (Guest)
on 2007-02-03 05:06
(Received via mailing list)
On Feb 2, 2007, at 14:45, jack@ganssle.com 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.
C515daf003a781a638d8a01e41a935a0?d=identicon&s=25 George Ogata (Guest)
on 2007-02-03 06:14
(Received via mailing list)
On 2/3/07, jack@ganssle.com <jack@ganssle.com> 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... ;-)
Ca6103b810b3b8962c7650be116925c3?d=identicon&s=25 jack@ganssle.com (Guest)
on 2007-02-03 17:17
(Received via mailing list)
Thanks much... updating ruby did the trick.

Jack
This topic is locked and can not be replied to.