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

gem slow to install #895

Open
codedeleter opened this issue Dec 21, 2021 · 1 comment
Open

gem slow to install #895

codedeleter opened this issue Dec 21, 2021 · 1 comment

Comments

@codedeleter
Copy link

I'm on mac and this gem took me over a minute to install.

% time gem install rugged      
Fetching rugged-1.3.0.gem
Building native extensions. This could take a while...
Successfully installed rugged-1.3.0
Parsing documentation for rugged-1.3.0
Installing ri documentation for rugged-1.3.0
Done installing documentation for rugged after 1 seconds
1 gem installed
gem install rugged  63.66s user 19.57s system 88% cpu 1:34.32 total

It's the "Building native extensions" part that takes up most of the time. I haven't seen many gems take this long to install. Is there any way to get this faster? Is this just my machine? Is it this slow on linux too?

@carlosmn
Copy link
Member

This is configuring and building libgit2 and then rugged. It is bound to take longer than others, as most gems would not build the underlying C library. You can make this faster if you have libgit2 installed on your system by linking against that, but it does require that the versions match.

See

if arg_config("--use-system-libraries", !!ENV['RUGGED_USE_SYSTEM_LIBRARIES'])
for where that is selected

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