Question

I want to use ruby-2.0.0-p247 in OpenBSD-5.2 that works on QEMU.

And, I want to use rbenv and ruby-install for installing ruby.

Okay, I installed rbenv and ruby-install into my OpenBSD-box. But, I've seen an error when building ruby.

# rbenv install ruby-2.0.0-p247

Why I've seen it? Tell me please.

Best regards.

::: Postsctipt :::

  • I don't want use Vagrant because some cause.
Was it helpful?

Solution

From your link it seems that the problem is that rbenv expects GNU sed but on openbsd the default BSD sed implementation conforms to a superset of POSIX.2 and it doesn't use any fancy regular expressions like GNU sed.

But in any case you can edit rbenv to call gsed (or alias it?). you can install that through ports or pkgs . The port resides in /usr/ports/textproc/gsed . to understand the differences check the package info listing:

GNU sed isn't really a true text editor or text processor. Instead, it is used to filter text, i.e., it takes text input and performs some operation (or set of operations) on it and outputs the modified text. Sed is typically used for extracting part of a file using pattern matching or substituting multiple occurrences of a string within a file.

OTHER TIPS

Thanks to Casper and ramrunner.

Just I tried to build ruby by hand, but I see same result.

./configure --prefix=/usr/local && make && make install > /tmp/build.log 2>&1

I'll try to install gsed, and alias it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top