Randy Antler
2007-Apr-20 22:20 UTC
[Mongrel] Windows Server 2003 - Cygwin - Apache 2.0 - Rails 1.2.3 -- httpd.so "permission denied"
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? Many thanks in advance!
Luis Lavena
2007-Apr-21 02:30 UTC
[Mongrel] Windows Server 2003 - Cygwin - Apache 2.0 - Rails 1.2.3 -- httpd.so "permission denied"
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
Possibly Parallel Threads
- Windows Server 2003 - Cygwin - Apache 2.0 - Rails 1.2.3 -- httpd.so "permission denied" (Luis Lavena)
- Rails, Ubuntu dapper & Mongrel > uninitialized constant Mongrel::HttpHandler error
- Win32 Gem Dependencies
- Mongrel install/compile problems on Ubuntu dapper
- "mongrel_rails --version" reporting 1.1.2 instead of 1.1.3