AIX and Ruby issues (still)

I know this is a thorn to bring up every so often.
But I have yet to find either an AIX package for 5.x
or instructions on how to build 1.8.2 with sockets that actually work.
I did get one build once, but it failed with errors trying to use SOAP.

Has anyone any new info on the AIX port?

Thanks in Advance

Ober

I need an AIX build also.

Thanks
Bryan Webb

ober wrote:

···

I know this is a thorn to bring up every so often.
But I have yet to find either an AIX package for 5.x
or instructions on how to build 1.8.2 with sockets that actually work.
I did get one build once, but it failed with errors trying to use SOAP.

Has anyone any new info on the AIX port?

Thanks in Advance

Ober

ober <ober@linbsd.org> writes:

I know this is a thorn to bring up every so often.
But I have yet to find either an AIX package for 5.x
or instructions on how to build 1.8.2 with sockets that actually work.
I did get one build once, but it failed with errors trying to use SOAP.

Has anyone any new info on the AIX port?

I have no news for an AIX package. But as for the latter how about two
patches at the following URL?
  http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201
note: It may not be compiled by gcc. I've always built by cc.

If you have already tried with these patches, post the error messages.
I've not tested real applications. My test script is extremely simple.
It may cause no problem even though that patches couldn't fix all
problems.

My test script:
   require 'net/http'
   Net::HTTP.start('www.example.com', 80) { |http|
      response = http.get('/index.html')
      puts response.body
   }

···

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

Me three!

···

On 8/19/05, bww00amdahl@yahoo.com <bww00amdahl@yahoo.com> wrote:

I need an AIX build also.

Thanks
Bryan Webb

ober wrote:
> I know this is a thorn to bring up every so often.
> But I have yet to find either an AIX package for 5.x
> or instructions on how to build 1.8.2 with sockets that actually work.
> I did get one build once, but it failed with errors trying to use SOAP.
>
> Has anyone any new info on the AIX port?
>
> Thanks in Advance
>
> Ober

I tried those patches with xlc to no luck.
Wouldn't those patches also have made it into the latest stable cvs?

···

On Sun, 21 Aug 2005, KUBO Takehiro wrote:

ober <ober@linbsd.org> writes:

I know this is a thorn to bring up every so often.
But I have yet to find either an AIX package for 5.x
or instructions on how to build 1.8.2 with sockets that actually work.
I did get one build once, but it failed with errors trying to use SOAP.

Has anyone any new info on the AIX port?

I have no news for an AIX package. But as for the latter how about two
patches at the following URL?
http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201
note: It may not be compiled by gcc. I've always built by cc.

If you have already tried with these patches, post the error messages.
I've not tested real applications. My test script is extremely simple.
It may cause no problem even though that patches couldn't fix all
problems.

My test script:
  require 'net/http'
  Net::HTTP.start('www.example.com', 80) { |http|
     response = http.get('/index.html')
     puts response.body
  }

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

ober <ober@linbsd.org> writes:

I tried those patches with xlc to no luck.
Wouldn't those patches also have made it into the latest stable cvs?

Yes. But It is not enough. Unfortunately AIX 5.2's getnameinfo fails
when struct sockaddr contains the all-zeros IPv6 address.

To work around this, configure with '--disable-ipv6'.

  gzip -dc ruby-1.8.2.tar.gz | tar xvf -
  cd ruby-1.8.2
  patch -p1 < path_to/patch1 # See: http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201
  ./configure --disable-ipv6

I built ruby 1.8.2 on AIX 5.2 with IPv4 socket support which was
configured with '--disable-ipv6' and '--prefix=/usr/local/ruby182'

  binary:
    http://www.jiubao.org/tmp/ruby182-aix52.tar.gz

  root user:
    cd /usr/local
    gzip -dc ruby182-aix52.tar.gz | tar xvf -

  users:
    PATH=$PATH:/usr/local/ruby182/bin
    export PATH

To support IPv6 on AIX 5.2, we need to add a getnameinfo wrapper API
as openssh does. (See: openbsd-compat/port-aix.c in openssh-4.1p1.tar.gz)

···

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

Well I am trying to get it to compile on 5.1.
I will try this process for compiling.
No, this version wont work on 5.1.

Thanks!

···

On Mon, 22 Aug 2005, KUBO Takehiro wrote:

ober <ober@linbsd.org> writes:

I tried those patches with xlc to no luck.
Wouldn't those patches also have made it into the latest stable cvs?

Yes. But It is not enough. Unfortunately AIX 5.2's getnameinfo fails
when struct sockaddr contains the all-zeros IPv6 address.

To work around this, configure with '--disable-ipv6'.

