Error No Such File Or Directory - /usr/bin/cc
Contents |
Sign in Pricing Blog Support Search xcode-select --print-path GitHub This repository Watch 1,054 Star 29,534
Install Xcode Command Line Tools
Fork 14,089 Homebrew/legacy-homebrew Code Issues 2 Pull requests 0 Projects 0 Pulse Graphs xcrun Issue with Command Line Tools for Xcode #10245 Closed tabletcorry opened this Issue Feb 17, 2012 · 18 comments Projects
Install Homebrew
None yet Labels None yet Milestone No milestone Assignees No one assigned 13 participants tabletcorry commented Feb 17, 2012 After running the uninstaller for Xcode (sudo /Developer/Library/uninstall-devtools –mode=all) and installing the command line tools from apple, I see xcode download the following error whenever I run brew install: $ brew install --debug zsh Error: No such file or directory - /Users/chaines/Error: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:434:in `lstat' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:434:in `realpath_rec' /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/pathname.rb:467:in `realpath' /usr/local/Library/Homebrew/utils.rb:272:in `default_cc' /usr/local/Library/Homebrew/utils.rb:276:in `default_compiler' /usr/local/Library/Homebrew/extend/ENV.rb:360:in `compiler' /usr/local/Library/Homebrew/extend/ENV.rb:26:in `setup_build_environment' /usr/local/Library/Homebrew/build.rb:23 /usr/local/Library/Formula/zsh.rb:25 I took a look at the ruby code running here and it looks like it is failing to understand the output of: $ xcrun -find cc xcode-select: Error: No Xcode folder is set. Run xcode-select -switch
Sign in Pricing Blog Support Search GitHub This repository Watch 1,054 Star 29,534 Fork 14,089 Homebrew/legacy-homebrew Code Issues 2 Pull requests 0 Projects 0 Pulse Graphs `/usr/bin/cc` not found #6496 Closed ghost opened this Issue Jul 20, 2011 · 9 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 4 participants ghost commented Jul 20, 2011 I am running a new Lion install and whenever I run brew upgrade I get the following error: $ brew upgrade Error: No such file or directory - /usr/bin/cc here is a gist of my brew doctor. jacknagel commented https://github.com/Homebrew/legacy-homebrew/issues/10245 Jul 21, 2011 Do you have XCode installed? Homebrew can't find any compilers. sverrejoh commented Jul 21, 2011 I guess Xcode isn't installed? I had Xcode removed when I upgraded to Lion. The 4.1 version is now available for free in the AppStore, so installing that should fix the problem. ghost commented Jul 21, 2011 I installed Xcode. I had it installed before the Lion install and then I https://github.com/Homebrew/legacy-homebrew/issues/6496 installed the 4.1 from the App Store. ghost commented Jul 21, 2011 Oh, turns out I didn't run the "Install Xcode" application from the App Store... Thought it just installed everything right when I downloaded the app. Sorry. Will close if this fixes the problem. ghost closed this Jul 21, 2011 ghost commented Jul 21, 2011 Turns out that fixed it. Thanks for the help. Sharpie commented Jul 21, 2011 This has been popping up a bit---it looks like installing Lion nukes /usr/bin back to a "default state" that does not include the compilers. I haven't upgraded yet so I cannot confirm. sverrejoh commented Jul 21, 2011 It happened to me, but not to my co worker. I wonder if the reason is that I removed Xcode 3.2 before installing 4.0, and then 4.0 was nuked by the installation. That's the only difference I know about our setups. Anyway, installing 4.2 from the AppStore fixed it. elliotwoods commented Nov 2, 2011 ok. i do have xcode installed from app store but still have this error :( I had xcode 4 beta installed before lion, then upgraded to lion then installed xcode 4 from app store then yesterday upgraded to 4.2 in app store. will search around.. ell
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business http://superuser.com/questions/390747/homebrew-doesnt-find-xcode-4-3 Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes http://askubuntu.com/questions/372672/what-could-cause-a-script-to-fail-to-find-python-when-it-has-usr-bin-env-pyt a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Homebrew doesn't find XCode 4.3 up vote 7 down vote favorite error no 3 When I try to install something with homebrew I get an error message that it does not find XCode. But I just installed XCode 4.3 and also did a reboot. admins-MacBook-Pro-2:~ ernst$ brew install macvim Warning: Xcode is not installed! Builds may fail! Error: No such file or directory - /usr/bin/cc admins-MacBook-Pro-2:~ ernst$ Any ideas? Update: admins-MacBook-Pro-2:~ ernst$ which cc admins-MacBook-Pro-2:~ ernst$ echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin admins-MacBook-Pro-2:~ ernst$ osx osx-lion xcode homebrew share|improve this question edited error no such Feb 17 '12 at 13:11 asked Feb 16 '12 at 17:14 BetaRide 1,12932439 Are the requires files in /Developer/usr/bin? Does it help to change the $PATH? –Daniel Beck♦ Feb 16 '12 at 17:25 Does it work when you specify --use-llvm? –Daniel Beck♦ Feb 16 '12 at 17:30 --use-llvm did not help, same error message. –BetaRide Feb 16 '12 at 17:52 There's no /Developer directory. –BetaRide Feb 16 '12 at 17:52 What could I change in $PATH? –BetaRide Feb 16 '12 at 17:53 | show 4 more comments 1 Answer 1 active oldest votes up vote 12 down vote accepted I had the same problem and found the solution in Homebrew's issues page. Open Xcode, open Preferences, select Downloads, and install Command Line Tools. Once it is installed Homebrew should work. share|improve this answer answered Feb 17 '12 at 8:02 Ben Scott 7932818 Weird cause I was under the impression that you wouldn't need XCode to get those tools but couldn't find them anywhere. Thanks for this answer, been frustrating me. –localshred Feb 22 '12 at 2:40 You can download the command-line tools separately from developer.apple.com/downloads (you need an Apple ID). The package requires Lion. For more details: kennethreitz.com/xcode-gcc-and-homebrew.html –Teoulas Mar 12 '12 at 9:15 I installed brew and only the command
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top what could cause a script to fail to find python when it has `#!/usr/bin/env python` in the first line? up vote 13 down vote favorite 1 Trying to get casperjs running on Ubuntu 12.04. After installing it when I run I get: 09:20 $ ll /usr/local/bin/casperjs lrwxrwxrwx 1 root root 26 Nov 6 16:49 /usr/local/bin/casperjs -> /opt/casperjs/bin/casperjs 09:20 $ /usr/bin/env python --version Python 2.7.3 09:20 $ cat /opt/casperjs/bin/casperjs | head -4 #!/usr/bin/env python import os import sys 09:20 $ casperjs : No such file or directory 09: 22 $ python Python 2.7.3 (default, Sep 26 2013, 20:03:06) [GCC 4.6.3] on linux2 So Python is present and runnable, casperjs is pointing to the right place and it is a python script. But when I run it I get "No such file". I can fix it by changing the first line of the casperjs python file from: #!/usr/bin/env python to: #!/usr/bin/python Result: $ casperjs --version 1.1.0-DEV I managed to fix it, but I'm wondering why it didn't work with #!/usr/bin/env python, since that seems to be a normal interpreter line. Do I have something configured wrong? Here are the steps to get casperjs: $ git clone git://github.com/n1k0/casperjs.git $ cd casperjs $ ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs $ casperjs : No such file or directory bash python scripts share|improve this question edited Nov 7 '13 at 21:28 asked Nov 7 '13 at 20:25 jcollum 4762920 Can you try running strace /usr/local/bin/casperjs on the nonworking version? Would be helpful if we could see which files env tries to exec, and whether env is failing to find python or python is failing to open the script. –Mark Plotnick Nov 7 '13 at 20:54 @MarkPlotnick ran that, 100s of lines of output, anything in particular? –jcollum Nov 7 '13 at 21:17 Any lines emitted just prior to : No such file or directory being output that contain attempted exe