Ruby on Rails z Directadmin i Centosem
Installing Ruby on Rails DA CentOS is not quite a complicated operation.
I never mail this experience and I think, however, that even a layman can handle installation.
Follow these steps:
update the system and install git:
1 2 | sudo yum update sudo yum install git |
We install the necessary components:
1 | sudo yum install -y git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel |
We collect and compile components
1 2 3 4 5 6 7 | cd ~ git clone git://github.com/sstephenson/rbenv.git .rbenv echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(rbenv init -)"' >> ~/.bash_profile git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile source ~/.bash_profile |
command
1 | rbenv install -l |
Searches us all versions
installation version 2.23 from series 3 I did not want to go
1 2 | rbenv install -v 2.2.3 rbenv rehash |
set as the default installed version:
1 | rbenv global 2.2.3 |
Checking version:
1 | ruby -v |
Installation GEM
1 | gem install bundler |
Installing the rails
1 2 | gem install rails rbenv rehash |
check which version of rails
1 | rails -v |
Installation nodejs
1 2 | sudo yum install nodejs |
Create the sample application:
1 2 3 4 | cd ~ rails new pilotapp cd pilotapp rake db:create |
and its launch:
1 | rails server --binding=ADRESIPSERWERA |
Related entries:
Installing Google Chrome in Ubuntu 20.04
Installing and configuring PHP Opcache on Ubuntu 20.04 For Apache and Nginx
Scanning the server for viruses using ClamAV in Ubuntu
If you want to manually unblock the IP address 8
Problem Trying to make libzip ... make: *** No targets specified and no makefile found. Stop. Trouble ...