title: Ruby 1.9.3 + Rails on Solaris 10 - libyaml is missing
body: <p>I'm trying to install Ruby on Rails on Solaris 10 box. I managed to build Ruby 1.9.3 from source and I installed gems but when I run gem command every time I get this message:</p>
  
  <pre><code># gem list
  /usr/local/lib/ruby/1.9.1/yaml.rb:56:in `&lt;top (required)&gt;':
  It seems your ruby installation is missing psych (for YAML output).
  To eliminate this warning, please install libyaml and reinstall your ruby.
  </code></pre>
  
  <p>This is really anoying :)</p>
  
  <p>So I tried to rebuild Ruby and here is what I noticed in the output of make.</p>
  
  <pre><code>configuring psych
  libyaml is missing. Please install libyaml.
  Failed to configure psych. It will not be installed.
  </code></pre>
  
  <p>I found the extconf.rb script that checks for that and I tried to run it manually:</p>
  
  <pre><code># pwd
  /root/pub/ruby-1.9.3-p194/ext/psych
  #
  # irb --simple-prompt
  &gt;&gt; require 'mkmf'
  =&gt; true
  &gt;&gt; find_header 'yaml.h'
  checking for yaml.h... yes
  =&gt; true
  &gt;&gt; find_library 'yaml', 'yaml_get_version'
  checking for yaml_get_version() in -lyaml... yes
  =&gt; true
  &gt;&gt; exit
  </code></pre>
  
  <p>Apparently extconf.rb could find libyaml but make could not. So I'm puzzled why make does not find it. Any thoughts?</p>