Ruby Installation Error

I am trying this command to build the ruby interpreter

./configure and then make test

it is showing me 900 failed 1

and when i am typing…

autoconf

it is showing–

configure.in:4: error: Autoconf version 2.60 or higher is required
configure.in:4: the top level
autom4te: /usr/bin/m4 failed with exit status: 63

What should i do??..

What platform are you on? Linux or Mac OSX. Get the latest version of
autoconf.

Thanks, Shashank

Shashank Tiwari wrote:

What platform are you on? Linux or Mac OSX. Get the latest version of
autoconf.

Thanks, Shashank

I am on Linux…Where can i find the Latest version of autoconf…

And do i need to copy the latest autoconf version on Ruby Folder.and
repeat the process again?.

Shashank Tiwari wrote:

Please download autoconf from Autoconf - GNU Project - Free Software Foundation and
build it on your system. On Ubuntu you may be able to use apt-get
install
autoconf
. You may be able to use yum autoconf on RedHat.

Thanks, Shashank

Thank You…I have downloaded the file.I will be very grateful if you can
guide me through the detailed steps of how to build the autoconf-2.60
inside the ruby directory.

I am very much getting confused.Also i need to compile the ruby within 3
days.’

So if you can help as you can i will be thankful to you.

Regards

Tridib

Please download autoconf from Autoconf - GNU Project - Free Software Foundation and
build it on your system. On Ubuntu you may be able to use apt-get
install
autoconf
. You may be able to use yum autoconf on RedHat.

Thanks, Shashank

On 09/28/2010 08:06 PM, Tridib B. wrote:

I have downloaded the file autoconf-2.60 as it was asking for update
version of it.I will be very grateful if any one can guide me through
the detailed steps of how to build the autoconf-2.60 inside the ruby
directory.

I’m not sure you can build autoconf within the ruby source directory if
that’s what you’re asking about. However, autoconf should include
instructions within its sources for how to build and install it.
Extract the autoconf sources somewhere and look into the root of the
extraction tree for either an INSTALL or a README file. One or both of
those should include the information you need to start the build
process.

I am very much getting confused.Also i need to compile the ruby within 3
days.

So if any one can help I will be thankful to you.

I looked back through this thread, and I can’t figure out why you
decided to run autoconf yourself in the first place. The autoconf
package is used to build the configure script which you ran successfully
during your first build attempt.

I can appreciate your urgency, but maybe it’s time to reboot this thread
and provide more details about what you’re doing and why you’re doing
it:

  1. What exact Linux distribution and version are you running?
  2. Why are you trying to build ruby for yourself rather than use one
    provided by your Linux distribution?
  3. Where did you get the ruby sources you tried to compile?
  4. What was the literal error returned to you when you ran “make test”?
  5. Why did you run autoconf after encountering a test failure?

-Jeremy

Tridib B. wrote:

I am trying this command to build the ruby interpreter

./configure and then make test

it is showing me 900 failed 1

and when i am typing…

autoconf

it is showing–

configure.in:4: error: Autoconf version 2.60 or higher is required
configure.in:4: the top level
autom4te: /usr/bin/m4 failed with exit status: 63

What should i do??..

You should not run autoconf at all. This is only needed if you are
building ruby from subversion, to create the ./configure script. If you
download a ruby source tarball then you already have this.

What you should do is start again: ./configure && make && make test, and
then post the exact error message you see, plus a few lines either
side for context. Use copy-paste.

Also, include all the important details you have missed off: what
operating system and version you are building under, and what exact
version of ruby you are trying to build.

I have downloaded the file autoconf-2.60 as it was asking for update
version of it.I will be very grateful if any one can guide me through
the detailed steps of how to build the autoconf-2.60 inside the ruby
directory.

I am very much getting confused.Also i need to compile the ruby within 3
days.

So if any one can help I will be thankful to you.

Regards

Tridib

The ruby version is…1.9.2

I downloaded the source code from here>>

http://www.ruby-lang.org/en/downloads/

The first link…

On 9/29/2010 4:25 PM, Tridib B. wrote:

I am running it on Linux Platform.

Which Linux distribution are you using? Are you running RedHat, Ubuntu,
Fedora, Gentoo, or something else? What version of that Linux
distribution are you running? Knowing the answers to these questions
might allow someone to direct you to a pre-built ruby package which you
can simply install rather than try to build your own.

When I am typing make test it is
showing this…-----

sample/test.rb:assignment

