Nokogiri 1.6.8.1 Ruby 2.3.1 failing to install on Heroku

440 views
Skip to first unread message

William Flanagan

unread,
Oct 25, 2016, 12:04:37 PM10/25/16
to nokogiri-talk
Hey all,

I've beat my head against the wall for more than a week on this.  

Our app was recently upgraded to Ruby 2.3.1.  In trying to deploy to Heroku, it's failing to install Nokogiri 1.6.8.1.  We are using the standard buildpack.  Before the buildpack, we are using the https://github.com/heroku/heroku-buildpack-apt to install all the dependencies listed below.  But, it still fails looking for libxml2.  

Heroku support has been basically non-existent. I'm stuck. Can't deploy, and production that needs patches hasn't been deployed in OVER a month. 

This runs fine in dev. It runs fine in a docker container. And, NO, I don't want to deploy my container to Heroku. Doing this will change all our CI scripts for deployment, causing a bunch of rewrite I'm trying to avoid.  If i have to do that, I might as well move off of Heroku. 

I'm at a loss. Anyone? 

William

List of installed libraries 
build-essential
libpq-dev
libxml2-dev
libxslt1-dev
libxslt-dev
libicu52
libicu-dev
libcurl4-gnutls-dev
build-essential
libpq-dev
libxml2-dev
libxslt1-dev
libxslt-dev
nodejs
openssl
patch
libicu-dev
libcurl4-gnutls-dev
locales
ruby-dev
zlib1g-dev
liblzma-dev


William Flanagan

unread,
Oct 25, 2016, 12:47:09 PM10/25/16
to nokogiri-talk
Replying to myself. I also have tried adding ruby-nokogiri to the Aptfile. Same error.

Mike Dalessio

unread,
Oct 26, 2016, 10:00:33 AM10/26/16
to nokogiri-talk
On Tue, Oct 25, 2016 at 12:04 PM, William Flanagan <wfla...@audienti.com> wrote:
Hey all,

I've beat my head against the wall for more than a week on this.  

Ouch, that sounds painful. I'll try to help.
It's not clear what you're trying to do, or what errors you're seeing, or even how to reproduce what you're seeing.

Here, I've included the output from pushing a simple app that uses Nokogiri to Heroku.

```
# Gemfile

gem 'sinatra'
gem 'nokogiri'
```

```
$ git push heroku master
Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (8/8), 1024 bytes | 0 bytes/s, done.
Total 8 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rack
remote: -----> Using Ruby version: ruby-2.2.4
remote: -----> Installing dependencies using bundler 1.11.2
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote:        Fetching gem metadata from https://rubygems.org/..........
remote:        Fetching version metadata from https://rubygems.org/..
remote:        Installing mini_portile2 2.1.0
remote:        Installing tilt 1.4.1
remote:        Installing rack 1.5.2
remote:        Using bundler 1.11.2
remote:        Installing rack-protection 1.5.2
remote:        Installing sinatra 1.4.4
remote:        Installing nokogiri 1.6.8.1 with native extensions
remote:        Bundle complete! 2 Gemfile dependencies, 7 gems now installed.
remote:        Gems in the groups development and test were not installed.
remote:        Bundled gems are installed into ./vendor/bundle.
remote:        Bundle completed (14.65s)
remote:        Cleaning up the bundler cache.
remote: 
remote: ###### WARNING:
remote:        You have not declared a Ruby version in your Gemfile.
remote:        To set your Ruby version add this line to your Gemfile:
remote:        ruby '2.2.4'
remote:        # See https://devcenter.heroku.com/articles/ruby-versions for more information.
remote: 
remote: -----> Discovering process types
remote:        Procfile declares types     -> web
remote:        Default types for buildpack -> console, rake
remote: 
remote: -----> Compressing...
remote:        Done: 18.2M
remote: -----> Launching...
remote:        Released v4
remote:        https://redacted.herokuapp.com/ deployed to Heroku
remote: 
remote: Verifying deploy.... done.
```


Now it's your turn! What are you doing differently, and why?

 


--
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-talk+unsubscribe@googlegroups.com.
To post to this group, send email to nokogi...@googlegroups.com.
Visit this group at https://groups.google.com/group/nokogiri-talk.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages