I've just started a brand new Crystal app, added Kemal, and when building the "Hello World!" app from the Kemal documentation, I get:
$ crystal build --release src/orderprinterlinks.cr
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
On OSX 10.12.4
Any ideas why the library is not being found?
FIXED! Error was unrelated to Crystal / Kemal.. running the below command fixes the issue:
xcode-select --install
Seems the XCode CLI tools are removed silently when upgrading XCode versions, so this adds them back in, then everything works!
$ xcode-select --install
$ xcode-select --switch /Library/Developer/CommandLineTools
Related
I use xcrun altool command to connect app store. But the command always fails with below errors.
Environment:-
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.7
BuildVersion: 19H1922
$ xcodebuild -version
Xcode 11.6
Build version 11E708
$ xcode-select -v
xcode-select version 2373.
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
$ xcrun --version
xcrun version 50.
I'm getting this error when trying to run xcrun altool on terminal.
Error:-
$ xcrun altool
dyld: Library not loaded: #rpath/ITunesConnectFoundation.framework/Versions/A/ITunesConnectFoundation
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/altool
Reason: image not found
Abort trap: 6
The above command expected output would be something like below.
Error: code -1003 (No command was specified. Unable to run altool.)
How am I able to resolve this issue? Any advice is appreciated
First thing first, altool is deprecating, consider moving to notarytool as soon as possible. See Apple Doc
And both your Xcode version and your macOS version are far too old, my Xcode is 13.4.1 already. So I doubt whether App Store can accept connections from your Xcode version.
For your question, if you want a quick fix, just upgrade your macOS and the Xcode app. Or you can check whether your framework is missing at: /Applications/Xcode.app/Contents/SharedFrameworks/ITunesConnectFoundation.framework, may be a reinstall of your current Xcode version.
When installing a program using gfortran i get the error
ld: library not found for -lbundle1.o
collect2: error: ld returned 1 exit status
Searching stackoverflow i found library not found for -lbundle1.o when installing python packages (ffnet, spacepy) on my mac , where the answer is to call
xcode-select --install
To install the xcode command line tools. This then gave me
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Telling me that i have already installed them. In case my installation was somehow corrupted i have already tried deleting /Library/Developer/CommandLineTools and reinstalling but it did not change anything. (My macOS version is 10.14.1, xcode-select version 2354)
I am trying to install Homebrew on Mac 10.12 with the command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
On running this, I am getting an error:
You have not agreed to the Xcode license.
Before running the installer again please agree to the license by opening
Xcode.app or running:
sudo xcodebuild -license
So I run sudo xcodebuild -license command then again got another error which is:
dyld: Library not loaded: #rpath/DVTFoundation.framework/Versions/A/DVTFoundation
Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild
Reason: no suitable image found. Did find:
/Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation: cannot load '/Applications/Xcode.app/Contents/Developer/usr/bin/../../../SharedFrameworks/DVTFoundation.framework/Versions/A/DVTFoundation' because Objective-C garbage collection is not supported
Please review and agree to the software license agreements!
I looked into this error also but no luck. While looking into this, I tried to reinstall xcode with the command:
xcode-select --install
Then I check for xcode installation by:
/usr/bin/xcode-select -print-path
The path printed, which seems to be correct, is:
/Applications/Xcode.app/Contents/Developer
Now can please somebody help me in accepting license agreement for xcode? This is where I am stuck and not able to move forward. Any suggestions or my error correction will be commendable.
If you have OSX 10.12 then xcode version 4.4.2 will not work with that in either way by a terminal or GUI. First try to update your xcode with the compatible version. Xcode 8 will be supported with OSX 10.11 and above.
I'm using OS X with Yosemite 10.10.5 and I know I have XCode and the Command Line Tools installed. If I run
$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
and
$xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
But then
$ gcc --version
-bash: gcc: command not found
It is entirely possible, the I deleted something I shouldn't have. Anyone have any clue on what I'm missing?
Note: I think the native XCode was installed, but I also successfully ran:
brew install gcc
brew link gcc
Still can't find gcc.
To add more details from questions:
$ which gcc
$
Gives no answer whatsoever and I DON'T have usr/bin/gcc or any similar folder (gcc4.9 or else). I tried reinstalling XCode without success and also tried reinstalling gcc through homebrew. It compiles and links just fine, but can't find the gcc.
I am trying to build dtrace on Mac OS X 10.7.3 with Xcode 4.3.2. However, running xcodebuild gives me following errors.
~/dtrace-90/libelf/ar.c:34:16: error: ar.h: No such file or directory
~/dtrace-90/libelf/ar.c:35:20: error: stdlib.h: No such file or directory
Why is xcodebuild failing to find it own standard header files?
I have done: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Thanks!
I finally figured it out. I installed "Command Line Tools for Xcode" and things now work :-)