test_proc.rb …bootstraptest.tmp.rb:5:in
`’ : ok (RuntimeError)

rescue
100
end
#=> “” (expected “100”) [ruby-dev:31371]
FAIL 1/948 tests failed
make: *** [btest-ruby] Error 1

What should I do now?..

That depends. It’s possible that this build of ruby will work just fine
for what you need. I don’t know enough about this failing testcase to
be able to say for sure.

Since your build is otherwise complete, you could just try running ruby
within your build tree. You might also try running “make install”, but
take care with that since it could require you to delete all that
installed stuff later whenever you find a proper ruby package to
install. I strongly suggest that you try to find a pre-built ruby
package that meets your needs unless you need to customize ruby
internals for some reason.

-Jeremy

I am running it on Linux Platform.When I am typing make test it is
showing this…-----

sample/test.rb:assignment





sample/test.rb:condition …
sample/test.rb:if/unless …
sample/test.rb:case …
sample/test.rb:while/until …
sample/test.rb:exception …
sample/test.rb:array …
sample/test.rb:hash …
sample/test.rb:iterator


sample/test.rb:float


sample/test.rb:bignum …
sample/test.rb:string & char


sample/test.rb:assignment …
sample/test.rb:call …
sample/test.rb:proc …
sample/test.rb:signal …
sample/test.rb:eval …
sample/test.rb:system …
sample/test.rb:const …
sample/test.rb:clone …
sample/test.rb:marshal …
sample/test.rb:pack …
sample/test.rb:math …
sample/test.rb:struct …
sample/test.rb:variable …
sample/test.rb:trace …
sample/test.rb:defined? …
sample/test.rb:alias …
sample/test.rb:path …
sample/test.rb:gc …
test succeeded

test_syntax.rb



test_struct.rb .
test_finalizer.rb .
test_thread.rb …F…
test_objectspace.rb …
test_jump.rb …
test_flip.rb .
test_gc.rb …
test_attr.rb …
test_class.rb …
test_block.rb …
test_proc.rb …bootstraptest.tmp.rb:5:in
<main>' : ok (RuntimeError) . test_io.rb ......................................................... test_flow.rb ............................................ test_eval.rb ................................... test_massign.rb .................................. test_autoload.rb .......... test_load.rb .. test_literal.rb ................................................................ ................................................................................ .... test_method.rb ................................................................. ................................................................................ .......................................................................... test_exception.rb ................................. test_marshal.rb . test_fork.rb . #174 test_thread.rb:191:in<top (required)>’:
begin
100.times do |i|
begin
Thread.start(Thread.current) {|u| u.raise }
raise
rescue
ensure
end
end
rescue
100
end
#=> “” (expected “100”) [ruby-dev:31371]
FAIL 1/948 tests failed
make: *** [btest-ruby] Error 1

What should I do now?..

Tridib B. wrote:

test_fork.rb .
#174 test_thread.rb:191:in `<top (required)>':
begin
100.times do |i|
begin
Thread.start(Thread.current) {|u| u.raise }
raise
rescue
ensure
end
end
rescue
100
end
#=> “” (expected “100”) [ruby-dev:31371]
FAIL 1/948 tests failed
make: *** [btest-ruby] Error 1

What should I do now?..

Well, all tests passed except one, and maybe you can live with that.

The test which fails includes a reference to a mailing list posting:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/31371
(unfortunately in Japanese), so this looks like a regression test.

You need to post your exact O/S details (distro and version, preferably
including your gcc version)

Brian C. wrote:

Tridib B. wrote:

test_fork.rb .
#174 test_thread.rb:191:in `<top (required)>':
begin
100.times do |i|
begin
Thread.start(Thread.current) {|u| u.raise }
raise
rescue
ensure
end
end
rescue
100
end
#=> “” (expected “100”) [ruby-dev:31371]
FAIL 1/948 tests failed
make: *** [btest-ruby] Error 1

What should I do now?..

Well, all tests passed except one, and maybe you can live with that.

The test which fails includes a reference to a mailing list posting:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/31371
(unfortunately in Japanese), so this looks like a regression test.

You need to post your exact O/S details (distro and version, preferably
including your gcc version)

I not working mainly on Linux…I am working on Windows Vista service
pack 1. And is using the Putty Server to access all my files which is in
my School server.So it follows almost Unix commands.

As you suggested i followed all the steps (including the earlier error
which was showing when i was typing make test)…I tried to run the make
install command and I was shown this things.

