My configurations
Ubuntu 14.04 amd64
I followed this tutorial to install Ruby
Successfully installed ruby.
Closed the Terminal.
Checking
ruby -v
shows
The program 'ruby' can be found in the following packages:
* ruby
* ruby1.8
Try: sudo apt-get install <selected package>
4.Runs the command
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
from the tutorial and then check with ruby -v and it works !!( Shows the version )
5.I tried a many times by closing the terminal and typing ruby -v command every time it shows ruby is not installed and typed the same command from the tutorial then it detect the ruby.
How can avoid this ?
The instructions on making rvm work in gnome-terminal can be found here, quoting the instructions:
For RVM to work properly, you have to set the 'Run command as login
shell' checkbox on the Title and Command tab inside of
gnome-terminal's Settings page
Related
I have installed Ruby via RVM on Windows Insider Build(Ubuntu Bash). RVM installed successfully and so did ruby.
I have also installed bundler with "gem install bundler". Updated few gems and stuff. But now it says on ruby -v
cooldudeabhi#ACERASPIRE:~$ ruby -v
The program 'ruby' can be found in the following packages:
* ruby
* ruby1.8
Try: sudo apt-get install <selected package>
cooldudeabhi#ACERASPIRE:~$ gem
The program 'gem' can be found in the following packages:
* ruby
* rubygems
Try: sudo apt-get install <selected package>
cooldudeabhi#ACERASPIRE:~$
I suspect its a PATH problem but I am not sure if it really is? If its a PATH problem I don't know what to set in bashrc files please tell that. Thanks
I have found similar question on stackoverflow but it doesn't help in case of Windows.
Also /usr/local/bin is empty that's strange
Add this line to your profile settings (.bashrc or .bash_profile)
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
answer referred from here
I've got this problem with ruby versions. I've been looking for a solution, but none of the solutions I've found worked for me.
System is Ubuntu 13.10.
If I type
ruby -v
Then I got
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
But if I type
sudo ruby -v
Then I got
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
If I'm trying to change the version using sudo rvm use I'm getting:
sudo: rvm: command not found
Rvmsudo get's me this:
Warning: can not check /etc/sudoers for secure_path, falling back to call via /usr/bin/env, this breaks rules from /etc/sudoers. Run:
export rvmsudo_secure_path=1
to avoid the warning, put it in shell initialization file to make it >persistent.
In case there is no secure_path in /etc/sudoers. Run:
export rvmsudo_secure_path=0
to avoid the warning, put it in shell initialization file to make it persistent.
I've tried to type in those exports, but it didn't change anything. Typing them with "sudo", gives back "export:command not found".
I've already tried reinstaling everything, didn't help. It's a 6 hours now, that I can't find an answer.
I suspect that you do not have rvm correctly installed. To install rvm, please do as follows:
$ curl -L https://get.rvm.io | (sudo) bash -s stable --ruby -s stable --rails
$ curl -L https://get-git.rvm.io | bash
Single-User Install Location: ~/.rvm/
Multi-User Install Location: /usr/local/rvm
Then in Linux, try vim ~/.bashrc and at the end of it add below settings:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
This loads RVM into a shell session.
Then, reload to take effect:
$ source ~/.rvm/scripts/rvm
$ source ~/.bashrc # in Linux
$ source ~/.bash_profile # in MacOS
$ type rvm |head -1
if it shows rvm is a function then you have rvm installed successfully.
I installed ruby and rails and other gems in ubuntu via terminal using rvm
After installation i checked the version of ruby and rails.
Later i closed the terminal. now I am not able to find ruby in it.
I am new to ruby and ubuntu as well. I am sure its installed . But after closing the terminal when I open it again and type "ruby -v"
I get this :
ubuntu#ubuntu:~$ ruby -v
The program 'ruby' can be found in the following packages:
* ruby
* ruby1.8 (You will have to enable component called 'universe')
Try: sudo apt-get install <selected package>
ubuntu#ubuntu:~$
I would highly suggest using rbenv instead of rvm for Ruby these days.
A guide on how to install it is located here: https://gorails.com/setup/ubuntu/14.10
The Ruby will then be installed in the .rbenv directory that is located in your $HOME folder.
To answer your question on where rvm installs it, it is installed into .rvm folder in your $HOME
Zucchini framework seems a promising candidate for quality assurance of iOS user interfaces.
However, the installation steps provided on their website assume that most of the prerequisites already exist OR that one is already familiar with the intricacies of command line.
I would like to know what requires to be installed before I can successfully install and use zucchini framework on Mac OSX.
Requirements
Zucchini framework has the following requirements:
Ruby >= 1.9.3
Xcode >= 4.2 (for this installation process we require Xcode >= 4.6.2)
Xcode command line tools
Nodejs
Coffee script (node module)
How to install
Install Homebrew
$> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Update Homebrew
$> brew update
Install imagemagick and nodejs
$> brew install imagemagick node
Install coffee script module for nodejs
i. Install coffee script
$> npm install coffee-script
ii. Add coffee bin to your PATH environment variable
$> cd ~
$> sudo vim .bash_profile
Press i, to switch into insert mode then add following line
PATH=$PATH:$HOME/node_modules/coffee-script/bin
Press :w to save and
Press :q to quit vim
Now relaunch the terminal.
iii. Verify that coffee script is successfully installed.
At the prompt
$> coffee
To exit from coffee script type following at the coffee> prompt:
process.exit()
Install command line tools for Xcode
Install and/or update ruby (if its less than 1.9.3)
i. ruby is installed on Mac OSX by default, verify using the following command:
$> ruby -v
ii. Install rvm (Ruby version manager)
$> \curl -L https://get.rvm.io | bash -s stable --rails
--autolibs=enabled
iii. Add rvm bin directory to path variable
$> sudo vim .bash_profile
Insert the following line, save and quit
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
Relaunch the terminal.
iv. Update ruby to 1.9.3 or later
$> rvm install 1.9.3
Install zucchini
$> gem install zucchini-ios
NOTE: I have included the reference for each step from where I got help during installation.
I downloaded ruby on rails on ubuntu 12.10 through this tutorial http://technical-feeds.blogspot.ca/2013/02/how-to-install-ubuntu-and-ruby-on-rails.html.
I did everything and it worked fine.
I checked ruby -v and it came back as ruby 2.0.0p0. I also checked rails, rubygems and git they came back good.
Then I closed the terminal and opened a new one and tried to check the version but this came back for ruby:
bimbola#ubuntu:~$ ruby -v
The program 'ruby' can be found in the following packages:
* ruby1.8
* ruby1.9.1
Try: sudo apt-get install <selected package>
And this came for rails:
bimbola#ubuntu:~$ rails -v
The program 'rails' can be found in the following packages:
* rails
* ruby-railties-3.2
Try: sudo apt-get install <selected package>
git is still fine though
bimbola#ubuntu:~$ git --version
git version 1.7.10.4
You need to state which version of ruby you want to use. Try this:
rvm use 2.0.0
You can also set a particular version of ruby to be used as default as shown below
rvm --default use 2.0.0
RVM (Ruby Version Manager) allows you to install multiple versions of ruby and use any one of them at a time as according to your whim.
To see all the available ruby versions on your system try this:
rvm list
Add a line to your bashrc to load rvm automatically: (execute in Terminal)
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"' >> .bashrc
or load rvm manually:
source "$HOME/.rvm/scripts/rvm"