Need help to compile: Ruby 1.9

G

Girish Chandran

Hello All,

Please note that I am following up this issue for my friend who had
posted a similar query couple of days ago. I apologize for posting the
same query but I am kind of stuck with it and there is no place else to
seek help. I would be really greatful if somebody could give me some
pointers to resolve this issue.

I have been trying to compile Ruby 1.9 for past couple of days. I am
relatively new to Ruby and I needed Ruby 1.9 as part of another task
that I am currently involved in. Here are the steps that I followed:
1) Got the Ruby 1.9 Source code from
http://svn.ruby-lang.org/repos/ruby/trunk/.
2) Used autoconf (2.58) to generate configure.
3) Ran "make". (make BASERUBY=/usr/bin/ruby)

At this point I encountered the following snippet which indicated error:
*******************************************************************************
/usr/bin/ruby ./tool/insns2vm.rb --srcdir="."
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c compile.c
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c debug.c
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c iseq.c
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c vm.c
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c vm_dump.c
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c yarvcore.c
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c thread.c
thread.c:280: warning: static declaration for `thread_start_func_2'
follows non-static
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c cont.c
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c ./missing/strlcpy.c
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c ./missing/strlcat.c
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c dmyext.c
ar rcu libruby-static.a array.o ascii.o bignum.o class.o compar.o dir.o
dln.o enum.o enumerator.o error.o euc_jp.o eval.o eval_load.o proc.o
file.o gc.o hash.o inits.o io.o marshal.o math.o numeric.o object.o
pack.o parse.o process.o prec.o random.o range.o re.o regcomp.o regenc.o
regerror.o regexec.o regparse.o regsyntax.o ruby.o signal.o sjis.o
sprintf.o st.o string.o struct.o time.o unicode.o utf8.o util.o
variable.o version.o blockinlining.o compile.o debug.o iseq.o vm.o
vm_dump.o yarvcore.o thread.o cont.o strlcpy.o strlcat.o dmyext.o
gcc -g -O2 -I. -I.ext/include/i686-linux -I./include -I. -DRUBY_EXPORT
-c main.c
gcc -g -O2 -L. -rdynamic -Wl,-export-dynamic main.o
libruby-static.a -lpthread -ldl -lcrypt -lm -o miniruby
rbconfig.rb unchanged
touch .rbconfig.time
/users/girishc/Ruby/lib/fileutils.rb:1027:in `method_missing': private
method `open' called for false:FalseClass (NoMethodError)
from /users/girishc/Ruby/lib/fileutils.rb:1027:in `rescue in
block in touch'
from /users/girishc/Ruby/lib/fileutils.rb:1023:in `block in
touch'
from /users/girishc/Ruby/lib/fileutils.rb:1021:in `each'
from /users/girishc/Ruby/lib/fileutils.rb:1021:in `touch'
from ./mkconfig.rb:188:in `<main>'
make: *** [.rbconfig.time] Error 1
*******************************************************************************
Some additonal details:

OS : GNU/Linux, Kernel: 2.4.21-40.ELsmp
gcc version (gcc --version) : gcc (GCC) 3.2.3 20030502 (Red Hat Linux
3.2.3-54)
Ruby version(ruby --version): ruby 1.8.6 (2007-03-13 patchlevel 0)
[i686-linux]
Ruby installation path : /usr/bin/ruby

Please let me know if you need some additional details.

Hoping for a positive response.


regards,
Girish
 

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

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top