SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Plugin or Gem install is too slow

    I'm using a Macbook with Leopard 10.5.4 . When I try to install a plugin
    from a remote source via Terminal it takes a long time to finish
    downloading all the files to my vendor/plugins folder. My internet
    connection is not slow (average of 4Mbps). When surfing with a normal
    browser, eg firefox, it's not slow at all . I tried several plugins from
    different locations and with all of them installation was very slow.
    Does anyone have an idea why it's too slow?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)
    When I downloaded some gems, I got to the line
    "Bulk updating source index"
    and it seemed to hang. What actually was happening, is the download went fine, but it took a long time for Ruby to do it's thing. I could hear a lot of CPU crunching going on, lots. And it took literally hours to complete, hours. VERY aggravating, and I consider myself to have lots of patience.
    I guess it's doing stuff like unzipping and verifying checksums, reading and writing to files, etc. In any case, if you're hearing a lot of crunching going on, try to be patient. I tried going offline a few times after the initial transfer was complete. Sometimes Ruby needed to be connected to the net, and the whole thing aborted so I had to start again. AAARRRRGGGHHHHH! But other times it stopped on a "Do you want to instll dependency ...." prompt and I could reconnect without losing ground.

  3. #3
    SitePoint Member
    Join Date
    Jul 2008
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What amazes me is when Im watching a screencast like peepcode or railcast and the computer the guy is demonstrating some plugin install, just do it in a fraction of a second ... how come? ... maybe plugin install is some kind of VIP only, heheh

  4. #4
    SitePoint Enthusiast thebasti's Avatar
    Join Date
    Aug 2004
    Location
    Novi Sad, Serbia
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I never had any problems with installing plugins, i.e. they all always installed fast.

    But installing gems from Rubyforge (where most gems are hosted) can often hang on "Bulk updating source index". However, it's not a problem with Ruby doing something - problem is that there are a lot of gems on RubyForge and it often takes a lot of time to update them all. You connection speed is irrelevant, I had a same problem on server that has much more than 4Mb/s.

    You can increase the bulk update threshold when installing gems, and you be able to see the progress. Try doing something like:

    gem install -B 100000 name_of_the_gem
    "Strategy without tactics is the slowest route to victory.
    Tactics without strategy is the noise before defeat."
    - Sun Tzu
    Icebergist - a web dev blog | Orange Iceberg Web App Development

  5. #5
    l 0 l silver trophybronze trophy lo0ol's Avatar
    Join Date
    Aug 2002
    Location
    Palo Alto
    Posts
    5,329
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you're getting those really long hangs on gem updates, do a:
    Code:
    gem update --system
    New version of rubygems came out a little back that helps with that. Granted, you'll have to do that long bulk update one more time to update rubygems itself, but afterwards it should go smoothly.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •