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

Update binaries to the 0.12.1 #15

Merged
merged 3 commits into from
Sep 11, 2014
Merged

Update binaries to the 0.12.1 #15

merged 3 commits into from
Sep 11, 2014

Conversation

tbugai
Copy link
Contributor

@tbugai tbugai commented Sep 4, 2014

This PR upgrades the binaries to be version 0.12.1. This is a stop gap to get things rolling until a better update process (per the conversation in issue #13).

@tbugai tbugai mentioned this pull request Sep 4, 2014
@tbugai
Copy link
Contributor Author

tbugai commented Sep 5, 2014

Hold off on this. The linux binaries don't include libjpeg so they would blow up on heroku. Looking for a fix.

@nengxu
Copy link

nengxu commented Sep 5, 2014

+1 for updating to the latest binary. In my project, we need the new version for pagination in pdf.

@tbugai Thanks for your PR. I just downloaded the binary and replaced the old one in the gem. It seems working fine.

@thotmx
Copy link
Contributor

thotmx commented Sep 7, 2014

+1. Thanks a lot @tbugai. I'll try it.@zakird, is there a chance to merge in master?

@tbugai
Copy link
Contributor Author

tbugai commented Sep 8, 2014

This should be good to go. Can we get it merged and an new gem released @zakird?

@thotmx
Copy link
Contributor

thotmx commented Sep 8, 2014

+1
El sep 8, 2014 9:58 a.m., "Tim Bugai" notifications@github.com escribió:

This should be good to go. Can we get it merged and an new gem released
@zakird https://github.com/zakird?


Reply to this email directly or view it on GitHub
#15 (comment)
.

@zakird
Copy link
Owner

zakird commented Sep 8, 2014

@butzopower do you have any concerns

@thotmx
Copy link
Contributor

thotmx commented Sep 9, 2014

I've replaced the binary file in the locally installed gem with @tbugai binary, renamed it, and it works.

@rewish
Copy link

rewish commented Sep 11, 2014

Hi, This binary need dependent libraries.

Ubuntu 14.04 64bit

sudo apt-get install libjpeg-dev libfontconfig-dev libjpeg62

Ubuntu 14.04 32bit

sudo apt-get install libjpeg-dev libfontconfig-dev

CentOS 6.3 64bit

sudo yum install libjpeg libpng libXrender fontconfig

CentOS 6.3 32bit

wkhtmltopdf_linux_x86 -V
#=> wkhtmltopdf_linux_x86: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

sudo yum install libjpeg.so.8
#=> No package libjpeg.so.8 available.

OMG, dependent libraries does not exist in the standard RPM repositories of CentOS...

Do you have a solution?

@thotmx
Copy link
Contributor

thotmx commented Sep 11, 2014

@rewish

Did you install libjpeg on your 32 bit CentOS 6.3 system?

Maybe there is another version like libjpeg.so.62 installed.

Maybe, you could try creating a symbolic link to the other library.

ln -s /usr/lib/libjpeg.so.8  /usr/lib/libjpeg.so.62

On Thu, Sep 11, 2014 at 11:24 AM, Hiroshi Hoaki notifications@github.com
wrote:

Hi, This binary need dependent libraries.
Ubuntu 14.04 64bit

sudo apt-get install libjpeg-dev libfontconfig-dev libjpeg62

Ubuntu 14.04 32bit

sudo apt-get install libjpeg-dev libfontconfig-dev

CentOS 6.3 64bit

sudo yum install libjpeg libpng libXrender fontconfig

CentOS 6.3 32bit

wkhtmltopdf_linux_x86 -V
#=> wkhtmltopdf_linux_x86: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

sudo yum install libjpeg.so.8
#=> No package libjpeg.so.8 available.

OMG, dependent libraries does not exist in the standard RPM repositories
of CentOS...

Do you have a solution?


Reply to this email directly or view it on GitHub
#15 (comment)
.

Hermes Ojeda Ruiz
LogicalBricks Solutions
http://logicalbricks.com

@butzopower
Copy link
Collaborator

@zakird @tbugai I think this all looks fine. I currently don't have any projects that use wkhtmltopdf, but I know a team that does and I'll have them try this out before we do a release on rubygems.

I think we'll want to create a README and let people know what libraries they'll need for their distribution. Also, as I'm not sure of any backwards incompatible changes that may have been made in the wkhtmltopdf binary from 0.9 to 0.12, it may be good that we note in our README that if people are seeing issues they can point to the old gem.

butzopower added a commit that referenced this pull request Sep 11, 2014
@butzopower butzopower merged commit 91ff4eb into zakird:master Sep 11, 2014
@rewish
Copy link

rewish commented Sep 11, 2014

@thotmx

I tried:

ln -s /usr/lib/libjpeg.so.62 /usr/lib/libjpeg.so.8

wkhtmltopdf_linux_x86 -V
#=> /path/to/wkhtmltopdf_linux_x86: /usr/lib/libjpeg.so.8: version `LIBJPEG_8.0' not found (required by /path/to/wkhtmltopdf_linux_x86)
#=> /path/to/wkhtmltopdf_linux_x86: /lib/libc.so.6: version `GLIBC_2.15' not found (required by /path/to/wkhtmltopdf_linux_x86)

It does not seem to work because the version is different...

@thotmx
Copy link
Contributor

thotmx commented Sep 12, 2014

@rewish
That's a big problem. Maybe you could compile the library by hand, but I don't like it.

@rewish
Copy link

rewish commented Sep 13, 2014

@thotmx
Me, too. I've created a new issue #19.

Soulou pushed a commit to Scalingo/wkhtmltopdf-gem that referenced this pull request Oct 30, 2014
tioteath pushed a commit to magnet-team/wkhtmltopdf-binary that referenced this pull request Jul 28, 2020
parallel588 pushed a commit to parallel588/wkhtmltopdf_binary_gem that referenced this pull request May 20, 2021
parallel588 pushed a commit to parallel588/wkhtmltopdf_binary_gem that referenced this pull request May 20, 2021
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

Successfully merging this pull request may close these issues.

None yet

6 participants