-
-
Notifications
You must be signed in to change notification settings - Fork 905
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
Compile and bundle Nokogiri and its dependencies (liblzma) #1694
Comments
So you didn't install the |
No. These are the contents of the destination
|
Anyway, I think you may be able to install gem install nokogiri -- --with-zlib-dir=/path/to/vendor/folder |
Nice! I didn't know that |
I'm actually familiar with neither. AFAIK, |
Sounds like this is resolved? I'll close in a few days unless I hear back. |
I had higher priorities, so I parked this issue until the new year. I didn't try it yet, but I hope that Frank's solution works. |
Bumping. @wilsonsilva have you had a chance to try @FranklinYu's suggestion? |
No, @flavorjones. This issue has been deprioritized. I won't work on this for the next month or two. Feel free to close it. |
I have to compile and bundle Nokogiri
v1.7.2
orv1.8.1
and all its dependencies to a single folder on MacOS and a single folder on CentOS. The main reason for this is that on the deployment machine I don't have access to/usr/local/lib
. Everything needs to be self-contained.I compiled the gem using:
But I got this error (I edited the paths for the message to fit without scroll):
Copying
liblzma.5.dylib
to/usr/local/lib/
solves the issue, but it would be great if I could bundle that dependency in the Nokogiri gem folder instead. I tried to copy it to thelib
andext
folders, but it still doesn't work.Is it possible to compile
Nokogiri
with static linking toliblzma
or at least provide a custom location that is not/usr/local/lib
?--enable-static
doesn't work (invalid option: --enable-static
).My system:
The text was updated successfully, but these errors were encountered: