where is install_name_tool for Xcode 5.1.1 - xcode

I had installed command line tools when I installed Xcode 5 in my mac.
install_name_tool was working fine back then.
Now, When I try to use install_name_tool I get following error, malformed object (unknown load command 4)
Upon googling I found out that this error is due to the command line tools are not updated along with OS or Xcode. So i went here (https://developer.apple.com/downloads/index.action) downloaded the command line tools for 10.9, and tried again on terminal, but the error persisted.
Then I tried updating my Xcode from 5-->5.1.1, went to Downloads in preferences, there was no option to download the command line tools. I installed the pkg which I downloaded earlier for command line tools, I am still getting the same error.
install_name_tools doesnt exist in this director, as one of the answers on other similar questions suggested--- > /Applications/Xcode.app/Contents/Developer/usr/bin/
My question, where does the install_name_tool gets installed after installing it from a pkg?

Related

Homebrew doesn't install GCC correctly

I recently upgraded xcode command line tools to version 2384. After this I decided to reinstall gcc which was installed with homebrew. Installation completed with no errors but when I tried to compile a simple code with iostream library, it gave an error saying:
/usr/local/Cellar/gcc/10.2.0/include/c++/10.2.0/cwchar:44:10: fatal error: wchar.h: No such file or directory
Later, I checked the library folder and there were multiple files missing such as assert.h. I want to ask is there any way to fix this other than installing every file one by one? I already tried updating homebrew and xcode command line tools.

Installing Xcode command line tools

I performed a fresh install of macOS Mojave 10.14. Immediately after that I installed Xcode Version 10.0 (10A255) from the Mac App Store.
Now, I wish to install Homebrew which requires Xcode command line tools to be installed. My understanding is that installing Xcode also installs the command line tools. Or not?
As per this answer, I checked if the command line tools are installed by running:
xcode-select -p
which printed the path for the Developer directory as follows:
/Applications/Xcode.app/Contents/Developer
As suggested in the answer, I also verified the return value by running:
echo $?
which retuned 0.
I also ran, gcc and make and bash was able to locate and execute them.
Thus far I am convinced that the Xcode command line tools are installed. Now when I execute:
xcode-select --install
I get this alert:
What's the probable reason for this disparity? Will this install Xcode command line tools twice? Or overwrite the existing installation?
As I understand, Xcode command line tools can be installed without installing Xcode. Also, from my previous experience, if the command line tools aren't installed separately from Xcode (by running xcode-select --install), they are not detected by Homebrew, i.e. when running brew config, the value for CLT: is shown as N/A.
Here's the complete picture (pardon the pun):
Although I am talking in context of macOS Mojave, the question remains the same with regard to previous versions of macOS.
What is the advisable approach to take here?
Note: After installing Xcode, I launched it, accepted license agreement and let it finish its run of installing additional tools (which is a one time activity).
Following worked for me, only command line tool can also me installed.
After you updated to Mojave 10.14 Go to https://developer.apple.com/download/more/ search for "command line" then
Download "Command line tool for MacOS 10.14"
Once dmg is downloaded install the package.
Verify package installation

installed full xcode on mavericks macbook, but homebrew install says command line tools not installed

Installed the full XCODE (about 2 GB) in a brand new mavericks macbook, using App Store, then rebooted. Ran Xcode. Went to Preferences > Location, verified Command Line Tools shows up (v 5.0.2 5A3005).
In terminal, xcode-select -print-path shows /Applications/Xcode.app/Contents/Developer plus I can now run gcc --version and see version info.
So AFAIK command line tools are installed.
However, when I try to install homebrew, it opens the gui dialog offering to install XCode or the command line tools.
I don't want to end up double-installing, with conflicting paths, so any help on why the brew installer isn't "seeing" the commandline tools would be appreciated.
As noted in my comment, it is in fact a homebrew issue that it's not able to find the command line tools 'inside' Xcode due to Xcode recently changing where the command line tools were located... see these two issuesL github.com/Homebrew/homebrew/issues/24471 and github.com/Homebrew/homebrew/issues/20427
The solution was therefore to simply accept the option to install the command line tools when the gui window pops up after homebrew can't find them.

Installing command line tools Xcode 5

I have tried and tried (looked at many headings for this) and I still don't have an answer to my problem. I am trying to install the Pebble SDK 1.12 and install command line tools of Xcode 5.
Everytime I try xcode-select --install in terminal I get "Can't install software because it is not currently available in the Software Update server"
I have tried to reinstall Xcode and that didn't work.
When I got to Xcode-preferences-downloads there isn't a section for the command line tools.
I have also tried installing them from the Developer site but to no avail. The download looks correct and then I go to Xcode to see the preferences and the command line tools aren't listed.
Anything you all can suggest?
Using xcode-select --install in Terminal and choose install tools
On OS X 10.9, the Command Line Tools component no longer appears in the Preferences pane for Xcode 5, unlike on OS X 10.8. Also, the not currently available message appears to be a bug in OS X 10.9 when the currently installed Command Line Tools are already up-to-date. If you have a populated /usr/include directory and /usr/bin/cc --version gives you something, you're probably fine.

not able to use svn command from terminal in Mac OS 10.8

Team
SVN commands were working fine in terminal.
I have uninstalled and installed the latest version of my svnclient. from then, i'm not able to access the svn commands from terminal in my mac.
following is the error message i see in terminal
dyld: Library not loaded: /opt/local/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/bin/svn Reason: image not found
Trace/BPT trap: 5
I'm using Mac OS 10.8.2
Kindly help me to fix this.
It looks like your local copy of "svn" (installed in /usr/local/bin) is dependent on a library that doesn't exist in /opt/local/lib anymore (which might have gone away when you uninstalled and re-installed the latest version of your svn client).
On my own machine, "svn" was installed into the "/usr/bin" directory via the Xcode command line tools, which you can download from Apple directly here (look at the "Looking for additional developer tools?" link) or you can install the command line tools directly from Xcode preferences (look in the "Downloads" tab, there will be a "Components" section). Once you install the command line tools, you can them "rm" the copy of svn that's in "/usr/local/bin".
Try
brew install libssl
I once had similar problem with "libmagic", instead of "libssl", which was resolved by the "brew install" command.

Resources