# ERROR for : gem install rails --include-dependencies

**URL:** <https://www.ruby-forum.com/t/error-for-gem-install-rails-include-dependencies/115493>\
**Category:** Rails\
**Created:** [September 25, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/error-for-gem-install-rails-include-dependencies/115493 "2007-09-25T19:33:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shashi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ecb155/32.png) [@shashi](https://www.ruby-forum.com/u/shashi)\
**Post date:** [September 25, 2007, 7:33pm UTC](https://www.ruby-forum.com/t/error-for-gem-install-rails-include-dependencies/115493/1 "2007-09-25T19:33:37Z")

</div>

Hi ,

Iam new to ruby and compiling ruby-1.8.6 on HPUX11i . Iam not able to  
compile it on HPUX :

Compiled without pthread :

Compilation of ruby and gem went smoothly(without pthread), but while  
installing rails using gem Iam getting the below error:

ERROR: While executing gem … (Gem::RemoteFetcher::FetchError)  
getaddrinfo: host nor service provided, or not known(SocketError)

I found socket.sl is having getaddrinfo undef .  
After compiling it with getaddrinfo , It asking for thread support.  
Hence I tried to compile ruby with pthread while compilation Iam struck  
up with below error:

ruby/ruby-1.8.6/lib/shellwords.rb:30:in `shellwords': Argument must be a string (ArgumentError) from ruby/ruby-1.8.6/lib/optparse/shellwords.rb:6 from ruby/ruby-1.8.6/lib/optparse.rb:350:in`call’  
from ruby/ruby-1.8.6/lib/optparse.rb:350:in `conv_arg' from ruby/ruby-1.8.6/lib/optparse.rb:454:in`parse’  
from ruby/ruby-1.8.6/lib/optparse.rb:1259:in `parse_in_order' from ruby/ruby-1.8.6/lib/optparse.rb:1247:in`catch’  
from ruby/ruby-1.8.6/lib/optparse.rb:1247:in `parse_in_order' from ruby/ruby-1.8.6/lib/optparse.rb:1241:in`order!’  
from ruby/ruby-1.8.6/lib/optparse.rb:1332:in `permute!' from ruby/ruby-1.8.6/lib/optparse.rb:1353:in`parse!’  
from ./ext/extmk.rb:258:in `parse\_args’  
from ./ext/extmk.rb:293  
gmake: \*\*\* [all] Error 1

Any help in solving above error would be a great help to me. Please let  
me know can I compile ruby without pthread support.

Thanks in advance,  
Shashi
