You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ gem install cups
ERROR: Error installing cups:
ERROR: Failed to build gem native extension.
/home/morman/.rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
checking formain()in -lcups... yes
checking for cups-config... yes
cups version:
1.7rc1
creating Makefile
make
compiling cups.c
In file included from ./ruby_cups.h:9:0,
from cups.c:1:
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/backward/st.h:2:2: warning: #warning use "ruby/st.h" instead of bare "st.h" [-Wcpp]#warning use "ruby/st.h" instead of bare "st.h"
^
In file included from /home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/ruby.h:1383:0,
from /home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby.h:32,
from ./ruby_cups.h:8,
from cups.c:1:
cups.c: In function‘cups_get_device_uri’:
cups.c:469:31: error: dereferencing pointer to incomplete typereturn rb_str_new2(attr->values[0].string.text);
^
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/intern.h:738:27: note: in definition of macro ‘rb_str_new_cstr’
(__builtin_constant_p(str)) ? \
^
cups.c:469:15: note: in expansion of macro ‘rb_str_new2’
return rb_str_new2(attr->values[0].string.text);
^
cups.c:469:31: error: dereferencing pointer to incomplete typereturn rb_str_new2(attr->values[0].string.text);
^
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/intern.h:739:14: note: in definition of macro ‘rb_str_new_cstr’
rb_str_new((str), (long)strlen(str)): \
^
cups.c:469:15: note: in expansion of macro ‘rb_str_new2’
return rb_str_new2(attr->values[0].string.text);
^
cups.c:469:31: error: dereferencing pointer to incomplete typereturn rb_str_new2(attr->values[0].string.text);
^
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/intern.h:739:33: note: in definition of macro ‘rb_str_new_cstr’
rb_str_new((str), (long)strlen(str)): \
^
cups.c:469:15: note: in expansion of macro ‘rb_str_new2’
return rb_str_new2(attr->values[0].string.text);
^
cups.c:469:31: error: dereferencing pointer to incomplete typereturn rb_str_new2(attr->values[0].string.text);
^
/home/morman/.rubies/ruby-1.9.3-p448/include/ruby-1.9.1/ruby/intern.h:740:18: note: in definition of macro ‘rb_str_new_cstr’
rb_str_new_cstr(str); \
^
cups.c:469:15: note: in expansion of macro ‘rb_str_new2’
return rb_str_new2(attr->values[0].string.text);
^
make: *** [cups.o] Error 1
Gem files will remain installed in /home/morman/.gem/ruby/1.9.3/gems/cups-0.1.7 for inspection.
Results logged to /home/morman/.gem/ruby/1.9.3/gems/cups-0.1.7/ext/gem_make.out
Any ideas? Gem is not compatible with CUPS 1.7? Or is it a ruby version 1.9.3-p448 issue?
The text was updated successfully, but these errors were encountered:
Installing a gem I'm receiving following output:
Any ideas? Gem is not compatible with CUPS 1.7? Or is it a ruby version 1.9.3-p448 issue?
The text was updated successfully, but these errors were encountered: