Open DevCEDTeam opened 1 year ago
Verify Ruby Installation: Run the following command to check if Ruby is installed correctly:
ruby -v
If Ruby is not installed or the version is not displayed, you will need to install Ruby before proceeding.
Install RubyGems: RubyGems is the package manager for Ruby. To install it, run the following command:
yum install rubygems
Add RubyGems to PATH: Add RubyGems to your system's PATH environment variable. Edit the /etc/profile
file and add the following line at the end:
export PATH="$PATH:/usr/local/bin"
Save the file and run the following command to apply the changes:
source /etc/profile
Verify Gem Installation: Run the following command to verify that the gem
command is now available:
gem -v
You should see the version number of RubyGems displayed.
Install Sinatra: Now you can install Sinatra by running the following command:
gem install sinatra
This will install the Sinatra gem and its dependencies.
After following these steps, you should be able to successfully install Sinatra using the gem
command. Let me know if you encounter any further issues.
//
Installation of Ruby on cPanel interface.