-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Issues installing the 'nokogiri' gem #81
Comments
@ashishtibrewal, i'm looking this. Thank you for reporting the problem. |
I managed to get it to work using the following: When running
This uses the default libxml2 and libxslt libraries that come with the nokogiri gem and the linker generates the errors because it is unable to resolve some symbols (this can be seen above). Instead, I tried using the system libxml2 (and libxslt) libraries installed in |
@ashishtibrewal, sorry about the delay. Thank you again for reporting the problem. |
Did you solve this? Can you run jekyll without problems? |
Yes, I did. 😃 There's no problems with your repository or Jekyll (and they both work perfectly on my system now), it's something to do with the dependencies of gems listed in your Gemfile. The problems arose when running
There's been numerous issues regarding this that have been reported previously, both on GitHub and StackOverflow.
You should also have a look at the official documentation. This provides detailed information on the installation procedure for Nokogiri on different systems. P.S. I've never programmed in Ruby at all. 😝 I actually spent a few hours trying to fix this issue. 🙈 |
Thank you for this list of reported issues. I think if someone get this same problem, they can take a look in this issue to see how to solve looking on these links. I'm putting this in the readme, in the "how to" section. Thank you for reporting that! If you have any other problems, just tell me! |
FYI @sergiokopplin I had to go through quite a bit of pain to get this up and running on my El Capitan Macbook. I did a write-up of my success recipe in case it helps others: https://gist.github.com/AGresvig/31f780b85394612957e7af44bc29837d |
I also had a lot of pain getting this up on running on windows via Vagrant + VirtualBox. I plan on putting together a polished Vagrant package that should make this easier for all users. I have an early version here, but that version isn't really stable yet. Related - replace Stylus with SASS@sergiokopplin one more thing which is kind of related, all this pain to ensure a setup MUST be done because of the need to use stylus, which also means you can't update any css without working with your full dev environment. I am in a unique situation where most of the day I can only use the Github website (can't install any dev software), so I wanted to be able to fully edit the site without needing to recompile on my own computer. I realized that Jekyll has SASS support build in, so I converted the entire styling to using SASS on my fork (I have not yet filled in any template to that fork). GitHub pages can even inline the sass after compiling it, so the template works just as slick as before but is less dependent on external libraries. I don't know if you would consider making this shift, but I believe that it would be very helpful for users if they could have a version of the template that requires NO development environment setup, they can just edit via github.com, or edit/upload files directly with git and let the server do all the compiling. I've been making a lot of changes to the template while assembling my own site, but I'm trying to keep track of the improvements I'm making so I can break them out back to the template for others to use. |
@jehartzog i'm moving this to another issue ok? I guess we have to talk about! |
Had similar issues. This tidbit was what made bundle install succeed. I tried several of the solutions above and they just weren't coming together. This one made it possible. bundle config build.nokogiri --use-system-libraries=true --with-xml2-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/libxml2
bundle install |
This is what worked for me (Lubuntu 16.04.2).
|
I managed to work this on macOS sierra v10.12 by: |
Hi @sergiokopplin and other Indigo users !
I followed all the necessary step as mentioned in the README.md file but I haven't been able to install the 'nokogiri' gem. I know that its prerequisites are libxml2 (Macports link) and libxslt (Macports link). I've installed these prerequisites using the MacPorts package manager.
I'm running on the following system:
Operating System: OS X El Capitan 10.11.3
Ruby: ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]
RubyGems: version 2.6.2
Node.js: version v4.2.6
npm: version 2.14.17
jekyll: jekyll 3.1.2
bundler: Bundler version 1.11.2
Any help would be much appreciated.
Thanks.
Ashish
P.S. I get the following error - it still says libxml2 is missing even though I've installed it. Is there a workaround this?
The text was updated successfully, but these errors were encountered: