Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

POpen4 #15

Closed
nesizer opened this Issue Apr 20, 2011 · 6 comments

Comments

Projects
None yet
5 participants

nesizer commented Apr 20, 2011

the use of POpen4 makes it impossible to use on windows with ruby 1.9.2 even with the win32-open3-19 gem
and on 1.8.7 it just says "no such file or directory" when try to execute this code

require "yui/compressor"
compressor = YUI::JavaScriptCompressor.new
compressor.compress('(function () { var foo = {}; foo["bar"] = "baz"; })()')

nesizer commented Apr 20, 2011

forgot to say i'm on windows 7 x64

nesizer commented Apr 20, 2011

it looks like it a windows 64bit problem just try it on windows 32bit machine and ruby 1.8.7 and it works

Owner

sstephenson commented Apr 20, 2011

I'd suggest taking this up with the POpen4 project, then. (That was the whole idea behind using it.)

Alternatively, upgrade to a better OS ;)

kibblr commented Sep 23, 2011

a) it's happening under linux too and b) popen4 seems to be abandoned and hasn't had an update in 5 years.

/usr/lib/ruby/gems/1.8/gems/POpen4-0.1.4/lib/popen4.rb:81: [BUG] Segmentation fault

ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]

& all the way up to 1.8.7p352

  1. documentcloud/jammit#166
  2. http://groups.google.com/group/diaspora-dev/browse_thread/thread/0a15dd84b0626513
  3. https://gist.github.com/1016667

pietia commented Oct 17, 2011

Same here , OSX

Collaborator

stevecrozz commented Jul 15, 2013

Agreed. POpen4 doesn't really deliver on its promise to:
"provides the Rubyist a single API across platforms for executing a command in a child process with handles on stdout, stderr, stdin streams as well as access to the process ID and exit status"

You'll be happy to know that I've dropped this gem's dependence on POpen4 by merging a nice pull request from @kares: #14

@stevecrozz stevecrozz closed this Jul 15, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment