Note that there are some explanatory texts on larger screens.

plurals
  1. POhas anyone tried installing ruby & rubygems from source on ubuntu (preferably unbuntu 9)?
    primarykey
    data
    text
    <p>The Ruby on Rails website recommends installing Ruby from source under Linux. I encountered a number of C library problems building ruby from source on a clean install of Unbuntu 9.</p> <p>All the instructions I found on the net about installing ruby on ubuntu have involved using the prepackaged (.deb-based) ruby. Clearly this isn't what the rails people recommend.</p> <p>When I did a clean source build of ruby I found Rubygems failed to install because the zlib extension didn't work.</p> <p>Two problems occur:</p> <p>1) The zlib extension isn't built.</p> <p>Solution:</p> <p>i) ensure zlib is uncommented in the Setup file within the extn directory of the ruby source, and</p> <p>ii) ensure these zlib ubuntu packages are installed:</p> <pre><code>aptitude install zlib1g aptitude install zlib1g-dbg aptitude install zlib1g-dev aptitude install zlibc </code></pre> <p>2) After fixing Problem 1 above (and doing a clean rebuild of ruby), zlib still doesn't work because the extension fails to load. </p> <p>You can see that the module fails to load by running this and getting the output "false":</p> <pre><code>puts require 'zlib' </code></pre> <p>I observed this happens to any number of other C extensions in the extn directory, so it appears to be a more general problem with these extensions than just something zlib-specific.</p> <p>To summarise:</p> <ul> <li>My build of ruby finds the ruby-specific C zlib extension but it fails to load the zlib module.</li> <li>This behaviour appears to happen to other extensions in /extn.</li> </ul> <p>Is there a way I can find out why a module fails to load? some kind of trace/verbose mode?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload