winton / stasis

Static sites made powerful
http://stasis.me
MIT License
677 stars 56 forks source link

No such file or directory - posix_spawnp (Errno::ENOENT) #81

Closed marcusx closed 11 years ago

marcusx commented 11 years ago

marcus-macbook:site m.exner$ stasis /usr/local/rvm/gems/ruby-1.9.3-p392/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:187:in_pspawn': No such file or directory - posix_spawnp (Errno::ENOENT) `

Any ideas how to fix this?

winton commented 11 years ago

Judging from this, you need to install the pygments python package:

https://github.com/mojombo/jekyll/issues/361

marcusx commented 11 years ago

Sorry no.

Did you mean gem install pygments.rb or gem install rb-pygments

I have both installed and still get:

` marcus-macbook:site m.exner$ stasis /usr/local/rvm/gems/ruby-1.9.3-p392/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:187:in_pspawn': No such file or directory - posix_spawnp (Errno::ENOENT) from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:187:in pspawn' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:160:inspawn' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:307:in popen4' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/posix-spawn-0.3.6/lib/posix/spawn/child.rb:105:inexec!' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/posix-spawn-0.3.6/lib/posix/spawn/child.rb:80:in initialize' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/albino-1.3.3/lib/albino.rb:87:innew' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/albino-1.3.3/lib/albino.rb:87:in execute' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/albino-1.3.3/lib/albino.rb:91:incolorize' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/albino-1.3.3/lib/albino.rb:73:in colorize' from /Users/m.exner/Projekte/flowconcept/stasis/site/controller.rb:51:inblock (2 levels) in _add' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:239:in block in each' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:238:inupto' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/nokogiri-1.5.6/lib/nokogiri/xml/node_set.rb:238:in each' from /Users/m.exner/Projekte/flowconcept/stasis/site/controller.rb:27:inblock in _add' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/plugins/before.rb:45:in instance_eval' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/plugins/before.rb:45:inblock (2 levels) in before_render' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/plugins/before.rb:43:in each' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/plugins/before.rb:43:inblock in before_render' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/plugins/before.rb:42:in each' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/plugins/before.rb:42:inbefore_render' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/scope.rb:49:in block in _send_to_plugin' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/scope.rb:32:inblock in _each_plugin_method' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/scope.rb:31:in each' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/scope.rb:31:in_each_plugin_method' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/scope.rb:39:in block in _each_plugins_method' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/scope.rb:38:ineach' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/scope.rb:38:in _each_plugins_method' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis/scope.rb:45:in_send_to_plugin' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis.rb:312:in block in trigger' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis.rb:323:ineach' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis.rb:323:in each_priority' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis.rb:311:intrigger' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis.rb:192:in block in render' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis.rb:159:ineach' from /Users/m.exner/Projekte/flowconcept/stasis/lib/stasis.rb:159:in render' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/stasis-0.2.0/bin/stasis:34:in<top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/stasis:23:in load' from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/stasis:23:in

'

``

winton commented 11 years ago

Pygments is a python package, not a gem: http://pygments.org

You have to use easy_install Pygments to install it.

marcusx commented 11 years ago

Judging from this, you need to install the pygments python package:

Ahh - It is an advantage to read properly...

winton commented 11 years ago

No worries, good luck :)