Hey guys, I'm at a loss, I've been fucking around trying different solutions to this problem. It all started when I tried to upgrade and use metasploit, I decided to re-download it and I've been having a lot of issues with the bundler. I'm now having issues with the terminal that started only after I tried to fix this.
I would really appreciate any help offered.
Installing factory_girl (4.2.0)
Gem::InstallError: factory_girl requires Ruby version >= 1.9.2.
An error occurred while installing factory_girl (4.2.0), and Bundler cannot
continue.
Make sure that gem install factory_girl -v '4.2.0' succeeds before bundling.
I've been messing around with different solutions suggested by EVERY thread on this subject and I still have had no luck....
Please help
I am now getting this everytime I open a terminal:
/bin/lesspipe: 1: /bin/lesspipe: basename: not found
/bin/lesspipe: 1: /bin/lesspipe: dirname: not found
/bin/lesspipe: 279: [: =: unexpected operator
Command 'dircolors' is available in '/usr/bin/dircolors'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
dircolors: command not found
This is also resulting from some PATH issue:
optx@ubuntu:~$ sudo
Command 'sudo' is available in '/usr/bin/sudo'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
sudo: command not found
EDIT:
This is the script which fucked up my PATH variable, how can I reverse it?
#!/bin/bash
echo $PATH
echo "export PATH=\$PATH:/home/user/test" >> ~/.bashrc
PS1='$ '
source ~/.bashrc
echo $PATH