Can't find '/opt/local/bin/clang'

814 Views Asked by At

Background information

I am trying to install AFL on MacOS X, and have been following the instructions on https://reverse.put.as/2017/07/10/compiling-afl-osx-llvm-mode/. When I type $make in terminal, the following error appears.
[*] Checking for working 'llvm-config'... [*] Checking for working '/opt/local/bin/clang'... [-] Oops, can't find '/opt/local/bin/clang'. Make sure that it's in your $PATH (or set $CC and $CXX). make: *** [test_deps] Error 1
I noticed that clang is located in /Library/Developer/CommandLineTools/usr/bin. Here is the details when I type clang -v in terminal:
Apple clang version 11.0.3 (clang-1103.0.32.62) Target: x86_64-apple-darwin19.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin

Question

How do I move clang to the following directory '/opt/local/bin/clang'? Or is there any other thing I can do to fix this problem?

0

There are 0 best solutions below