gzip -dc ruby-1.8.2.tar.gz | tar xvf -
cd ruby-1.8.2
patch -p1 < path_to/patch1 # See: http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201
./configure --disable-ipv6

I built ruby 1.8.2 on AIX 5.2 with IPv4 socket support which was
configured with '--disable-ipv6' and '--prefix=/usr/local/ruby182'

binary:
   http://www.jiubao.org/tmp/ruby182-aix52.tar.gz

root user:
   cd /usr/local
   gzip -dc ruby182-aix52.tar.gz | tar xvf -

users:
   PATH=$PATH:/usr/local/ruby182/bin
   export PATH

To support IPv6 on AIX 5.2, we need to add a getnameinfo wrapper API
as openssh does. (See: openbsd-compat/port-aix.c in openssh-4.1p1.tar.gz)

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

I also can not get to the link you provided for the patch.

···

On Mon, 22 Aug 2005, KUBO Takehiro wrote:

ober <ober@linbsd.org> writes:

I tried those patches with xlc to no luck.
Wouldn't those patches also have made it into the latest stable cvs?

Yes. But It is not enough. Unfortunately AIX 5.2's getnameinfo fails
when struct sockaddr contains the all-zeros IPv6 address.

To work around this, configure with '--disable-ipv6'.

gzip -dc ruby-1.8.2.tar.gz | tar xvf -
cd ruby-1.8.2
patch -p1 < path_to/patch1 # See: http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201
./configure --disable-ipv6

I built ruby 1.8.2 on AIX 5.2 with IPv4 socket support which was
configured with '--disable-ipv6' and '--prefix=/usr/local/ruby182'

binary:
   http://www.jiubao.org/tmp/ruby182-aix52.tar.gz

root user:
   cd /usr/local
   gzip -dc ruby182-aix52.tar.gz | tar xvf -

users:
   PATH=$PATH:/usr/local/ruby182/bin
   export PATH

To support IPv6 on AIX 5.2, we need to add a getnameinfo wrapper API
as openssh does. (See: openbsd-compat/port-aix.c in openssh-4.1p1.tar.gz)

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

ober <ober@linbsd.org> writes:

I also can not get to the link you provided for the patch.

Is www.ruby-talk.org down?

How about a google cache?
  http://www.google.com/search?q=cache:ETsPBP7xaXwJ:www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201

···

On Mon, 22 Aug 2005, KUBO Takehiro wrote:

ober <ober@linbsd.org> writes:

I tried those patches with xlc to no luck.
Wouldn't those patches also have made it into the latest stable cvs?

Yes. But It is not enough. Unfortunately AIX 5.2's getnameinfo fails
when struct sockaddr contains the all-zeros IPv6 address.

To work around this, configure with '--disable-ipv6'.

gzip -dc ruby-1.8.2.tar.gz | tar xvf -
cd ruby-1.8.2
patch -p1 < path_to/patch1 # See: http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201
./configure --disable-ipv6

I built ruby 1.8.2 on AIX 5.2 with IPv4 socket support which was
configured with '--disable-ipv6' and '--prefix=/usr/local/ruby182'

binary:
   http://www.jiubao.org/tmp/ruby182-aix52.tar.gz

root user:
   cd /usr/local
   gzip -dc ruby182-aix52.tar.gz | tar xvf -

users:
   PATH=$PATH:/usr/local/ruby182/bin
   export PATH

To support IPv6 on AIX 5.2, we need to add a getnameinfo wrapper API
as openssh does. (See: openbsd-compat/port-aix.c in openssh-4.1p1.tar.gz)

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

ober <ober@linbsd.org> writes:

Well I am trying to get it to compile on 5.1.
I will try this process for compiling.
No, this version wont work on 5.1.

ruby 1.8.2 on AIX 5.1 with IPv4 socket was also built, which was
configured with '--disable-ipv6' and '--prefix=/usr/local/ruby182'

  binary:
    http://www.jiubao.org/tmp/ruby182-aix51.tar.gz (AIX 5.1)
    http://www.jiubao.org/tmp/ruby182-aix52.tar.gz (AIX 5.2)

  root user:
    cd /usr/local
    gzip -dc ruby182-aix51.tar.gz | tar xvf -
     ..or..
    gzip -dc ruby182-aix52.tar.gz | tar xvf -

  users:
    PATH=$PATH:/usr/local/ruby182/bin
    export PATH

They are tested by the following simple script.

   require 'net/http'
   Net::HTTP.start('www.example.com', 80) { |http|
      response = http.get('/index.html')
      puts response.body
   }

···

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

KUBO Takehiro wrote:

Is www.ruby-talk.org down?

Testing this on my end I can resolve the DNS name but can't get to the
home page. Perhaps there are issues...

