I was trying to build software that uses libelf and it couldn't find libgelf.h
What happened (include all command output)?
$ ls -l /usr/local/opt/libelf
lrwxr-xr-x 1 tommy admin 25 Nov 2 2022 /usr/local/opt/libelf@ -> ../Cellar/libelf/0.8.13_1
ls -l /usr/local/opt/Cellar
ls: /usr/local/opt/Cellar: No such file or directory
$ ls -l /opt/homebrew/Cellar/libelf/0.8.13_1/
total 176
-rw-r--r--@ 1 tommy admin 25275 Nov 1 2009 COPYING.LIB
-rw-r--r--@ 1 tommy admin 35406 Nov 1 2009 ChangeLog
-rw-r--r--@ 1 tommy admin 916 Nov 17 16:06 INSTALL_RECEIPT.json
-rw-r--r--@ 1 tommy admin 13232 Nov 1 2009 README
drwxr-xr-x@ 3 tommy admin 96 Nov 1 2009 include/
drwxr-xr-x@ 5 tommy admin 160 Nov 1 2009 lib/
-rw-r--r--@ 1 tommy admin 2678 Nov 17 16:06 sbom.spdx.json
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I was trying to build software that uses libelf and it couldn't find libgelf.h
What happened (include all command output)?
$ ls -l /usr/local/opt/libelf lrwxr-xr-x 1 tommy admin 25 Nov 2 2022 /usr/local/opt/libelf@ -> ../Cellar/libelf/0.8.13_1 ls -l /usr/local/opt/Cellar ls: /usr/local/opt/Cellar: No such file or directory $ ls -l /opt/homebrew/Cellar/libelf/0.8.13_1/ total 176 -rw-r--r--@ 1 tommy admin 25275 Nov 1 2009 COPYING.LIB -rw-r--r--@ 1 tommy admin 35406 Nov 1 2009 ChangeLog -rw-r--r--@ 1 tommy admin 916 Nov 17 16:06 INSTALL_RECEIPT.json -rw-r--r--@ 1 tommy admin 13232 Nov 1 2009 README drwxr-xr-x@ 3 tommy admin 96 Nov 1 2009 include/ drwxr-xr-x@ 5 tommy admin 160 Nov 1 2009 lib/ -rw-r--r--@ 1 tommy admin 2678 Nov 17 16:06 sbom.spdx.json
What did you expect to happen?
I expect the link to point to the right location
Step-by-step reproduction instructions (by running
brew
commands)