Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cups gem install fails "Failed to build gem native extension" on Mac OSX Mavericks. #15

Closed
bigtunacan opened this issue Dec 3, 2013 · 8 comments

Comments

@bigtunacan
Copy link
Contributor

ERROR: Error installing cups:
ERROR: Failed to build gem native extension.

/Users/me/.rvm/rubies/ruby-1.8.7-p374/bin/ruby extconf.rb

checking for main() in -lcups... yes
checking for cups-config... yes
cups version:
1.7.0
creating Makefile

make
/usr/bin/clang -I. -I. -I/Users/me/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/1.8/i686-darwin13.0.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -c cups.c
In file included from cups.c:1:
./ruby_cups.h:6:12: fatal error: 'ruby/st.h' file not found
#include <ruby/st.h>
^
1 error generated.
make: *** [cups.o] Error 1

Gem files will remain installed in /Users/me/.rvm/gems/ruby-1.8.7-p374@uiris3/gems/cups-0.1.5 for inspection.
Results logged to /Users/me/.rvm/gems/ruby-1.8.7-p374@uiris3/gems/cups-0.1.5/ext/gem_make.out
Building native extensions. This could take a while...

@m0wfo
Copy link
Owner

m0wfo commented Dec 4, 2013

I think this is an issue w/ cups 1.7.* on all platforms; there's a patch that's been merged, and I will bump the gem version today, promise!

@bigtunacan
Copy link
Contributor Author

I pointed to master and tried a bundle install and I'm still getting the same errors.

@bigtunacan
Copy link
Contributor Author

Any update on this?

@bigtunacan
Copy link
Contributor Author

Been about 6 months now; any chance this will get fixed?

@bigtunacan
Copy link
Contributor Author

I cloned the repo to try and look at this issue and found out it is only happening if you point to the gem on rubygems or git. When referencing a local path it appears to install ok.

@m0wfo
Copy link
Owner

m0wfo commented May 28, 2014

@bigtunacan glad you found a partial solution; sorry but I'm not using this gem right now and don't have time to do anything other than test PRs.

@m0wfo m0wfo closed this as completed May 29, 2014
@bigtunacan
Copy link
Contributor Author

I'm submitting a pull request that fixes this issue and have tested for backwards compatibility to Ruby 1.8.7 on Mac OSX Lion.

This also fixes issue #12

@bigtunacan
Copy link
Contributor Author

@m0wfo If you could bump the version and update this on rubygems that would be greatly appreciated.

m0wfo added a commit that referenced this issue Jun 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants