# Cannot load such file -- 1.9/http11

**URL:** <https://www.ruby-forum.com/t/cannot-load-such-file-1-9-http11/224198>\
**Category:** Mongrel\
**Created:** [November 2, 2012, 9:30pm UTC](https://www.ruby-forum.com/t/cannot-load-such-file-1-9-http11/224198 "2012-11-02T21:30:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [November 2, 2012, 9:30pm UTC](https://www.ruby-forum.com/t/cannot-load-such-file-1-9-http11/224198/1 "2012-11-02T21:30:15Z")

</div>

Hello,

I have installed the mongrel 1.2.0-pre2 gem into my project.  
But when I do rake db:test:prepare I see this output :

cannot load such file – 1.9/http11

Anyone a idea how to solve this ?

Roelof

---

<div class="post-metadata">

**Author:** ![roelof](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@roelof](https://www.ruby-forum.com/u/roelof)\
**Post date:** [November 2, 2012, 9:33pm UTC](https://www.ruby-forum.com/t/cannot-load-such-file-1-9-http11/224198/2 "2012-11-02T21:33:45Z")

</div>

On Fri, Nov 2, 2012 at 5:21 PM, Roelof W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Hello,
> 
> I have installed the mongrel 1.2.0-pre2 gem into my project.  
> But when I do rake db:test:prepare I see this output :

[http://yourbugreportneedsmore.info/](http://yourbugreportneedsmore.info/)

You don’t say what version of Ruby, Rails and OS are you using.

> cannot load such file – 1.9/http11
> 
> Anyone a idea how to solve this ?

While mongrel might work under Ruby 1.9, I’m not sure it will properly  
work due the changes in threads. Not to mention newer versions of  
Rails.

I personally you move a rack-based web server, like Puma:

> **[A Fast, Concurrent Web Server for Ruby & Rack - Puma](https://puma.io/)**
>
> Puma - A Fast, Concurrent Web Server for Ruby & Rack.

Which uses the same parser from Mongrel and follows a similar philosofy.

## Cheers,

## Luis L. AREA 17

Perfection in design is achieved not when there is nothing more to add,  
but rather when there is nothing more to take away.  
Antoine de Saint-Exupry

---

<div class="post-metadata">

**Author:** ![roelof](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@roelof](https://www.ruby-forum.com/u/roelof)\
**Post date:** [November 2, 2012, 9:52pm UTC](https://www.ruby-forum.com/t/cannot-load-such-file-1-9-http11/224198/3 "2012-11-02T21:52:27Z")

</div>

> > 
> 
> [http://yourbugreportneedsmore.info/](http://yourbugreportneedsmore.info/)
> 
> You don’t say what version of Ruby, Rails and OS are you using.

I’m using on a Fedora Linux machine:

Ruby version : Ruby 1.9.3p286  
Rails : Rails 3.2.8

> I personally you move a rack-based web server, like Puma:
> 
> [http://puma.io/](http://puma.io/)
> 
> Which uses the same parser from Mongrel and follows a similar philosofy.

I will look into this. I’m using mongrel to test a website I make with  
ruby on Rails.  
So it must can work with localhost instead of a real url.

Roelof

---

<div class="post-metadata">

**Author:** ![roelof](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@roelof](https://www.ruby-forum.com/u/roelof)\
**Post date:** [November 2, 2012, 9:57pm UTC](https://www.ruby-forum.com/t/cannot-load-such-file-1-9-http11/224198/4 "2012-11-02T21:57:08Z")

</div>

> > 
> 
> While mongrel might work under Ruby 1.9, I’m not sure it will properly  
> work due the changes in threads. Not to mention newer versions of  
> Rails.
> 
> I personally you move a rack-based web server, like Puma:
> 
> [http://puma.io/](http://puma.io/)
> 
> Which uses the same parser from Mongrel and follows a similar philosofy.

One question : can Puma work together with Cucumber ?

Roelof

---

<div class="post-metadata">

**Author:** ![roelof](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@roelof](https://www.ruby-forum.com/u/roelof)\
**Post date:** [November 2, 2012, 9:59pm UTC](https://www.ruby-forum.com/t/cannot-load-such-file-1-9-http11/224198/5 "2012-11-02T21:59:28Z")

</div>

On Fri, Nov 2, 2012 at 5:56 PM, Roelof W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> One question : can Puma work together with Cucumber ?

The two are completely unrelated. One is a web server while the other  
is a testing/acceptance framework.

I presume you want to test with cucumber your application, right?

## Cucumber will use Rack to connect to your application and test your controllers/stuff. (search the web if you don’t know what is it)

## Luis L. AREA 17

Perfection in design is achieved not when there is nothing more to add,  
but rather when there is nothing more to take away.  
Antoine de Saint-Exupry

---

<div class="post-metadata">

**Author:** ![roelof](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@roelof](https://www.ruby-forum.com/u/roelof)\
**Post date:** [November 2, 2012, 9:59pm UTC](https://www.ruby-forum.com/t/cannot-load-such-file-1-9-http11/224198/6 "2012-11-02T21:59:28Z")

</div>

On Fri, Nov 2, 2012 at 5:50 PM, Roelof W. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> I’m using on a Fedora Linux machine:
> 
> Ruby version : Ruby 1.9.3p286  
> Rails : Rails 3.2.8

I will recommend you use [puma.io](http://puma.io) then. Rails 3 is not properly  
supported by Mongrel.

> I will look into this. I’m using mongrel to test a website I make with ruby  
> on Rails.  
> So it must can work with localhost instead of a real url.

## All web servers work locally (listen/bind to local addresses), not entirely sure if I follow your statement.

## Luis L. AREA 17

Perfection in design is achieved not when there is nothing more to add,  
but rather when there is nothing more to take away.  
Antoine de Saint-Exupry

---

<div class="post-metadata">

**Author:** ![roelof](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@roelof](https://www.ruby-forum.com/u/roelof)\
**Post date:** [November 2, 2012, 10:14pm UTC](https://www.ruby-forum.com/t/cannot-load-such-file-1-9-http11/224198/7 "2012-11-02T22:14:40Z")

</div>

> From: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
> 
> > Rails : Rails 3.2.8
> 
> ## All web servers work locally (listen/bind to local addresses), not entirely sure if I follow your statement.

What I ment is for mongrel to start with capabary I had to insert this  
into env.rb Change Capybara server settingsAdd these lines to  
features/support/env.rb:

Capybara.server\_port = 3001Capybara.app\_host =  
"localhost:3001"Capybara.server do |app, port| require  
‘rack/handler/mongrel’ Rack::Handler::Mongrel.run(app, :Port =\>  
port)endMust I do the same for puma? Roelof \> Luis L.
