Comments (11)
Having /usr/include/ruby/encoding.h
is unusual and it seems something is seriously broken with your installation.
Ruby's header files should be placed inside each version specific directory and must not be globally exposed.
from ruby-unf_ext.
Solution: Just remove /usr/include/ruby/
. If it was installed by some package, ask the vendor to fix it.
from ruby-unf_ext.
Maybe there are also /usr/include/ruby.h
and /usr/lib/libruby*
, which may as well be moved away.
from ruby-unf_ext.
Ah ha! I have ruby 1.8.7 installed into /opt/rubies/ruby-1.8.7-p371
. For some reason extconf
isn't finding it's headers, but instead using system's ruby headers.
from ruby-unf_ext.
Ah there is no encoding.h
in /opt/rubies/ruby-1.8.7-p371/lib/ruby/1.8/x86_64-linux/
.
from ruby-unf_ext.
ruby/encoding.h
was introduced in ruby 1.9.
And ruby never installs its header files directly under /usr/include unless wrongly configured.
from ruby-unf_ext.
It appears have_header('ruby/encoding.h')
in ext/unf/extconf.rb
is causing -DHAVE_RUBY_ENCODING_H
to be passed in, and thus ruby/encoding.h
get's included in. You should probably also check the version of Ruby, since ruby/encoding.h
should never be included for Ruby 1.8.x.
from ruby-unf_ext.
This is a bug of the ruby-devel rpm. I'll bug report the issue when I feel like it.
There are many other modules that do have_header("ruby/...") in their extconf.rb, so it doesn't help if I only "fix" my module.
from ruby-unf_ext.
Confirmed. I renamed /usr/include/ruby
to /usr/include/ruby-1.9.1
and the module compiled.
from ruby-unf_ext.
Just filed a bug report: https://bugzilla.redhat.com/show_bug.cgi?id=245446
Thanks for the report. I wouldn't notice the issue if it weren't for this.
from ruby-unf_ext.
The URL I posted above was a wrong one. Follow this instead: https://bugzilla.redhat.com/show_bug.cgi?id=975660
from ruby-unf_ext.
Related Issues (20)
- unable to install unf_ext from gem HOT 3
- Gem compile fails
- Gem install fail / Rails 5 / segmentation fault HOT 1
- Build Errors HOT 6
- Ruby 2.6 x86-mingw32 support HOT 5
- Release current master please HOT 1
- Build fails if using Xcode 11 toolchain HOT 4
- Latest version doesn't contain a binary for Windows HOT 5
- Do a 1.0.0 release?
- Is version 0.0.7.7 a legitimate release? HOT 2
- Push tag v0.0.7.7 HOT 3
- Failing to compile on macOS/Ruby 2.7.1 but not sure why HOT 7
- Building fails with Mac 14, Xcode 11.2, ruby 2.3.7 HOT 1
- Installation fails in Docker and Ruby 3 preview HOT 1
- update to support ruby 3.0 HOT 5
- Failing to build on ARM64 Linux (Apple M1 running Debian in a VM) HOT 4
- Please add support for Ruby 3.1 HOT 5
- Can't install 0.0.8.1-x64-mingw32 in ruby 3.1 HOT 7
- Can't install 0.0.8.2 on Windows HOT 2
- 0.0.8.2 binary builds seemed to be tagged as "beta"? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-unf_ext.