Installing Ruby 1.8.2 stable snapshot in Linux

R

Ruby Noob

Hi,

I just installed the latest stable snapshot of Ruby but I'm not sure if
the install went 100% fine. I'm running RedHat Advanced Server 3 and
I've also installed mod_ruby 1.2.4.

What I did:

cd /usr/local/src/ruby
../configure
make
make test -> success
make install
ruby --version -> displays "ruby 1.8.2 (2004-10-25) [i686-linux]" :)

Why I'm confused:

a. rpm -qa -> "ruby-libs-1.8.1-12" (not sure why this shows up)

b. /usr/local/lib/libruby-static.a exists and is up-to-date :)
but libruby.so does not exist in this directory

c. /usr/lib/libruby.so.1.8 points to libruby.so.1.8.1
both of these are months old and in different dir from (b)

What I expected:

I expected ruby to be version 1.8.2 (2004-10-25) everywhere
(interpreter, static lib, and shared lib). But it seems the shared libs
aren't updated to the latest version.

What am I doing wrong?
 
A

Ara.T.Howard

Hi,

I just installed the latest stable snapshot of Ruby but I'm not sure if the
install went 100% fine. I'm running RedHat Advanced Server 3 and I've also
installed mod_ruby 1.2.4.

What I did:

cd /usr/local/src/ruby
./configure
make
make test -> success
make install
ruby --version -> displays "ruby 1.8.2 (2004-10-25) [i686-linux]" :)

Why I'm confused:

a. rpm -qa -> "ruby-libs-1.8.1-12" (not sure why this shows up)

b. /usr/local/lib/libruby-static.a exists and is up-to-date :)
but libruby.so does not exist in this directory

c. /usr/lib/libruby.so.1.8 points to libruby.so.1.8.1
both of these are months old and in different dir from (b)

What I expected:

I expected ruby to be version 1.8.2 (2004-10-25) everywhere (interpreter,
static lib, and shared lib). But it seems the shared libs aren't updated to
the latest version.

What am I doing wrong?

nothing. you've installed without using an rpm and so rpm database has not
been updated. you've got two versions now - one in /usr and one under
/usr/local. you've got a couple of options:

- do nothing, have two rubys

- figure out how to make an rpm out of the 1.8.2 tar ball and update (as root)
using that

- clobber rpm install (configure --prefix=/usr && make && sudo make install)
and forget about rpms

someone more knowing might be able to fill in the bits about making an rpm.

regards.

-a
--
===============================================================================
| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| When you do something, you should burn yourself completely, like a good
| bonfire, leaving no trace of yourself. --Shunryu Suzuki
===============================================================================
 
R

Ruby Noob

Hi,

I just installed the latest stable snapshot of Ruby but I'm not sure
if the install went 100% fine. I'm running RedHat Advanced Server 3
and I've also installed mod_ruby 1.2.4.

What I did:

cd /usr/local/src/ruby
./configure
make
make test -> success
make install
ruby --version -> displays "ruby 1.8.2 (2004-10-25) [i686-linux]" :)

Why I'm confused:

a. rpm -qa -> "ruby-libs-1.8.1-12" (not sure why this shows up)

b. /usr/local/lib/libruby-static.a exists and is up-to-date :)
but libruby.so does not exist in this directory

c. /usr/lib/libruby.so.1.8 points to libruby.so.1.8.1
both of these are months old and in different dir from (b)

What I expected:

I expected ruby to be version 1.8.2 (2004-10-25) everywhere
(interpreter, static lib, and shared lib). But it seems the shared
libs aren't updated to the latest version.

What am I doing wrong?


nothing. you've installed without using an rpm and so rpm database has not
been updated. you've got two versions now - one in /usr and one under
/usr/local. you've got a couple of options:

- do nothing, have two rubys

- figure out how to make an rpm out of the 1.8.2 tar ball and update
(as root)
using that

- clobber rpm install (configure --prefix=/usr && make && sudo make
install)
and forget about rpms

someone more knowing might be able to fill in the bits about making an rpm.

regards.

-a
--
===============================================================================

| EMAIL :: Ara [dot] T [dot] Howard [at] noaa [dot] gov
| PHONE :: 303.497.6469
| When you do something, you should burn yourself completely, like a good
| bonfire, leaving no trace of yourself. --Shunryu Suzuki
===============================================================================

Thanks!

By the way, should doing a "make && make install" install any
rubylib.so* files? If so, shouldn't I have a rubylib.so.1.8.2 somewhere?
 
N

nobu.nokada

Hi,

At Tue, 26 Oct 2004 23:49:09 +0900,
Ruby Noob wrote in [ruby-talk:117766]:
By the way, should doing a "make && make install" install any
rubylib.so* files? If so, shouldn't I have a rubylib.so.1.8.2 somewhere?

configure --enable-shared
 
R

Ruby Noob

Hi,

At Tue, 26 Oct 2004 23:49:09 +0900,
Ruby Noob wrote in [ruby-talk:117766]:
By the way, should doing a "make && make install" install any
rubylib.so* files? If so, shouldn't I have a rubylib.so.1.8.2 somewhere?


configure --enable-shared

Thanks!
 

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,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top