Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It looks like <a href="https://web.archive.org/web/20130121164448/http://isitruby19.com/mongrel" rel="nofollow noreferrer">other people are having problems running Mongrel</a> on Ruby 1.9.</p> <p>The comment by Ami Mahloof seems like it might be a possible fix:</p> <blockquote> <p>Here’s What you need to do in order to fix it</p> <p>here’s the updated instructions:</p> <p>1) cd /usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/ext/http11</p> <p>2) sudo vi / mate on http11.c and:</p> <p>replace line 77 with</p> <p>for(ch = RSTRING_PTR(f), end = ch + RSTRING_LEN(f); ch &lt; end; ch++) {</p> <p>replace line 172 with</p> <p>colon = strchr(RSTRING_PTR(temp), ':');</p> <p>replace line 174 with</p> <p>rb_hash_aset(req, global_server_name, rb_str_substr(temp, 0, colon - RSTRING_PTR(temp)));</p> <p>replce line 176,177</p> <p>rb_str_substr(temp, colon - RSTRING_PTR(temp)+1, RSTRING_LEN(temp)));</p> <p>replace lines 298 299</p> <p>dptr = RSTRING_PTR(data);</p> <p>dlen = RSTRING_LEN(data);</p> <p>3) save the file, close the vi / textmate</p> <p>4) sudo ruby extconf.rb &amp;&amp; sudo make &amp;&amp; sudo make install</p> <p>5) cd ../../lib/mongrel (or the full path “/usr/local/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5/lib/mongrel”</p> <p>6) mate / sudo vi handlers.rb</p> <p>7) fix the case statements in</p> <p>On lines 208-212, change instances of “: false” to “then false”</p> <p>8) sudo gem install gem_plugin (else mongrel may hang)</p> <p>done!</p> </blockquote>
 

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