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:
sudo yum update
sudo yum install git
We install the necessary components:
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
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
rbenv install -l
Searches us all versions
installation version 2.23 from series 3 I did not want to go
rbenv install -v 2.2.3
rbenv rehash
set as the default installed version:
rbenv global 2.2.3
Checking version:
ruby -v
Installation GEM
gem install bundler
Installing the rails
gem install rails
rbenv rehash
check which version of rails
rails -v
Installation nodejs
sudo yum install nodejs
Create the sample application:
cd ~
rails new pilotapp
cd pilotapp
rake db:create
and its launch:
rails server --binding=ADRESIPSERWERA
The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń…
Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji…
Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w…
You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania…
Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.…
The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy…