Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNicolas Hardmeier
7,083 PointsCan´t install Gems
First of all I have no more than thanks and nice words to all the people pushing this web, teaching courses and helping in the forum. So as I am new on ruby and in programming in general I took the Ruby Foundations course, everything works fine and I learned some basics, then I start this rails course and the way you recommended for installations changes and I´m completly stack now... can´t install gems. I searched in the forum and the web to try to fix this without success. I tried so many things that now I´m lost, I deleted and re installed xcode a few times. I have tried what says in here https://teamtreehouse.com/forum/following-the-installation-of-osxgccinstaller-i-cannot-install-gems-basically-use-ruby-in-programming but still not working and looks like getting worse
Please somebody help me :D I´m running a Mac with OS 10.9.5, in the first course I had installed rmv,homebrew, git and ruby, then in other course said to install GCC, what gives me conflicts with homebrew as many of you know... when i run brew doctor terminal returns the following:
Warning: You have an outdated version of /usr/bin/install_name_tool installed.
This will cause binary package installations to fail.
This can happen if you install osx-gcc-installer or RailsInstaller.
To restore it, you must reinstall OS X or restore the binary from
the OS packages.
Warning: You seem to have osx-gcc-installer installed.
Homebrew doesn't support osx-gcc-installer. It causes many builds to fail and
is an unlicensed distribution of really old Xcode files.
Please run `xcode-select --install` to install the CLT.
now everytime I open the terminal this appears
-bash: rbenv: command not found
-bash: rbenv: command not found
-bash: rbenv: command not found
when I write the line git clone https://github.com/sstephenson/rbenv.git ~/.rbenv terminal returns the following:
fatal: destination path '/Users/Tacito/.rbenv' already exists and is not an empty directory.
when I try to install gems like this
gem install bundler terminal returns the following:
-bash: /usr/local/bin/gem: @@HOMEBREW_CELLAR@@/ruby/2.1.5/bin/ruby: bad interpreter: No such file or directory
so hope somebody can guide me cause I really want to learn how ruby on rails works
4 Answers
Stone Preston
42,016 Pointshomebrew seems to want to use xcode command line tools:
Please run `xcode-select --install` to install the CLT.
you cant install the CLT using that command anymore, however you can download them from the developer center after creating a free account.
download the Xcode CLT here
Michael Hulet
47,913 PointsJudging from the instructions in the error message you posted, you'll need to reinstall OS X from the Mac App Store, then install all the necessary command line tools that previous courses had you install, but be sure not to install osx-gcc-installer
Nicolas Hardmeier
7,083 PointsThanks for the answer Michael, wow i really don´t want to do that cause i´m working on other things with the computer and not will be able to reinstall the OSX untill next couple of weeks but if it´s the only solution... Hope the Treehouse staff fix these videos soon...:/
Stone Preston
42,016 PointsId say this is probably your last resort. Id spend a bit more time searching for a solution before completely reinstalling.
there is definitely an easier way to fix this
Stone Preston
42,016 Pointstry uninstalling the xcode CLT, then installing the CLT again
sudo /Library/Developer/4.1/uninstall-devtools -mode=all
Nicolas Hardmeier
7,083 PointsThanks a lot for you time guys, but it looks like is not working, very strange... I have installed again the CLT and was successful, but still have the message when I check the Brew doctor. And when i try to uninstall the CLT with the line
sudo /Library/Developer/4.1/uninstall-devtools -mode=all
terminal returns
sudo: /Library/Developer/4.1/uninstall-devtools: command not found
Nicolas Hardmeier
7,083 PointsNicolas Hardmeier
7,083 PointsThanks for the answer Stone! I did what you said and restart the computer and still have the same message when i run brew doctor...strange... I think i tried so many things that now my mac and me are a mess Thanks anyway but for me the most important thing is to be able to install rails and gems You think i have to re install the OS or could be an easier solutions for this problems?