I'm trying to install a package for bioinformatics analysis on macOS Monterey v 12.3.1 on my MacBook pro (M1)
When I use the make command (as required for the installation process) I get this output:
make -C /Users/msozzoni/Documents/Terminale/bin/angsd/htslib make[1]: Entering directory '/Users/msozzoni/Documents/Terminale/bin/angsd/htslib' make[1]: Leaving directory '/Users/msozzoni/Documents/Terminale/bin/angsd/htslib' x86_64-apple-darwin13.4.0-clang++ -O3 -o angsd *.o /Users/msozzoni/Documents/Terminale/bin/angsd/htslib/libhts.a -lz -lm -lbz2 -llzma -lpthread -lcurl /Users/msozzoni/Documents/Terminale/bin/htslib/ ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/liblzma.tbd' for architecture x86_64 clang-12: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Makefile:114: angsd] Error 1
To resolve this I've tried using the command:
xcode-select --install
as suggested here (https://developer.apple.com/forums/thread/672939).
but says:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
I then tried making a full upgrade using:
brew upgrade llvm brew upgrade gcc sudo rm -rf /Library/Developer/CommandLineTools xcode-select --install
but the problem is not solved and if I try to run make again I get the same error as before.
Do you have some idea? Thank you in advance