Closed dann1 closed 6 years ago
Met the same issue. That's because 18.04 ships with LXC 3.0
and I guess this gem hasn't yet been updated. The build problem at least is fixed in 0eb378c291 but is not yet in a release. I 've done locally the gem fetch, gem unpack, gem spec, add missing line, gem build dance and it seems to build fine. Unsure yet however of how compatible the gem is with LXC 3.x
OK, nice to know, is the gem still supported?
I guess that's a question for @andrenth.
Tried, the local build, it works. However still scared because of the possible death (development stopped almost two years before the last commit)
Hi
There’s LXC 3.0 and also the ruby version update. For example, the error above is about rb_thread_blocking_region
not being found, so I suspect that has to be reviewed too.
Unfortunately I don’t have the time to commit to this review at this moment, but I would gladly accept a PR and release a new version.
For what is worth, I 've been using a locally built ruby gem with an LXC 3.0.1
infrastructure with just the patch from 0eb378c without issues for the last 4 days.
@andrenth, so I've taken a look at rb_thread_blocking_region
and I don't think any change is needed. rb_thread_blocking_region
was removed in Ruby 2.2 and the replacement is supposed to be rb_thread_call_without_gvl
. ruby-lxc
already prefers that to rb_thread_blocking_region
, so it will only be used by older Ruby versions, but even Ruby 1.9 supports rb_thread_call_without_gvl
.
Ok, that's great. I've just pushed version 1.2.3 to rubygems.org :)
Hello, I followed the instructions installing the required packages and when I issue
gem install ruby-gems
I get errors.On Ubuntu 16.04 things work flawlessly