Closed worr closed 9 years ago
I also have this issue, but finally get it working. from posix_spawn.h then run patch -N < posix_spawn.diff
i got this spawn.h copy this file to $rvm_path/usr/include
Would love to verify posix-spawn is currently compiling + working on OpenBSD so leaving this old issue open for a bit. If you have recent experience w/ OpenBSD please leave a note here.
Hi,
I've successfully installed posix-spawn on OpenBSD 5.6 amd64, running in a Vagrant/VMware Fusion VM (base box: fnichol/openbsd-5.6-amd64
), without fiddling with anything. Details follow:
# uname -a
OpenBSD puffy.localdomain 5.6 GENERIC.MP#333 amd64
Tested with the following rubies:
ftp://ftp.openbsd.org//pub/OpenBSD/5.6/packages/amd64/ruby-1.9.3.545p0.tgz
ftp://ftp.openbsd.org//pub/OpenBSD/5.6/packages/amd64/ruby-2.0.0.481.tgz
ftp://ftp.openbsd.org//pub/OpenBSD/5.6/packages/amd64/ruby-2.1.2.tgz
(IOW, I haven't tried with ports- the VM doesn't have ports installed- so they're all older versions).
For both 1.9.3 and 2.1, I get this output:
Fetching: posix-spawn-0.3.11.gem (100%)
Building native extensions. This could take a while...
Successfully installed posix-spawn-0.3.11
1 gem installed
Installing ri documentation for posix-spawn-0.3.11...
Installing RDoc documentation for posix-spawn-0.3.11...
# echo $?
0
For 2.0, I get this:
# gem20 install posix-spawn
Fetching: posix-spawn-0.3.11.gem (100%)
Building native extensions. This could take a while...
Successfully installed posix-spawn-0.3.11
Parsing documentation for posix-spawn-0.3.11
unable to convert "\xD8" from ASCII-8BIT to UTF-8 for lib/posix_spawn_ext.so, skipping
Installing ri documentation for posix-spawn-0.3.11
1 gem installed
# echo $?
0
Playing around in IRB, posix-spawn seems to be working just fine.
HTH :-)
Works for me. Thanks so much @dsp-eoss!
According to https://github.com/tmm1/pygments.rb/issues/45 and my experience, it doesn't work in OpenBSD 5.6 but it works in 5.7.
Probably caused by the lack of spawn.h in OpenBSD