[PATCH] rake build:checkdeps
Reported by François Beausoleil | April 2nd, 2008 @ 11:05 AM | in 1.0 preview
I cloned the git repository today and tried building. I didn't know, but I was missing a dependency. I added my missing dependency, and I could build.
I fixed the problem for good by added a new rake task, which checks the missing dependencies. Output from the command is:
$ rake build
(in /home/francois/src/rubinius)
Checking build dependencies...
bison --version >/dev/null
sh: bison: not found
git --version >/dev/null
ruby --version >/dev/null
gem --version >/dev/null
pkg-config --version >/dev/null
make --version >/dev/null
You are missing these required dependencies (which might have dependencies of their own):
* bison
Comments and changes to this ticket
-
Michael Klishin (antares) April 2nd, 2008 @ 11:11 AM
- → State changed from new to open
- → Assigned user changed from to Michael Klishin (antares)
Looks good. Will test & apply it later today, thanks.
-

François Beausoleil April 2nd, 2008 @ 01:06 PM
New version of the patch that adds a dependency on libtool, for installation.
-
Dirkjan Bussink April 2nd, 2008 @ 01:35 PM
Well, the patch makes a nasty assumption. It assumes that we need 'make', but this isn't correct for systems like FreeBSD and OpenBSD, which actually need 'gmake'.
-

François Beausoleil April 3rd, 2008 @ 06:42 AM
Third iteration of the dependency checking rake task. This version moves the code from the Rakefile to the rakelib/rubinius.rb file. #make does the dependency checking routine the first time it is invoked, and then uses the cached results.
Also, instead of depending on #exitstatus == 127, this patch only looks at #success?
-
Dirkjan Bussink April 3rd, 2008 @ 07:58 AM
- → State changed from open to invalid
I've marked this invalid, also see the discussion on IRC. Doing this properly actually introduces more complexity.
I've added the case of missing Bison to the common build problems section of the install page. Thnx to Francois for providing his error trace!
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
