AIX and Ruby issues (still)

O

ober

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
 
K

KUBO Takehiro

ober said:
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
}
 
O

ober

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

KUBO Takehiro

ober said:
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)
 
O

ober

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!
 
O

ober

That appears to work.

Thanks!

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: (e-mail address removed)
web: http://www.jiubao.org
GnuPG fingerprint = 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262
 
D

Diego Barros

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
 
M

Mohit Muthanna

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

Mohit.
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
=20
=20
--
Mohit Muthanna [mohit (at) muthanna (uhuh) com]
"There are 10 types of people. Those who understand binary, and those
who don't."
=20


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

Victor Reyes

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

That appears to work.
=20
Thanks!
=20


ruby 1.8.2 on AIX 5.1 with IPv4 socket was also built, which was
configured with '--disable-ipv6' and '--prefix=3D/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=3D$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 =3D http.get('/index.html')
puts response.body
}

--
KUBO Takehiro
email: (e-mail address removed)
web: http://www.jiubao.org
GnuPG fingerprint =3D 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 226= 2
=20
[/QUOTE]
 
K

KUBO Takehiro

Victor Reyes said:
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 -
 
V

Victor Reyes

------=_Part_1146_26234819.1125370216928
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

My mistake!=20

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

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

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

Victor Reyes

------=_Part_3781_21354530.1125416058890
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=
=20
not supported by IBM anymore).

Thank you

=20
My mistake!
=20
I now untar it now at /usr/local and executed the example given below, an= d
it worked.
=20
require 'net/http'
Net::HTTP.start('www.example.com <http://www.example.com> <
http://www.example.com/>', 80) { |http|
response =3D http.get('/index.html')
puts response.body
}
=20
Thank you so much for your help. I will run a set of tests tomorrow=20
morning.
=20
Victor
=20

=20

------=_Part_3781_21354530.1125416058890--
 
K

KUBO Takehiro

Victor Reyes said:
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
 
V

Victor Reyes

------=_Part_5211_12318494.1125517885521
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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

Victor

=20

=20
OK.
=20
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)
=20
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 -
=20
users:
PATH=3D$PATH:/usr/local/ruby182/bin
export PATH
=20
ruby182-aix433.tar.gz was configured with patch1, patch2 and
'--prefix=3D/usr/local/ruby182'.
=20
ruby182-aix51.tar.gz and ruby182-aix52.tar.gz were configured with
patch1, '--disable-ipv6' and '--prefix=3D/usr/local/ruby182'.
=20
patch1 and patch2 are got from:
http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/142201
=20
--
KUBO Takehiro
email: (e-mail address removed)
web: http://www.jiubao.org
GnuPG fingerprint =3D 5F7B C8EF CA16 57D0 FDE1 9F47 C001 1F93 AC08 2262
=20

------=_Part_5211_12318494.1125517885521--
 

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
474,176
Messages
2,570,950
Members
47,505
Latest member
BrentonDzo

Latest Threads

Top