How to Install Rake from GitHub on Manjaro
Rake is a Ruby-based build system that can be used to manage tasks in a project. In this tutorial, we'll explain how to install Rake from the official GitHub repository on a Manjaro system.
Prerequisites
Before we start, ensure that you have the following installed:
- Manjaro operating system with a user account with sudo privileges.
- Ruby programming language already installed on your system
Steps
Open the Manjaro terminal by using the
Ctrl+Alt+Tshortcut or by searching for it in the System menu.Clone the Rake repository by running the following command in the terminal:
git clone https://github.com/ruby/rake.git
- Switch to the new
rakedirectory:
cd rake
- Build the Rake by running the following command:
sudo gem build rake.gemspec
- Install the generated
rakegem file by typing the following command:
sudo gem install rake-<VERSION>.gem
Note: Replace <VERSION> with the version number indicated in the filename of the .gem file.
- Verify that Rake has been successfully installed by running the following command:
rake --version
You should see the version number of Rake in the output.
Conclusion
In this tutorial, we explained how to install Rake from the official GitHub repository on a Manjaro system. With Rake installed, you can now use it to manage and execute tasks in your Ruby-based projects.