On Aug 17, 2015 6:58 AM, "Simon Ritchie" <simonri...@gmail.com> wrote:
>
> The installation instructions (http://www.nokogiri.org/tutorials/installing_nokogiri.html) describe how to install this gem, but there seems to be a missing step for ubuntu (14.04). I found I had to install ruby-dev first:
>
> sudo apt-get install ruby-dev
>
> Without that step, installation fails at the compilation stage, probably due to missing headers. It' impossible to figure out what's wrong from the error message, in fact there are many potential causes, which can lead to many hours of fruitless experimentation.
It honestly has never occurred to me that people would not have Ruby development tools installed. `ruby-dev` or equivalent is required to build C extensions, and so I'll unhelpfully assert that whatever tutorial you're following for installing Ruby is lacking appropriate information.
That said, I'll go update the docs now, because this just happened.
>
> Rails now depends on nokogiri - if you try to install rails it installs nokogiri and fails at the same point, so this is a show-stopper for new installations of rails under the current Ubuntu.
>
> Also, I understand that nokogiri can only be installed using certain versions of ruby - I installed the latest Ruby (2.2.2) from source and than had to roll it back to 1.9 to install nokogiri.
This is patently false (for non-Windows platforms). If you are having issues installing Nokogiri, please start a new thread on this mailing list with details including your mkmf.log file.
Where did you hear this information?
>
> Can the installation instructions be updated to cover these issues?
>
> Simon
>
> --
> You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
> To post to this group, send email to nokogi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/nokogiri-talk.
> For more options, visit https://groups.google.com/d/optout.
The installation instructions (http://www.nokogiri.org/tutorials/installing_nokogiri.html) describe how to install this gem, but there seems to be a missing step for ubuntu (14.04). I found I had to install ruby-dev first:sudo apt-get install ruby-devWithout that step, installation fails at the compilation stage, probably due to missing headers. It' impossible to figure out what's wrong from the error message, in fact there are many potential causes, which can lead to many hours of fruitless experimentation.
Rails now depends on nokogiri - if you try to install rails it installs nokogiri and fails at the same point, so this is a show-stopper for new installations of rails under the current Ubuntu.Also, I understand that nokogiri can only be installed using certain versions of ruby - I installed the latest Ruby (2.2.2) from source and than had to roll it back to 1.9 to install nokogiri.Can the installation instructions be updated to cover these issues?Simon
--
--
This is probably because of a missing dependency in RVM, already filed here: https://github.com/rvm/rvm/issues/3509#issuecomment-139915004
Try
sudo apt-get install libgmp-dev
to install this dependency.
--
Regards,
Lars