"spawn.h not found" when installing octopress on Cygwin

I am trying to install octopress on cygwin. I have googled, but to no avail. I hope someone can suggest hacking (as it were difficult) to solve this problem.

I followed the instructions for installing octopress . Everything went smoothly until the bundle install stage. When I get to this point, the installation completes with an error saying that it cannot find spawn.h .

I searched and apparently spawn.h did not fall into any of the cygwin libraries. I installed all the C ++ libraries that I could use from the cygwin installation, but that didn't help.

Can you help solve this problem?

+4
source share
1 answer

I think the stone that fails in this process is posix-spawn . To do this, you can install the pearl locally:

 $ gem install rake-compiler -v 0.7.6 $ git clone git://github.com/rtomayko/posix-spawn.git $ cd posix-spawn $ rake gem $ cd pkg/posix-spawn-0.3.6 $ gem install --local posix-spawn-0.3.6.gem 

Explanation (from the article I found):

There is an error in the posix-spawn version in gem stores, however this makes it impossible to install using gem on Cygwin

After that, try bundle install again, it should be successful.

Here is the related issue GitHub project


UPDATE I recently installed scoop command-line installer for Windows, a fairly simple setup. I installed Ruby, bundler and octopress without breaking a sweat. You must try.

+6
source

All Articles