ruby-1.9.2-p0 fails to to build

J

Jl Jl

I am trying to get ruby set up on a gumstix overo running angstrom linux
with a gnome desktop. I keep getting an error during make that I am sure
is a basic beginner issue that I seem to not be able to sort out. It
always gives me this error:
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses
-Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers
-Wno-long-long -fPIC -I. -I.ext/include/armv7l-linux-eabi -I./include
-I. -DRUBY_EXPORT -o enum.o -c enum.c
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses
-Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers
-Wno-long-long -fPIC -I. -I.ext/include/armv7l-linux-eabi -I./include
-I. -DRUBY_EXPORT -o enumerator.o -c enumerator.c
echo executable host ruby is required. use --with-baseruby option.;
false ./tool/generic_erb.rb -c -o known_errors.inc
/template/known_errors.inc.tmpl ./defs/known_errors.def
executable host ruby is required. use --with-baseruby option.
make: *** [known_errors.inc] Error 1


Here is how i did the configure:
/configure --prefix=/opt/metasploit3 --enable-pthread --enable-shared
I have also tried with just ./configure and still get the same problem
as above. Configuring either way goes through fine its in the make where
it fails.

I have tried during configure and make to add the --with-baseruby and
neither gives me a completed make to install. What am I missing here?
Thanks for any help and please feel free to ask me anymore info that I
may have forgotten. Also I tried searching online and dont see the
--with-baseruby option anywhere
 
R

Ryan Davis

I have tried during configure and make to add the --with-baseruby and
neither gives me a completed make to install. What am I missing here?

You're missing an existing ruby. Unfortunately, the current build =
requires an existing ruby to bootstrap. Install one (any version) via a =
package manager and do your build. I believe install doesn't have this =
requirement so you can probably uninstall the packaged ruby before you =
install your hand-built ruby.=
 
J

Jl Jl

Ryan said:
You're missing an existing ruby. Unfortunately, the current build
requires an existing ruby to bootstrap. Install one (any version) via a
package manager and do your build. I believe install doesn't have this
requirement so you can probably uninstall the packaged ruby before you
install your hand-built ruby.


Ahhh ok thanks for the info hadnt ever seen that before. I will build an
older version, there is no real package management system for my setup
so will just compile from an older source.

Thanks again
 
L

Luis Lavena

And those of  us who build everything from source  and have no package
managers do, ... what?

Download Ruby 1.8 source code, compile it, install it.

Then use that as base ruby and download and compile Ruby 1.9
 
L

Luis Lavena

Download Ruby 1.8 source code, compile it, install it.

Then use that as base ruby and download and compile Ruby 1.9

To clarify: you compile Ruby 1.8 for your current platform and *then*
make Ruby 1.9 targeting the platform you're trying to compile to.

HTH,
 
R

Ryan Davis

Thanks. Will that work just for now, or indefinitely? What happens
when/if the build requires the host to support a Ruby-1.9 specific
feature?

worry about it when it happens.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top