This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
performexa_application_setup [2021/10/28 06:34] 157.49.205.44 |
performexa_application_setup [2021/10/28 06:46] (current) 157.49.205.44 |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| Once the dependencies download, you can install rbenv itself. Clone the rbenv repository from GitHub into the directory ~/.rbenv | Once the dependencies download, you can install rbenv itself. Clone the rbenv repository from GitHub into the directory ~/.rbenv | ||
| - | **git clone git://github.com/sstephenson/rbenv.git .rbenv** | + | =====git clone git://github.com/sstephenson/rbenv.git .rbenv===== |
| + | Next, add ~/.rbenv/bin to your $PATH so that you can use the rbenv command line utility. Do this by altering your ~/.bashrc file so that it affects future login sessions: | ||
| - | With the ruby-build plugin now installed, you can install versions of Ruby y may need through a simple command. First, let’s list all the available versions of Ruby: | + | **echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile** |
| + | |||
| + | Then add the command eval "$(rbenv init -)" to your ~/.bashrc file so rbenv loads automatically: | ||
| + | |||
| + | **echo 'eval "$(rbenv init -)"' >> ~/.bash_profile** | ||
| + | |||
| + | ** exec $SHELL ** | ||
| + | |||
| + | Next, apply the changes you made to your ~/.bashrc file to your current shell session: | ||
| + | |||
| + | **source ~/.bashprofile** | ||
| + | |||
| + | Verify that rbenv is set up properly by using the type command, which will display more information about the rbenv command: | ||
| + | |||
| + | **type rbenv** | ||
| + | |||
| + | Your terminal window will display something starts with rbenv is a function | ||
| + | |||
| + | ===== Installing Ruby with ruby-build ===== | ||
| + | |||
| + | Next, install the ruby-build, plugin. This plugin adds therbenv install command, which simplifies the installation process for new versions of Ruby: | ||
| + | |||
| + | **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** | ||
| + | **exec $SHELL** | ||
| + | |||
| + | with the ruby-build plugin now installed, you can install versions of Ruby y may need through a simple command. First, let’s list all the available versions of Ruby: | ||
| **rbenv install -l** | **rbenv install -l** | ||