.bash commands not working

Joined
May 13, 2016
Messages
6
Reaction score
0
Points
1
Location
Madison Heights, MI
Your Mac's Specs
iMac (24-inch, Mid 2007)
No .bash commands are working on OS X El Capitain.
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Care to be a little more specific? What exactly isn't working? What have you tried? What are you trying to do?
 
OP
G
Joined
May 13, 2016
Messages
6
Reaction score
0
Points
1
Location
Madison Heights, MI
Your Mac's Specs
iMac (24-inch, Mid 2007)
Now that we have Homebrew installed, we can use it to install Ruby.

We're going to use rbenv to install and manage our Ruby versions.

To do this, run the following commands in your Terminal:

brew install rbenv ruby-build

# Add rbenv to bash so that it loads every time you open a terminal
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile <--- This works!!

source ~/.bash_profile <--- This is where I get stuck!!!!!!!!

It returns this:

-bash: ≈: command not found <--- NO .bash command works!!!!!!
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
Something in .bash_profile is wrong. There is no command, which is what it's complaining about.
Do any commands work? ls, top, anything in the /bin folder? What do you get when you echo $PATH?
 
OP
G
Joined
May 13, 2016
Messages
6
Reaction score
0
Points
1
Location
Madison Heights, MI
Your Mac's Specs
iMac (24-inch, Mid 2007)
/Users/gordonwhite/.rbenv/shims:/Users/gordonwhite/.rbenv/shims:/Users/gordonwhite/.rbenv/shims:/Users/gordonwhite/.rbenv/shims:/Users/gordonwhite/.rbenv/shims:/Users/gordonwhite/.rbenv/shims:/Users/gordonwhite/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin

ls, cd, etc... all work.
Just not .bash
 
Joined
Feb 14, 2004
Messages
4,781
Reaction score
166
Points
63
Location
Groves, Texas
There is no .bash command. Bash is the shell, what you see when you open Terminal.
Please copy/paste the contents of your .bash_profile file here, preferably in a code block ( [ CODE]paste here[ /CODE] ).
Note, don't put spaces after the [ like I did, did that so it wouldn't actually do a code block. It should look like this:
Code:
 Stuff you pasted

Edit: Also, your $PATH has /Users/gordonwhite/.rbenv/shims: in it several times. It only needs to be there once (not that that'll hurt anything, but could slightly slow things down).
 
Last edited:
OP
G
Joined
May 13, 2016
Messages
6
Reaction score
0
Points
1
Location
Madison Heights, MI
Your Mac's Specs
iMac (24-inch, Mid 2007)
Found problem. Missed a step when installing RUBY, forgot XTools.

Works fine now.

Thanks
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top