It has been a while but this picks up a previous discussion thread: http://lists.debian.org/debian-ruby/2012/10/msg00031.html I would also like to see Ruby and Rails available to be installed from packages. Currently the only solution that I can get working acceptably is the rvm one and there are many downsides to it. * The upstream rvm process does not include any security or authentication checking. * It downloads scripts from the Internet and executes them without verification. * It modifies local files (.bashrc) without notification and undesireably. * Security fixes usually only occur in later versions which often require API changes and application rewrites. * Working with RVM requires an online network connection. Antonio Terceiro wrote: > Wheezy (and Rails 3) porting is just starting, so I don't know yet how > exactly that is going to be. Speaking of which there are currently some problems as things sit today. It isn't happy. In a pristine system (chroot, vm, etc.) in Wheezy as of 2012-12-17 (ruby 4.9, ruby1.9.1 1.9.3.194-5, rails3 3.2.6-1): Install ruby and rails3: # apt-get install ruby rails3 Ruby and Rails 3 are both installed. Test them by creating a new project: $ rails new test1 ... run bundle install --local /usr/lib/ruby/1.9.1/fileutils.rb:247:in `mkdir': Permission denied - /var/lib/gems/1.9.1 (Errno::EACCES) from /usr/lib/ruby/1.9.1/fileutils.rb:247:in `fu_mkdir' from /usr/lib/ruby/1.9.1/fileutils.rb:221:in `block (2 levels) in mkdir_p' from /usr/lib/ruby/1.9.1/fileutils.rb:219:in `reverse_each' from /usr/lib/ruby/1.9.1/fileutils.rb:219:in `block in mkdir_p' from /usr/lib/ruby/1.9.1/fileutils.rb:205:in `each' from /usr/lib/ruby/1.9.1/fileutils.rb:205:in `mkdir_p' from /usr/lib/ruby/1.9.1/pathname.rb:514:in `mkpath' from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:19:in `run' from /usr/lib/ruby/vendor_ruby/bundler/installer.rb:12:in `install' from /usr/lib/ruby/vendor_ruby/bundler/cli.rb:220:in `install' from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/task.rb:22:in `run' from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/invocation.rb:118:in `invoke_task' from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor.rb:263:in `dispatch' from /usr/lib/ruby/vendor_ruby/bundler/vendor/thor/base.rb:386:in `start' from /usr/bin/bundle:13:in `<main>' Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! Obviously the attempt to make a directory down /var/lib isn't intended. I have reviewed the wiki page tracking this: http://wiki.debian.org/Teams/Ruby/Rails3 I can see that the checklist and plan isn't complete yet. That is understandable. But it is also severely limited in use at the moment. The problem is that I am not sure how I can help. There is a pretty steep learning curve to dig into gems and bundler and try to work around it. I am sure that there is only very limited use of those packages because there are zero bug reports against them. :-) > On Wheezy bundler is able to detect Debian-installed packages, so > ideally there should be no issues. But you never know. That is very cool! If I can ever get to that point I think that will be a wonderful thing. Bob
Attachment:
signature.asc
Description: Digital signature