[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

RUBY port to HPUX 64-bit PA-RISC 11.11

jon.a.miller

4/22/2005 7:18:00 PM

-Can anyone direct me to a binary distribution of ruby
for 64-bit PA-RISC HP-UX 11.11.
-The HPUX Porting Centre does not list it.

Thanx in advance

9 Answers

jon.a.miller

4/22/2005 7:21:00 PM

0

-I failed to state for verions 1.8.2.....

Jamis Buck

4/23/2005 1:29:00 AM

0

On Apr 22, 2005, at 1:24 PM, jon.a.miller@dfas.mil wrote:

> -I failed to state for verions 1.8.2.....
>

At my previous job, we ran HPUX 11.x. To my knowledge, there is no
binary pre-built for Ruby 1.8.2 on HPUX. What is more, if you try to
build Ruby with pthread support, the build fails mysteriously. This
means (for example) that you cannot take advantage of the Oracle
bindings for Ruby on HPUX, because they bind to Oracle, which binds to
pthread...and Ruby won't load libraries that link pthread, unless it
has linked pthread itself. (Insert vicious cycle here.)

All in all, it was a very frustrating experience. Fortunately, my new
job does everything on BSD, which is well supported by Ruby, and MySQL,
which is also very well supported.

For those of you that are trying to use Ruby on HPUX, you have my
condolences. :( On the other hand, if you are more of a C guru than
myself, you might have better luck tracking down the segfaults that
occurred during the bootstrapping phase of building Ruby on HPUX. If
you do, your name will be praised by generations of HPUX users to come.

- Jamis



jon.a.miller

4/23/2005 4:13:00 PM

0

-Thank you for the reply...you confirmed our findings...frustration+
-It just seems strange, in the past we have read articles/papers on
HP's Open Source web site of Ruby being used internally by HP, yet no
ports.
-Unless someone else can enlighten us...Ruby is not a solution for HPUX
11.x...

nobu.nokada

4/24/2005 12:30:00 AM

0

Hi,

At Sat, 23 Apr 2005 10:28:44 +0900,
Jamis Buck wrote in [ruby-talk:139454]:
> At my previous job, we ran HPUX 11.x. To my knowledge, there is no
> binary pre-built for Ruby 1.8.2 on HPUX. What is more, if you try to
> build Ruby with pthread support, the build fails mysteriously. This

How does it fail?

--
Nobu Nakada


Jamis Buck

4/24/2005 2:12:00 AM

0

On Apr 23, 2005, at 6:30 PM, nobu.nokada@softhome.net wrote:

> Hi,
>
> At Sat, 23 Apr 2005 10:28:44 +0900,
> Jamis Buck wrote in [ruby-talk:139454]:
>> At my previous job, we ran HPUX 11.x. To my knowledge, there is no
>> binary pre-built for Ruby 1.8.2 on HPUX. What is more, if you try to
>> build Ruby with pthread support, the build fails mysteriously. This
>
> How does it fail?
>

The thread documenting my efforts begins here:
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-t....
Basically, the miniruby bootstrapping interpreter is built fine, but
then the build dies with a core dump inside of the Shellwords module
(or another one--it usually died in Shellwords for me, but it died in
others on occassion).

- Jamis



nobu.nokada

4/24/2005 3:21:00 AM

0

Hi,

At Sun, 24 Apr 2005 11:12:04 +0900,
Jamis Buck wrote in [ruby-talk:139572]:
> The thread documenting my efforts begins here:
> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-t....
> Basically, the miniruby bootstrapping interpreter is built fine, but
> then the build dies with a core dump inside of the Shellwords module
> (or another one--it usually died in Shellwords for me, but it died in
> others on occassion).

Sounds like GC issue. Could you try it with latest snapshot?

http://www.rubyist.net/~nobu/ruby/ruby18-200504...
http://www.rubyist.net/~nobu/ruby/ruby19-200504...

# The official snapshots stop now due to a security issue.

--
Nobu Nakada


Jamis Buck

4/24/2005 5:45:00 AM

0

On Apr 23, 2005, at 9:21 PM, nobu.nokada@softhome.net wrote:

> Hi,
>
> At Sun, 24 Apr 2005 11:12:04 +0900,
> Jamis Buck wrote in [ruby-talk:139572]:
>> The thread documenting my efforts begins here:
>> http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-t....
>> Basically, the miniruby bootstrapping interpreter is built fine, but
>> then the build dies with a core dump inside of the Shellwords module
>> (or another one--it usually died in Shellwords for me, but it died in
>> others on occassion).
>
> Sounds like GC issue. Could you try it with latest snapshot?
>
> http://www.rubyist.net/~nobu/ruby/ruby18-200504...
> http://www.rubyist.net/~nobu/ruby/ruby19-200504...
>
> # The official snapshots stop now due to a security issue.
>

I'd love to, but I've changed jobs and no longer have access to those
HPUX machines. I know Alexey was one who also had problems--are you
still around, Alexey? Do you still have access to HPUX?

- Jamis



Jamis Buck

4/25/2005 3:17:00 AM

0

On Apr 24, 2005, at 9:07 PM, Alexey Verkhovsky wrote:

> On Apr 23, 2005, at 9:21 PM, nobu.nokada@softhome.net wrote:
>
>>>> Sounds like GC issue. Could you try it with latest snapshot?
>>>
> Nobu,
>
> I had some time to play with HPUX today, and the 1.8 snapshot you
> posted works with --enable-pthread !
>

Wow, yes, this is fantastic news. I was extremely discouraged by the
problems getting Ruby to compile with --enable-pthread on HPUX.
Thank-you, Nobu! If I'm ever near an HPUX machine again, I'll certainly
be installing Ruby on it. ;)

- Jamis



Brett H. Williams

4/25/2005 8:37:00 PM

0

Jamis Buck wrote:
> On Apr 24, 2005, at 9:07 PM, Alexey Verkhovsky wrote:
>
>> On Apr 23, 2005, at 9:21 PM, nobu.nokada@softhome.net wrote:
>>
>>>>> Sounds like GC issue. Could you try it with latest snapshot?
>>>>
>>>>
>> Nobu,
>>
>> I had some time to play with HPUX today, and the 1.8 snapshot you
>> posted works with --enable-pthread !
>>
>
> Wow, yes, this is fantastic news. I was extremely discouraged by the
> problems getting Ruby to compile with --enable-pthread on HPUX.
> Thank-you, Nobu! If I'm ever near an HPUX machine again, I'll certainly
> be installing Ruby on it. ;)

Not sure how useful this is, but we've been using HPUX 11.11i with ruby
for quite some time with pthreads enabled. It does require hacking up
some makefiles to add -lpthread when linking, but that's the only change.

Note that we don't use Oracle so I don't know if our builds would've
worked with that extension.

Every release of ruby requires a bit of tweaking for 64-bit support on
HPUX. There are also some things (too many files open problems?) that
crop up regardless of our efforts. Since we're phasing out our HPUX I
just haven't had the bandwidth to address it again, especially given the
dearth of ruby HPUX users out there.

FWIW, this is with gcc 3.3.3.