4 ms·
After trying to install a rails app on Ubuntu , frankly the entirety of ruby and its notion of how a mature language should be packaged is pure amateur hour. Rv
by ivix 14y ago
After trying to install a rails app on Ubuntu , frankly the entirety of ruby and its notion of how a mature language should be packaged is pure amateur hour. Rvm is a mess, the various versions are a mess. For example v1.9.3 appears to be considered the same as 1.9.1, and random bugs appear when moving between versions. WTF?
- kawsper 14y agoI don't understand your issues with Ruby on Ubuntu, setting it up with RBenv is fairly simple, you can see my build script here: https://gist.github.com/kaspergrubbe/5383877 https://gist.github.com/kaspergrubbe/5383877 About 1.9.3 and 1.9.1 are you sure that it isn't about this issue described here: http://stackoverflow.com/questions/8564210/why-are-we-installing-ruby-1-9-2-1-9-3-gems-into-a-1-9-1-folder http://stackoverflow.com/questions/8564210/why-are-we-instal... ?
- alrs 14y agoYou never use tools like rbenv or rvm on production servers. They exist so that mac devs can be running the same versions of ruby found in the Linux distros.
- andyl 14y agoWell, I use Debian for development and production, and I would never use Debian ruby packages on production. With the Debian packages, you have no idea what version you're getting. And then gem installs can only be done by the root user, not the deploy user. What a mess. Godspeed Leader Nussbaum! I hope that your first action is to find a replacement for whoever was responsible for the debian-ruby disaster.
- _delirium 14y agoI haven't used Ruby much, but the Debian approach works well for me in Perl. I like that instead of pulling random packages off CPAN with no testing, I can depend on a Debian package of a Perl module, which is integration-tested with the rest of the distribution and release-managed, especially in terms of which other packages and versions it works with.
- kawsper 14y agoHow do you ensure which versions of the packages that you receive? It is nice to rely on system-packages, but if you depend on certain versions of certain packages you might see problems with that approach.
- alrs 14y agoapt-get -s install ruby1.9.1-full. A simulation-only dry run that will show you exactly what is being installed.
- jeltz 14y agoI am pretty sure I have done gem installs as the current user with the Debian packages. It could be that they changed something recently though.
- kawsper 14y ago37signals is using rbenv in production, and I know of several other big companies that does as well, and I am feeling quite comfortable using it.
- jhawthorn 14y agoI would argue the opposite: you should always use rvm (or similar) in production. I've done this for many projects, it's great to have the same ruby version and patchset in development, CI, staging, and production. rvm is also well supported in capistrano and jenkins.
- clark-kent 14y agoI'm not sure why most tutorials suggests installing RVM. You don't need rvm unless you are a running multiple rubies. You can install v1.9.3 from apt-get install ruby1.9.3. And a production server shouldn't run RVM. RVM just adds unnecessary complexity.