Hi all-
Installing Gridflow on Linux and got the following make error:
cturner@vatic:/usr/local/src/gridflow$ make ruby -w base/source_filter.rb base/grid.h base/grid.h.fcs make: ruby: Command not found make: *** [base/grid.h.fcs] Error 127
Here's what I got in my ../base directory:
cturner@vatic:/usr/local/src/gridflow$ ls base MainLoop.rb flow_objects.rb grid.c main.rb test.rb bitpacking.c flow_objects_for_image.c grid.h number.c usb.c flow_objects.c flow_objects_for_matrix.c main.c source_filter.rb
Am I missing a file?
My Ruby executable is named ruby1.8, which the makefile seems to get:
ruby = /usr/bin/ruby1.8
Any ideas?
Best,
Charles
vze26m98 wrote on 3/25/05:
Installing Gridflow on Linux:
OK- hardwiring the ruby invocations as 'ruby1.8' in the Makefile got everything running. The invocation generates the follwoing error repeatedly, causing the make to fail eventually:
base/source_filter.rb:38: warning: regexp has invalid interval
Line 38 of source_filter.rb is:
37: def parse_methoddecl(line,term) 38: /^(\w+)\s+(\w+)\s*((.*))\s*#{term}\s*$/.match line or 39: raise "syntax error #{where}" 40: rettype,selector,arglist = $1,$2,$3 41: arglist,minargs,maxargs = parse_arglist arglist 42: MethodDecl.new(rettype,selector,arglist,minargs,maxargs,where) 43: end
Any reg-experts out there?
Best,
Charles
On Fri, 25 Mar 2005, vze26m98 wrote:
cturner@vatic:/usr/local/src/gridflow$ make ruby -w base/source_filter.rb base/grid.h base/grid.h.fcs make: ruby: Command not found make: *** [base/grid.h.fcs] Error 127 My Ruby executable is named ruby1.8, which the makefile seems to get: ruby = /usr/bin/ruby1.8 Any ideas?
GridFlow indeed assumes it would be named "ruby". sorry. I just fixed it in the cvs head.
I have a question for you: how should be handled the situation that an executable ruby source file starts with the line "#!/usr/bin/env ruby" ?
On Fri, 25 Mar 2005, vze26m98 wrote:
OK- hardwiring the ruby invocations as 'ruby1.8' in the Makefile got everything running. The invocation generates the follwoing error repeatedly, causing the make to fail eventually: base/source_filter.rb:38: warning: regexp has invalid interval
This is only a warning. It is benign (and i fixed it a long time ago in the cvs head). The error you are having has to be something else than that.
Mathieu Bouchard -=- Montréal QC Canada -=- http://artengine.ca/matju
Mathieu Bouchard wrote on 3/26/05:
I have a question for you: how should be handled the situation that an executable ruby source file starts with the line "#!/usr/bin/env ruby" ?
Thanks for the information Mathieu!
As for the above, I'd give a not-very-experienced-with-Linux answer.
I encountered this problem right off and the error appeared on the console. It was pretty obvious that configure wasn't finding ruby, which I had just installed, so the question became why.
Doing a find on ruby quickly revealed where it was and that it was called ruby1.8, so the likely fix was to change the line to:
#! /usr/bin/env ruby1.8
...and that worked.
So, in short, I'd leave it alone. I'd assume most people that are capable of compiling a source package should be able to deal with this issue. Otherwise I guess you have to write a little shell script that would go out and find ruby and paste the correct name in the file...
Best,
Charles