[Mongrel] Windows Server 2003 - Cygwin - Apache 2.0 - Rails 1.2.3 -- httpd.so "permission denied"

Luis Lavena luislavena at gmail.com
Fri Apr 20 22:30:14 EDT 2007


On 4/20/07, Randy Antler <randy.antler at screenplayinc.com> wrote:
> I'm new to Rails and Mongrel and I'm trying to get mongrel running
> for the first time.
>
> I'm running Rails 1.2.3 under Cygwin on Windows Server 2003 (SP1)
> with Apache 2.0. The Rails apps works fine when proxied through
> Apache and running under WebRick, but Mongrel seems unhappy about
> something. The Apache service is running as the "Local System" user
> and I'm starting Mongrel as "ISUser" which is an Active Directory user.
>
> When I invoke the following command:
>
>         mongrel_rails start -h
>
> It returns the following error message:
>
>         /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/lib/http11.so:
> Permission denied - /usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1-mswin32/
> lib/http11.so (LoadError)
>
> Can anyone give me any hints as to what I'm doing wrong and/or how to
> correct the problem?
>

Hi Randy,

It seems you're using ruby from cygwin, and not mswin32 (wich is
one-click installer or barebones distro from ruby-lang.org)

Those environments, even if they are "win", they aren't the same. The
extension (http11.so) is linked against msvcrt-ruby18.dll (ruby\bin
under mswin32 distro).

On cygwin, that file didn't exist (don't remember right now the equivalent).

What I would suggest is uninstall mswin32 version and compile the
"ruby" version of mongrel:

>gem uninstall mongrel

>gem install mongrel -v 1.0.1
(from the list choose the one with ruby platform).

That will trigger build process for native extension (I guess you have
gcc in your cygwin).

If no error is shown, calling mongrel_rails will work as expected.

Regards,

-- 
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi


More information about the Mongrel-users mailing list