pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Rubygems Connectivity Issues



Hello,

On Mon, Apr 30, 2012 at 2:23 AM, Takahiro Kambe 
<taca%back-street.net@localhost> wrote:

> There is code fragement in pkgsrc/lang/ruby193-base/Makefile:
>
> #
> # work around for getaddrinfo(3)
> #
> .if ${OPSYS} == "SunOS" && !empty(OS_VERSION:M5.[6-9])
> CONFIGURE_ARGS+=        --enable-wide-getaddrinfo
> .endif
>
> If you comment out these line and rebuild ruby193-base, would
> something change?

bash-2.05# irb193
irb(main):001:0> require 'socket'
=> true
irb(main):002:0> Socket.gethostbyname('rubygems.org')
=> ["rubygems.org", [], 2, "\xCC\xE8\x95\x1A"]
irb(main):003:0> exit

bash-2.05# gem193 install ohai --no-ri --no-rdoc
Fetching: systemu-2.5.0.gem (100%)
Fetching: yajl-ruby-1.1.0.gem (100%)
Building native extensions.  This could take a while...
sh: make: not found
ERROR:  Error installing ohai:
       ERROR: Failed to build gem native extension.

       /opt/omnibus/bootstrap/bin/ruby193 extconf.rb
creating Makefile

make


Gem files will remain installed in
/opt/omnibus/bootstrap/lib/ruby/gems/1.9.3/gems/yajl-ruby-1.1.0 for
inspection.
Results logged to
/opt/omnibus/bootstrap/lib/ruby/gems/1.9.3/gems/yajl-ruby-1.1.0/ext/yajl/gem_make.out

Thank you.

2 further questions:

1) I've got yajl-ruby to build by symlinking gmake to make....  can
you suggest a better approach?  In the past I've forked gems and
altered extconf.rb, but that's hardly sustainable.
2) What's the recommended way to make ruby193 appear as 'ruby' and
'gem' and 'irb' without the 193 suffix?

S.


Home | Main Index | Thread Index | Old Index