I have followed this thread and followed Linuxios’ answer, everything was working fine but then I get
-bash: export: `[[': not a valid identifier
-bash: export: `-s': not a valid identifier
-bash: export: `/Users/duaneadam/.rvm/scripts/rvm': not a valid identifier
-bash: export: `]]': not a valid identifier
So, I went and removed from .bash__profile via Terminal.
export PATH=$PATH:/usr/local/git/bin/ [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
.. thinking that lines of code is the problem but what I get after that is even worse. For some reasons.. Ruby is not installed.. again.
So, I re-added the lines of code and tried rebooting/restarting my Mac but problem still persist.
Screenshots:
.bash_profile:

Solution please? I even tried re-installing using his method.
Gosh, this is hard maybe Ruby on Rails isn’t just for me.
Setting up ruby with rvm can get pretty complicated at times.
A few golden rules is never to sudo when using a package manager like rvm.
Try the following:
rvm implode(This essentially removes the rvm installationcompletely.)
which ruby(The output should be something like /usr/bin, alsoruby --versionshould be 1.8.7, the default bundled with OS X.)rvm use ruby-version@gemset-name --create; eg:rvm use 1.9.3@my-awesome-project --create)rvm gemset listAlso ensure that rvm is loaded as a function. (You can verify this by typing
type rvm | head -1in the console.)Some more points, which were helpful to me from http://jfire.io/blog/2012/03/02/xcode-4-dot-3-homebrew-and-ruby/:
rvm requirementstells you what are the other tools you need to install.Cheers!