That appears to work.

Thanks!

···

On Tue, 23 Aug 2005, KUBO Takehiro wrote:

ober <ober@linbsd.org> writes:

Well I am trying to get it to compile on 5.1.
I will try this process for compiling.
No, this version wont work on 5.1.

ruby 1.8.2 on AIX 5.1 with IPv4 socket was also built, which was
configured with '--disable-ipv6' and '--prefix=/usr/local/ruby182'

binary:
   http://www.jiubao.org/tmp/ruby182-aix51.tar.gz (AIX 5.1)
   http://www.jiubao.org/tmp/ruby182-aix52.tar.gz (AIX 5.2)

root user:
   cd /usr/local
   gzip -dc ruby182-aix51.tar.gz | tar xvf -
    ..or..
   gzip -dc ruby182-aix52.tar.gz | tar xvf -

users:
   PATH=$PATH:/usr/local/ruby182/bin
   export PATH

They are tested by the following simple script.

  require 'net/http'
  Net::HTTP.start('www.example.com', 80) { |http|
     response = http.get('/index.html')
     puts response.body
  }

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

Hi all,

I was wondering if it was possible to connect to a POP3 server using SSL? I am using Ruby 1.8.2 (on OS X).

Any help would be appreciated. Thanks.

Regards,
Diego

I guess I am not as lucky as other members.
I downloaded the binary for AIX 5.2 and have some problems.

ruby -v returns;
/usr/local/bin/ruby182/bin # ruby -v
ruby 1.8.2 (2004-12-25) [powerpc-aix5.2.0.0]

Running the test program or my own, I get:

