Install RoR on debian Squeeze

Is there a way to install Ruby 1.9.2 or 1.8.7 + Rails 3 on my debian compression?

+3
source share
5 answers

You probably don't want to use RVM on a production machine. His $ PATH magic will break through in non-obvious places (for example, cron jobs), and you will find yourself on a creek.

You can simply create from sources and use checkinstall to create .deb for yourself. Here's a tutorial for Ubuntu that should translate well to debian.

+5
source

Install first rubygems, I think this is the only Debian package. Then (like Ruby gems):

  • rvm(install with it ruby 1.9.2or the right version of Ruby)
  • bundler
  • rails

Bundler.

+3
+1

Ruby On Rails .

, sudo.

$sudo ls -a
[sudo] password for unlimit:
unlimit is not in the sudoers file. This incident will be reported.

, , sudoer,

$echo 'unlimit ALL=(ALL) ALL' >> /etc/sudoers

, .

$ruby -v
-[bash]: ruby:command not found

- , , .

$sudo apt-get install ruby

$sudo apt-get install build-essential
$sudo apt-get install curl
$sudo apt-get install libssl-dev

rvm

$curl -L get.rvm.io | bash -s stable

rvm

$source $HOME/.rvm/scripts/rvm

.bashrc. rvm

$rvm get head && rvm reload

ruby ​​1.9.3

$rvm install 1.9.3 --with-openssl-dir=$HOME/.rvm.usr

readline lib

$sudo apt-get install libreadline-dev

$gem install rails -v 3.2.3

,

$rails -v
Rails 3.2.3

readline

$rvm pkg install readline

sqlite3

$sudo apt-get install sqlite3 libsqlite3-dev

.

$rails new app HelloWorld

http://unlimit.in/installing-ruby-on-rails-on-debian.html

+1

Ruby , , - RVM. Ruby gemset.

, , , .

0

Source: https://habr.com/ru/post/1794513/


All Articles