gem install nokogiri -v '1.5.11' failed due to make: /usr/local/bin/gmkdir: No such file or directory
I noticed the error message said: make: /usr/local/bin/gmkdir: No such file or directory
.
I searched this in google and found a similar post but for cocopods: https://coderwall.com/p/ehijxg/fixing-error-installing-cocoapods-on-macos
The following commands solved my problem. If you have a different error message, please refer to http://www.nokogiri.org/tutorials/installing_nokogiri.html
Homebrew
brew install coreutils
gem install nokogiri -v '1.5.11'
MacPorts
sudo port install coreutils
gem install nokogiri -v '1.5.11'
Why does installing Nokogiri on Mac OS fail with libiconv is missing?
I had the same issue. Unfortunately the "Installing Nokogiri" doesn't cover Iconv issues. Here's how I resolved the issue.
First install homebrew, it'll make your life easier. If you already have it installed, be sure to grab the latest formulae by updating like so:
brew update
Note: In OSX 10.9+ you may need to install xCode command tools to allow you to install libiconv.
xcode-select --install
then install a newer version of libiconv
brew install libiconv
then install your gem
gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.14
Why does installing Nokogiri on Mac OS fail with libiconv is missing?
I had the same issue. Unfortunately the "Installing Nokogiri" doesn't cover Iconv issues. Here's how I resolved the issue.
First install homebrew, it'll make your life easier. If you already have it installed, be sure to grab the latest formulae by updating like so:
brew update
Note: In OSX 10.9+ you may need to install xCode command tools to allow you to install libiconv.
xcode-select --install
then install a newer version of libiconv
brew install libiconv
then install your gem
gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.14
Why does installing Nokogiri on Mac OS fail with libiconv is missing?
I had the same issue. Unfortunately the "Installing Nokogiri" doesn't cover Iconv issues. Here's how I resolved the issue.
First install homebrew, it'll make your life easier. If you already have it installed, be sure to grab the latest formulae by updating like so:
brew update
Note: In OSX 10.9+ you may need to install xCode command tools to allow you to install libiconv.
xcode-select --install
then install a newer version of libiconv
brew install libiconv
then install your gem
gem install nokogiri -- --with-iconv-dir=/usr/local/Cellar/libiconv/1.14
How to use parameter variable in xslt
Remove the apostrophes from around the $TotalFare. The last XPath should look like this: /FareSearchResponse/CompleteItineraryFares/AirFare[@Total = $TotalFare]/JourneyLegKeys/Key[1]
Inside of an XPath expression, you only use apostrophes for literals.
How to use parameter variable in xslt
Remove the apostrophes from around the $TotalFare. The last XPath should look like this: /FareSearchResponse/CompleteItineraryFares/AirFare[@Total = $TotalFare]/JourneyLegKeys/Key[1]
Inside of an XPath expression, you only use apostrophes for literals.
Related Topics
How to Build Ruby 2.1.3 on Osx 10.10 Gm 3.0 with Rbenv
Rotating Letters in a String So That Each Letter Is Shifted to Another Letter by N Places
Ruby Private Attr_Accessor and Unexpected Nil
Scraping a Site That Requires Login Username and Password on Two Separate Pages
Using Delta Indexes for Associations in Thinking Sphinx
Parsing Xls Spreadsheet in Rails Using Roo Gem
How to Access a Symbol Hash Key Using a Variable in Ruby
Do I Need to Indent My Code in Ruby
How to Call Methods Defined in Applicationcontroller in Models
Encoding Issues in JavaScript Files Using Rails Asset Pipeline
Transliteration with Iconv in Ruby
Undefined Method 'Require_Relative' for Main:Object (Nomethoderror)
Generating a Race Condition with Mri
Closures and for Loops in Ruby
Ruby/Rails - How to Validate Against Decimal Scale
Updating from Rails 4.0 to 4.1 Gives SASS-Rails Railties Version Conflicts