./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./instruby.rb
–make=“make” --dest-dir=“” --extout=“.ext” --mflags=“” --make-flags=“”
–data-mode=0644 --prog-mode=0755 --installed-list .installed.list
–mantype=“doc”
installing binary commands
/usr/local/courses/731/Tridib.Bandopadhyay/ruby/lib/fileutils.rb:240:in
mkdir': Permission denied - /usr/local/lib/ruby (Errno::EACCES) from /usr/local/courses/731/Tridib.Bandopadhyay/ruby/lib/fileutils.rb:240:in fu_mkdir’
from
/usr/local/courses/731/Tridib.Bandopadhyay/ruby/lib/fileutils.rb:217:in
block (2 levels) in mkdir_p' from /usr/local/courses/731/Tridib.Bandopadhyay/ruby/lib/fileutils.rb:215:in reverse_each’
from
/usr/local/courses/731/Tridib.Bandopadhyay/ruby/lib/fileutils.rb:215:in
block in mkdir_p' from /usr/local/courses/731/Tridib.Bandopadhyay/ruby/lib/fileutils.rb:201:in each’
from
/usr/local/courses/731/Tridib.Bandopadhyay/ruby/lib/fileutils.rb:201:in
mkdir_p' from ./instruby.rb:159:in makedirs’
from ./instruby.rb:234:in block in <main>' from ./instruby.rb:409:in call’
from ./instruby.rb:409:in block (2 levels) in <main>' from ./instruby.rb:406:in each’
from ./instruby.rb:406:in block in <main>' from ./instruby.rb:402:in each’
from ./instruby.rb:402:in `’
make: *** [do-install-nodoc] Error 1

Also my gcc version is…

gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)

Actually I want to compile the ruby source code and build it and then
want to run a small program.

What should i do now?.

Jeremy B. wrote:

Please run the following while connected to
your school’s server and send the output it returns:

uname -a

To this command…it is showing me the following result

Linux sol.usd.edu 2.6.9-89.0.23.ELsmp #1 SMP Wed Mar 17 06:49:21 EDT
2010 x86_64 x86_64 x86_64 GNU/Linux

-Tridib

On 10/04/2010 07:50 PM, Tridib B. wrote:

I not working mainly on Linux…I am working on Windows Vista service
pack 1. And is using the Putty Server to access all my files which is in
my School server.So it follows almost Unix commands.

The fact that you’re using Windows in this case does not matter because
you are not using it for anything more than a way to run the Putty
client to connect to the SSH server provided by your school. The
important part is that you are actually doing all your real work on a
Unix server of some kind. Please run the following while connected to
your school’s server and send the output it returns:

uname -a

`mkdir’: Permission denied - /usr/local/lib/ruby (Errno::EACCES)
The problem is that you don’t have permission to write anything into
/usr/local or its subdirectories. By default, the installation is going
to /usr/local, so you’ll need to find a way to install to a different
location to which you have write access. I think you can do that by
running the configure script with the --prefix option and an argument
pointing to someplace in your workspace:

cd /usr/local/courses/731/Tridib.Bandopadhyay/ruby
./configure --prefix
/usr/local/courses/731/Tridib.Bandopadhyay/ruby-install
make
make install

Assuming that works, your ruby program will be located in
/usr/local/courses/731/Tridib.Bandopadhyay/ruby-install/bin.

Actually I want to compile the ruby source code and build it and then
want to run a small program.

What should i do now?.

If all you want to do is run a small program, you can very easily
install a pre-built version of Ruby for Windows and try running that
program on your personal computer rather than the school’s server. It
will likely work unless the program requires something only provided on
that server. Download an installer for Windows here:

http://rubyforge.org/frs/download.php/72170/rubyinstaller-1.9.2-p0.exe

There are other versions available in case that one doesn’t work for
some reason:

http://rubyforge.org/frs/?group_id=167

If you want to run the program on your school’s server anyway, you can
usually get away with simply using the ruby program located within the
location where you built it. Another option is to ask around and see if
anyone else already has a Ruby installation available on the server that
you can use.

-Jeremy

On 10/5/2010 9:16 AM, Tridib B. wrote:

Linux sol.usd.edu 2.6.9-89.0.23.ELsmp #1 SMP Wed Mar 17 06:49:21 EDT
2010 x86_64 x86_64 x86_64 GNU/Linux

It looks like the server is running some version of RedHat Linux. What
is the output of this:

cat /etc/redhat-release

BTW, have you tried contacting the administrator of the server to ask if
he/she could install ruby?

-Jeremy

Jeremy B. wrote:

On 10/5/2010 9:16 AM, Tridib B. wrote:

Linux sol.usd.edu 2.6.9-89.0.23.ELsmp #1 SMP Wed Mar 17 06:49:21 EDT
2010 x86_64 x86_64 x86_64 GNU/Linux

It looks like the server is running some version of RedHat Linux. What
is the output of this:

cat /etc/redhat-release

Output is::

CentOS release 4.8 (Final)

BTW, have you tried contacting the administrator of the server to ask if
he/she could install ruby?

Still now I didn’t contact the administrator…May be I will contact them
by the night time.

Can any one provide me the link where from I can download Ruby version
1.8.1. Source Code.

Regards

Tridib

On 10/11/2010 09:43 AM, Tridib B. wrote:

Can any one provide me the link where from I can download Ruby version
1.8.1. Source Code.

ftp://ftp.ruby-lang.org/pub/ruby/1.8/

On 10/5/2010 12:03 PM, Tridib B. wrote:

Output is::

CentOS release 4.8 (Final)

CentOS is a derivative of RedHat, so that’s good information. Thanks!

BTW, have you tried contacting the administrator of the server to ask if
he/she could install ruby?

Still now I didn’t contact the administrator…May be I will contact them
by the night time.

Unless I’m mistaken, the ruby package for that version of CentOS is
version 1.8.1. Maybe that will suit your needs and maybe not. It won’t
hurt to ask them to install it and then give it a try at least.

Have you tried installing ruby onto your Windows computer? You might be
able to avoid all this mess if you do that.

-Jeremy