[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing Ruby 1.8.2 stable snapshot in Linux

unknown

10/26/2004 1:36:00 PM

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?
4 Answers

Ara.T.Howard

10/26/2004 2:25:00 PM

0

unknown

10/26/2004 2:47:00 PM

0

Ara.T.Howard@noaa.gov wrote:
> On Tue, 26 Oct 2004, Ruby Noob wrote:
>
>> 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?

nobu.nokada

10/26/2004 4:35:00 PM

0

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

--
Nobu Nakada


unknown

10/26/2004 6:13:00 PM

0

nobu.nokada@softhome.net wrote:
> 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!