7 ms·
"gem install X" never, ever works for me on the first try (on OS X AND on Ubuntu, as someone who rarely does any Ruby hacking). I wish packages like this would
by simonw 14y ago
"gem install X" never, ever works for me on the first try (on OS X AND on Ubuntu, as someone who rarely does any Ruby hacking). I wish packages like this would include a link to somewhere that helps troubleshoot things when they go wrong.
Last time I used localtunnel I eventually figured out I needed to run "sudo apt-get install ruby1.9.1-dev" first.
- lukeholder 14y agowell yeah you need ruby to run a ruby gem?
- mst 14y agoMore importantly, apparently in this case you need the ruby dev package to install the relevant gem from source.
- kevindication 14y agoSmug reply implies that gems are only for people who develop in ruby.
- nicholassmith 14y agoSmug reply says that gems require things to work, and given that they're usually dependent on some version of ruby then the smug reply is usually right.
- kevindication 14y agoIt's not generally obvious to non-developer end users that they will (sometimes) need to install the -dev package on their OS. Would be nice if it were. I'm mostly taking issue with the unfriendliness of the comment.
- k33n 14y agoGems ARE only for people who develop in ruby.
- kevindication 14y agoDid you happen to read the article? It has nothing to do with developing in ruby.
- k33n 14y agoThere is no article attached to this post. Just the homepage of a small piece of software targeted at developers who are familiar with installing gems. If YOU read the content that was linked, you'd see there is a very long README targeted at people who aren't Ruby developers.
- simonw 14y agoI had ruby - I was missing the ruby-dev header files. My original complaint though is that people are using "gem install" as the sole documentation for installing a general purpose command-line tool. I'd rather not even know it's written in Ruby (I just want to install it and use it) - instead, I need deep Ruby knowledge just to get the thing running.
- ericcholis 14y agoStrange that you mention this, because it ALWAYS works for me on my Windows machine. Kind of nice to be on the other side of the fence for a change....
- ZoFreX 14y agoI used to be an occasional Ruby user and it was only after I started using it more often that I got the hang of things. I can give you a "pro tip", which is to never, ever use the Ruby provided by your distro, and to always use RVM. Getting RVM running on OS X and Ubuntu should be smooth sailing, and you'll find that installing gems just works after that. The only caveat is that some gems require compilation of native C extensions, which if you don't regularly compile things on your machine may require you to install lots of extra stuff (especially on the Mac).
- dasil003 14y agoThe state of affairs with Ruby OS integration is pretty poor. It's not a problem for me because Ruby is my bread and butter, so of course I have rvm (or rbenv) installed at all times. But as I user I think it's unacceptable to have to do a manual installation just to run extremely simple programs. It'd be nice if the community were more responsive to fixing the problems faced by the package manager maintainers.
- halostatue 14y agoIMO, it'd also be nicer if package manager maintainers worked harder to not break the default assumptions of Ruby developers. All of the RubyGems developers are volunteers—as are most (if not all) of the various package manager maintainers. The way that Debian broke Ruby in the past (I don't know if it still does, but I have heard reports that it's better)…was unconscionable. (This mostly because Debian tried to treat RubyGems like C-based libraries, which are hard to have multiple usable versions of; RubyGems was based on the idea that you might need multiple usable versions of a package around.)
- ZoFreX 14y agoRather than repos providing out of date Rubies and gems, wouldn't it make sense to solve the conflict between the two approaches in just one place, and make nice reliable RVM packages for everyone to use if they need Ruby?
- 14y ago
- heretohelp 14y agoIt's about the same for Pythonistas, but I think I generally have less trouble with Python packages than Ruby packages.