Ruby Gems are essential packages that extend the functionality of Ruby applications. They serve as a package manager, allowing Ruby developers to add reusable libraries and functions easily. Here’s how you can manage Ruby Gems within cPanel:
Steps to Install Ruby Gems in cPanel
-
Log into cPanel:
- Access your cPanel dashboard through your web hosting account.
-
Navigate to Ruby Gems:
- In the Software section, find and click on Ruby Gems.
-
Install a Ruby Gem:
- In the Install a Ruby Gem field, enter the name of the gem you want to install.
- Use the Search field to locate the gem.
- Once located, click Install Now.
-
Manage Installed Gems:
- The newly installed gem will appear in the Installed Ruby Gem(s) table.
- From here, you can:
- Update: Keep the gem up-to-date.
- Reinstall: Reinstall if necessary.
- Uninstall: Remove the gem when it’s no longer needed.
- View Documentation: Access the gem’s documentation.
-
Installing Gems via Command Line:
- If cPanel provides command line access, use the command:
- Replace
[gemname]
with the actual name of the gem you wish to install.
Important Notes
- Repository: Gems are sourced directly from the RubyForge repository.
Legacy Ruby Installation: This method applies only to legacy Ruby setups and does not affect applications installed through the Application Manager in cPanel.