01 Nov 2011, 15:59
Generic-user-small

David Lohmeyer (2 posts)

Referring to 16.1: I found evidence from the Passenger developer from December 2010 that it doesn’t work on Windows. When I follow the instructions in the book I also get this:

C:\Users\david.lohmeyer\Desktop\Acton Stuff\Dropbox\Dropbox\rails\depot>passenge
r-install-apache2-module
←[33m←[44m←[1mWelcome to the Phusion Passenger Apache 2 module installer, v3.0.9
.←[0m←[37m←[40m

This installer will guide you through the entire installation process. It
shouldn't take more than 3 minutes in total.

Here's what you can expect from the installation process:

 ←[1m1.←[0m←[37m←[40m The Apache 2 module will be installed for you.
 ←[1m2.←[0m←[37m←[40m You'll learn how to configure Apache.
 ←[1m3.←[0m←[37m←[40m You'll learn how to deploy a Ruby on Rails application.

Don't worry if anything goes wrong. This installer will advise you on how to
solve any problems.

←[1mPress Enter to continue, or Ctrl-C to abort.←[0m←[37m←[40m


--------------------------------------------

←[33m←[44m←[1mChecking for required software...←[0m←[37m←[40m


--------------------------------------------

←[1m←[31mAn error occurred←[0m←[37m←[40m

In order to run certain tests, this program must be able to write temporary
executable files to some directory. However no such directory can be found.
The following directories have been tried:

 * C:/tmp
   This directory's filesystem is mounted with the 'noexec' option.
 * C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/passenger-3.0.9
   This directory's filesystem is mounted with the 'noexec' option.

You can solve this problem by telling this program what directory to write
temporary executable files to.

  Set the $TMPDIR environment variable to the desired directory's filename and
  re-run this program.

Notes:

 * If you're using 'sudo'/'rvmsudo', remember that 'sudo'/'rvmsudo' unsets all
   environment variables, so you must set the environment variable *after*
   having gained root privileges.
 * The directory you choose must writeable and must not be mounted with the
   'noexec' option.

Setting full permissions on those directories doesn’t work either.

Since the book does say the techniques can be used by Windows, I think a Passenger alternative for Windows is necessary.

02 Nov 2011, 11:44
Generic-user-small

Christian (4 posts)

Hey there,

same problem here. I looked it up and found the same quote, you also mentionend (‘We don’t support Windows’). Did you find a suitable alternative?

02 Nov 2011, 14:34
Generic-user-small

David Lohmeyer (2 posts)

I unfortunately (or fortunately, depending on who you ask) switched over to my Mac yesterday to proceed. I was enjoying the handy-ness of doing the book on Windows, which I do most of my work on. I had to setup rvm and do all of that stuff since Macs ship with Ruby 1.8.7.

It looks like mongrel might run on Windows, but as far as I could tell by default it’s a stand-alone version of it (similar to WeBRICK) and not the apache module version. I prefer to have an apache module of some sort since that’s how I would deploy Rails. Hopefully the book provides a Windows alternative to the apache module soon.

12 Oct 2012, 15:39
Infinity_pragsmall

Kacy Hulme (3 posts)

any update on this? i have a mac and a linux machine at home, but i work on windows for my “day job” and would be ideal to get this up and running on my pc so i can fuss around during the day – while i’m supposed to be “working” – any suggestions?

  You must be logged in to comment