On OS X (El Capitan, but likely to be also the case for previous version os OS X) the following error can take place after upgrading OS X and removing OS X beta versions.
Error: Failure while executing: /usr/bin/otool -L
/usr/bin/install_name_tool
In order to fix this type of issue:
Run in Terminal /usr/bin/otool and check the resulting error message.
If you get the following error message:
xcrun: error: active developer path
("/Applications/Xcode-beta.app/Contents/Developer") does not exist,
use xcode-select --switch path/to/Xcode.app to specify
Then simply update the path to Xcode using xcode-select command in terminal:
sudo xcode-select --switch /Applications/Xcode.app
This should fix the issue and let you run all brew commands without any problem.
Related
I get this error when trying to brew install geckodriver
==> Installing geckodriver dependency: rust
==> Downloading https://static.rust-lang.org/dist/rustc-1.42.0-src.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/rust/1.42.0 --release-channel=stable
==> make
Last 15 lines from /Users/nilshaus/Library/Logs/Homebrew/rust/02.make:
2020-04-12 21:13:48 -0400
make
make: error: unable to find utility "make", not a developer tool or in PATH
xcodebuild: error: SDK "/Library/Developer/CommandLineTools/SDKs/MacOSX10.12.sdk" cannot be located.
clang: error: unable to find utility "clang", not a developer tool or in PATH
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
Rust dependents that currently fail to build from source https://github.com/Homebrew/homebrew-core/issues/50815
Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC. You are responsible for resolving any issues you
experience while you are running this old version.
Obviously 10.11 is no longer supported by Homebrew. The fact that it can't find make is weird, but I'm willing to bet that the real issue is that the rust build expects the 10.12 command line tools. Is there a way for me to install them on OS X 10.11? I have Xcode 8.
I encountered this same error message when brew upgrade installed a new version of clang and tcl-tk. Found a workaround here:
Xcode was overriding the command line tools install. After moving
Xcode to the trash I found the directory of the command line tools
install:
clang --version
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
/Library/Developer/CommandLineTools/usr/bin
https://github.com/pytorch/pytorch/issues/1139#issuecomment-302967251
Another possible workaround - instead of moving Xcode, choose one of the following to specify CLT version:
sudo xcode-select -s /Library/Developer/CommandLineTools
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
To display the current CLT path: xcode-select -p
https://github.com/pytorch/pytorch/issues/1139#issuecomment-303033942
I've tried running:
1) xcode-select --reset
2) xcode-select --install
But I still get:
Solution is to go to:
https://developer.apple.com/download/more/?name=for%20Xcode
and manually download the correct xcode tools for your version of MacOS and install them!
I'm trying to setup and install theos in my Mac OS X El Capitan with terminal. I'm following iPhoneDevWiki (http://iphonedevwiki.net/index.php/Theos/Setup) and doing every single step correctly, I've done it multiple times but everytime I get this little error. I already have all dependencies, the problem comes when I do the following command:
git clone git://git.saurik.com/ldid.git
fatal: destination path 'ldid' already exists and is not an empty directory.
cd ldid
git submodule update --init
./make.sh
Password:
xcode-select: error: invalid developer directory '/Applications/Xcode-5.1.1.app
I have put my password and it did show the error. I have already tried the following commands:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
sudo xcode-select -s </Applications/Xcode.app/Contents/Developer>
This second one actually leads me to an error of "newline" or something like that.
My xcode version is not 5.1.1, I don't even know why my Terminal is saying Xcode.app is Xcode-5.1.1!
xcode-select -v
xcode-select version 2343.
I have already tried to put the command:
xcode-select -p
The output is:
/Applications/Xcode.app/Contents/Developer
So, if that is the output, why it is saying my developer directory is "/Applications/Xcode-5.1.1.app" ?
Please help me!
Open make.sh file inside ldid folder. In line 16 edit the path to:
/Applications/Xcode.app/Contents/Developer
Then run ./make.sh again.
Change the name of your Xcode app to Xcode-5.1.1 in the Applications folder. That worked for me.
I made a mistake installing fink on my iMac running OS X 10.8. I typed in a command to uninstall from the fink website http://www.finkproject.org/faq/usage-fink.php?phpLang=en#removing
fink remove --recursive daemonic xinitrc
…but I got the error message:
Failed: no package specified for command 'remove --recursive'!
I have not installed anything with fink, so can I safely skip this command and use the following command instead?
sudo rm -rf /sw
I am trying to install CLT on OSX 10.9 Mavericks.
Before I ask, I referred to these questons:
Failed to install command line tools on OSX Mavericks
Xcode 4.4 and later install Command Line Tools
I installed XCode 5 via the App Store, with the latest version.
Then, as mentioned in all kinds of tutorials, I typed "xcode-select --install" in the bash, however, there weren't any window telling me to install the CLI, but these outputs:
$ xcode-select --install
Usage: xcode-select -print-path
or: xcode-select -switch <xcode_folder_path>
or: xcode-select -version
Arguments:
-print-path Prints the path of the current Xcode folder
-switch <xcode_folder_path> Sets the path for the current Xcode folder
-version Prints xcode-select version information
I tried to run "/System/Library/CoreServices/Install\ Command\ Line\ Developer\ Tools.app" manually, but nothing showed up.
I opened the package, and tried
"sudo /System/Library/CoreServices/Install\ Command\ Line\ Developer\ Tools.app/Contents/MacOS/Install\ Command\ Line\ Developer\ Tools "
And failed like this:
"2013-11-01 19:48:45.060 Install Command Line Developer Tools[42474:507] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x6207, name = 'com.apple.dt.CommandLineTools.installondemand'
See /usr/include/servers/bootstrap_defs.h for the error codes."
I enabled root account and try to run it under root, same output.
Unknown of what that means, I tried "--pkg-info=com.apple.pkg.DeveloperToolsCLI"
It seems that CLI is not working, the outputs are:
"No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'."
I went to Apple 's site, downloaded and installed this file:
command_line_tools_os_x_mavericks_for_xcode__late_october_2013.dmg
Everything goes smoothly, no error reported during the installation.
However, when I try to find the CLI in XCode, it is not there.
Another time "--pkg-info=com.apple.pkg.DeveloperToolsCLI", still "No receipt for 'com.apple.pkg.DeveloperToolsCLI' found at '/'.".
Now I am completely puzzled...how can I install this CLI?
Thank you very much in advance.
Make sure that you have updated to the most recent version of Mavericks, then reboot. Run xcode-select --install again. Otherwise, uninstall XCode and reinstall again from App Store.
I called sudo rm -rf /Library/Developer/CommandLineTools and then xcode-select --install.
sw_vers:
ProductName: Mac OS X
ProductVersion: 10.15.2
BuildVersion: 19C57