cups icon indicating copy to clipboard operation
cups copied to clipboard

cups.so: undefined symbol: httpConnect2

Open vkeziah opened this issue 9 years ago • 8 comments

I am getting the above error , please let me know what is the issue

vkeziah avatar Apr 17 '15 13:04 vkeziah

Its exactly when I am issuing page.print

vkeziah avatar Apr 17 '15 13:04 vkeziah

Same issue here

konung avatar May 21 '15 20:05 konung

any info about ruby version, platform?

m0wfo avatar Jun 02 '15 09:06 m0wfo

Sorry just noticed request I since moved to another library. - this was on a Debian 7.8 Vagrant VM using rbenv to install ruby 2.2.1

konung avatar Jun 25 '15 20:06 konung

@konung What library were you able to move to?

bigtunacan avatar Aug 05 '15 21:08 bigtunacan

Same problem here. I believe this might be the issue: https://www.cups.org/documentation.php/doc-1.7/api-httpipp.html#httpConnect

Looks like httpConnect2 wasn't added until cups 1.7 and I'm on 1.6.2.

tonylegrone avatar Sep 03 '15 17:09 tonylegrone

I found a workaround for cups < 1.7.

I was checking out the history of ext/cups.c and found that httpConnect2 was added in commit 26c372d to remove deprecated code. So I tried selecting it's parent commit in my Gemfile and it totally worked.

gem 'cups', :git => 'https://github.com/m0wfo/cups.git', :ref => 'e538da7'

tonylegrone avatar Sep 03 '15 18:09 tonylegrone

@bigtunacan I'm using gem 'cupsffi', require: 'cupsffi'

konung avatar Oct 26 '15 05:10 konung