/usr/local/bin/ruby182/bin # ruby testrb
testrb:2:in `require': No such file to load -- test/unit (LoadError)
        from testrb:2

Any script with the "require" stmt fails.

Regards,

Victor

···

On 8/27/05, ober <ober@linbsd.org> wrote:

That appears to work.

Thanks!

On Tue, 23 Aug 2005, KUBO Takehiro wrote:

> ober <ober@linbsd.org> writes:
>
>> Well I am trying to get it to compile on 5.1.
>> I will try this process for compiling.
>> No, this version wont work on 5.1.
>
> ruby 1.8.2 on AIX 5.1 with IPv4 socket was also built, which was
> configured with '--disable-ipv6' and '--prefix=/usr/local/ruby182'
>
> binary:
> http://www.jiubao.org/tmp/ruby182-aix51.tar.gz (AIX 5.1)
> http://www.jiubao.org/tmp/ruby182-aix52.tar.gz (AIX 5.2)
>
> root user:
> cd /usr/local
> gzip -dc ruby182-aix51.tar.gz | tar xvf -
> ..or..
> gzip -dc ruby182-aix52.tar.gz | tar xvf -
>
> users:
> PATH=$PATH:/usr/local/ruby182/bin
> export PATH
>
> They are tested by the following simple script.
>
> require 'net/http'
> Net::HTTP.start('www.example.com', 80) { |http|
> response = http.get('/index.html')
> puts response.body
> }
>
> --
> KUBO Takehiro
> email: kubo@jiubao.org
> web: http://www.jiubao.org
> GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262
>

You can do it with OpenSSL (openssl.rb). It's part of the standard library.

Mohit.

···

On 8/27/05, Diego Barros <diego@heyboyo.com> wrote:
> Hi all,
>
> I was wondering if it was possible to connect to a POP3 server using
> SSL? I am using Ruby 1.8.2 (on OS X).
>
> Any help would be appreciated. Thanks.
>
> Regards,
> Diego
>
>

--
Mohit Muthanna [mohit (at) muthanna (uhuh) com]
"There are 10 types of people. Those who understand binary, and those
who don't."

--
Mohit Muthanna [mohit (at) muthanna (uhuh) com]
"There are 10 types of people. Those who understand binary, and those
who don't."

Victor Reyes <victor.reyes@gmail.com> writes:

I guess I am not as lucky as other members.
I downloaded the binary for AIX 5.2 and have some problems.

ruby -v returns;
/usr/local/bin/ruby182/bin # ruby -v

  ^^^^^^^^^^^^^^

Did you untar the tar-ball at /usr/local/bin?
Untar at /usr/local instead.

    cd /usr/local
    gzip -dc ruby182-aix52.tar.gz | tar xvf -

···

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

My mistake!

I now untar it now at /usr/local and executed the example given below, and
it worked.

require 'net/http'
Net::HTTP.start('www.example.com <http://www.example.com/&gt;&#39;, 80) { |http|
response = http.get('/index.html')
puts response.body
}

Thank you so much for your help. I will run a set of tests tomorrow morning.

Victor

···

On 8/29/05, KUBO Takehiro <kubo@jiubao.org> wrote:

Victor Reyes <victor.reyes@gmail.com> writes:

> I guess I am not as lucky as other members.
> I downloaded the binary for AIX 5.2 and have some problems.
>
> ruby -v returns;
> /usr/local/bin/ruby182/bin # ruby -v
^^^^^^^^^^^^^^

Did you untar the tar-ball at /usr/local/bin?
Untar at /usr/local instead.

cd /usr/local
gzip -dc ruby182-aix52.tar.gz | tar xvf -

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

Well, I got it to work on two AIX 5.3 Servers.
What I need now is a 182 build that works under 4.3.3 (Yes, I know 4.3.3 is
not supported by IBM anymore).

Thank you

···

On 8/29/05, Victor Reyes <victor.reyes@gmail.com> wrote:

My mistake!

I now untar it now at /usr/local and executed the example given below, and
it worked.

require 'net/http'
Net::HTTP.start('www.example.com <http://www.example.com> <
http://www.example.com/&gt;&#39;, 80) { |http|
response = http.get('/index.html')
puts response.body
}

Thank you so much for your help. I will run a set of tests tomorrow
morning.

Victor

On 8/29/05, KUBO Takehiro <kubo@jiubao.org> wrote:
>
> Victor Reyes <victor.reyes@gmail.com> writes:
>
> > I guess I am not as lucky as other members.
> > I downloaded the binary for AIX 5.2 and have some problems.
> >
> > ruby -v returns;
> > /usr/local/bin/ruby182/bin # ruby -v
> ^^^^^^^^^^^^^^
>
> Did you untar the tar-ball at /usr/local/bin?
> Untar at /usr/local instead.
>
> cd /usr/local
> gzip -dc ruby182-aix52.tar.gz | tar xvf -
>
> --
> KUBO Takehiro
> email: kubo@jiubao.org
> web: http://www.jiubao.org
> GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262
>
>

Victor Reyes <victor.reyes@gmail.com> writes:

Well, I got it to work on two AIX 5.3 Servers.
What I need now is a 182 build that works under 4.3.3 (Yes, I know 4.3.3 is
not supported by IBM anymore).

OK.

  binaries:
    http://www.jiubao.org/tmp/ruby182-aix433.tar.gz (AIX 4.3.3)
    http://www.jiubao.org/tmp/ruby182-aix51.tar.gz (AIX 5.1)
    http://www.jiubao.org/tmp/ruby182-aix52.tar.gz (AIX 5.2)

  root user:
    cd /usr/local
    gzip -dc ruby182-aix433.tar.gz | tar xvf -
     ..or..
    gzip -dc ruby182-aix51.tar.gz | tar xvf -
     ..or..
    gzip -dc ruby182-aix52.tar.gz | tar xvf -

  users:
    PATH=$PATH:/usr/local/ruby182/bin
    export PATH

ruby182-aix433.tar.gz was configured with patch1, patch2 and
'--prefix=/usr/local/ruby182'.

ruby182-aix51.tar.gz and ruby182-aix52.tar.gz were configured with
patch1, '--disable-ipv6' and '--prefix=/usr/local/ruby182'.

patch1 and patch2 are got from:
   http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201

···

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262

Thank you for the info. I'll give it a try tonight.

Victor

···

On 8/31/05, KUBO Takehiro <kubo@jiubao.org> wrote:

Victor Reyes <victor.reyes@gmail.com> writes:

> Well, I got it to work on two AIX 5.3 Servers.
> What I need now is a 182 build that works under 4.3.3 (Yes, I know 4.3.3is
> not supported by IBM anymore).

OK.

binaries:
http://www.jiubao.org/tmp/ruby182-aix433.tar.gz (AIX 4.3.3)
http://www.jiubao.org/tmp/ruby182-aix51.tar.gz (AIX 5.1)
http://www.jiubao.org/tmp/ruby182-aix52.tar.gz (AIX 5.2)

root user:
cd /usr/local
gzip -dc ruby182-aix433.tar.gz | tar xvf -
..or..
gzip -dc ruby182-aix51.tar.gz | tar xvf -
..or..
gzip -dc ruby182-aix52.tar.gz | tar xvf -

users:
PATH=$PATH:/usr/local/ruby182/bin
export PATH

ruby182-aix433.tar.gz was configured with patch1, patch2 and
'--prefix=/usr/local/ruby182'.

ruby182-aix51.tar.gz and ruby182-aix52.tar.gz were configured with
patch1, '--disable-ipv6' and '--prefix=/usr/local/ruby182'.

patch1 and patch2 are got from:
http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201

--
KUBO Takehiro
email: kubo@jiubao.org
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262