Thread: Really screwed up my Terminal
06-03-2012, 09:29 PM #1
Really screwed up my Terminal
- Member Since
- Jun 03, 2012
So I'm trying to set up a developer environment for Ruby on Rails on my Macbook Pro running Lion 10.7.3.
Following this guide: How to install Xcode, Homebrew, Git, RVM, & Ruby 1.9.3 on Snow Leopard & Lion - Moncef Belyamani
I went to the Mac Store and installed XCode, as the Command Line Tools. I installed gcc and homebrew through the command prompt as instructed, however this is where I started running into problems.
When I ran brew doctor to check if my system was "raring to brew" i got this output:
Warning: Your Xcode is configured with an invalid path. You should change it to the correct path. Please note that there is no correct path at this time if you have *only* installed the Command Line Tools for Xcode. If your Xcode is pre-4.3 or you installed the whole of Xcode 4.3 then one of these is (probably) what you want: sudo xcode-select -switch /Developer sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer DO NOT SET / OR EVERYTHING BREAKS!
Now, no matter what I enter into the terminal I always get the following:
-bash: install: command not found
-bash: ruby: command not found
-bash: sudo: command not found
Naively thinking I could fix it myself, I tried uninstalling Xcode by deleting it from the applications folder, however upon further review trying to reinstall it from the App Store I found the App Store still thinks Xcode is installed.
I found command prompts on Google to fully uninstall Xcode, however since my terminal doesn't respond to commands I can't uninstall -> reinstall Xcode.
Thanks for your help guys,
EDIT: Also this may be helpful in diagnosing the problem as I suspect it's where things went wrong.
Niklas-Kunkels-MacBook-Pro:~ Niklas$ echo $PATH /usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/local/sbin:~/bin/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
EDIT2: I've managed to reinstall XCode, however the terminal still won't recognize most commands I input such as "gcc --version" despite ruby having been installed
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By yoandrew in forum OS X - Operating SystemReplies: 4Last Post: 12-29-2012, 10:20 AM
By lfshanny in forum OS X - Operating SystemReplies: 3Last Post: 07-11-2009, 03:45 PM
By johnpalley in forum OS X - Operating SystemReplies: 3Last Post: 03-30-2009, 12:22 AM
By Keef in forum Switcher HangoutReplies: 5Last Post: 07-25-2007, 07:12 AM
By f0134700529 in forum OS X - Operating SystemReplies: 7Last Post: 11-01-2004, 11:45 AM