- Rake Task Management Essentials
- Andrey Koleshko
- 344字
- 2021-07-16 12:01:40
Installing Rake
As Rake is a Ruby library, you should first install Ruby on the system if you don't have it installed already. The installation process is different for each operating system. However, we will see the installation example only for the Debian operating system family.
Just open the terminal and write the following installation command:
$ sudo apt-get install ruby
Note
If you have an operating system that doesn't contain the apt-get
utility and if you have problems with the Ruby installation, please refer to the official instructions at https://www.ruby-lang.org/en/installation. There are a lot of ways to install Ruby, so please choose your operating system from the list on this page and select your desired installation method.
Rake is included in the Ruby core as Ruby 1.9, so you don't have to install it as a separate gem. However, if you still use Ruby 1.8 or an older version, you will have to install Rake as a gem. Use the following command to install the gem:
$ gem install rake
To check if you have installed it correctly, open your terminal and type the following command:
$ rake --version
This should return the installed Rake version.
The next sign that Rake is installed and is working correctly is an error that you see after typing the rake
command in the terminal:
$ mkdir ~/test-rake $ cd ~/test-rake $ rake rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) (See full trace by running task with --trace)
Tip
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
- Oracle WebLogic Server 12c:First Look
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- 軟件項目管理(第2版)
- 潮流:UI設(shè)計必修課
- 深度學(xué)習(xí)經(jīng)典案例解析:基于MATLAB
- HTML5 移動Web開發(fā)從入門到精通(微課精編版)
- C語言程序設(shè)計(第2版)
- Responsive Web Design with HTML5 and CSS3
- Visual Basic程序設(shè)計教程
- YARN Essentials
- 人人都是網(wǎng)站分析師:從分析師的視角理解網(wǎng)站和解讀數(shù)據(jù)
- Visual Basic程序設(shè)計實驗指導(dǎo)(第4版)
- Python數(shù)據(jù)可視化之Matplotlib與Pyecharts實戰(zhàn)
- jQuery開發(fā)基礎(chǔ)教程
- UVM實戰(zhàn)