Skip to content
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

Long installation time? #31

Closed
daliborfilus opened this issue Apr 20, 2014 · 2 comments
Closed

Long installation time? #31

daliborfilus opened this issue Apr 20, 2014 · 2 comments

Comments

@daliborfilus
Copy link

Installing this gem takes very long time on relatively fast machines? I don't see nothing in the code indicating it should take that long?

EDIT: it takes very long only if it is a part of a bundle. gem install mini_portile is fast, but bundle hangs on Installing mini_portile for a very long time. Could it be some misunderstanding between bundler and this gem, or am I completely wrong?

@luislavena
Copy link
Collaborator

@noice that is because the installation of mini_portile is not the issue, but another gem that depends on it is.

This is the case of nokogiri, which uses mini_portile to build libxml2 and related libraries to avoid dependency on system provided ones.

You can short the installation time by telling nokogiri to use system libraries:

$ gem install nokogiri -- --use-system-libraries

As indicated in Nokogiri source:

https://github.com/sparklemotion/nokogiri/blob/master/ext/nokogiri/extconf.rb#L22

Read Bundler's documentation on how to provide configuration options for gems:

http://bundler.io/v1.6/man/bundle-config.1.html

Hope that helps.

@daliborfilus
Copy link
Author

Ah, thanks for explanation.

smoll pushed a commit to smoll/test-docker-rails that referenced this issue May 4, 2015
smoll pushed a commit to smoll/docker-rails-seed that referenced this issue May 4, 2015
Should be OK since we’re using docker as our base system anyway. Ref:
flavorjones/mini_portile#31 (comment)
185
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants