New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Really screwed up my Terminal

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jun 03, 2012
Posts: 1
NKunkel is on a distinguished road

NKunkel is offline
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/

Beeing a fool, I selected the first option and submitted "sudo xcode-select -switch /Developer" and moments later realized the tutorial said to submit the second option "sudo xcode-select -switch/Applications/"

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,
- Nik

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
I've been told to delete a bunch of plist files that bash loads whenever you open a new terminal seshion, however am having trouble finding them.'

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
QUOTE Thanks

Post Reply New Thread Subscribe

« Passwords | Downgrading to Snow Leopard on a Partition »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
Automatically save log files of terminal sessions Stubaan OS X - Apps and Games 3 04-02-2013 11:24 AM
Terminal Won't Open icefall5 OS X - Operating System 7 08-25-2010 08:26 AM
screwed up something with terminal johnpalley OS X - Operating System 3 03-29-2009 11:22 PM
Terminal problems please help CliveO OS X - Operating System 6 03-20-2007 10:04 AM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 10:52 PM

All times are GMT -4. The time now is 11:56 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?