### ImageMagick version

6.9.12-98

### Operating system

MacOS

### Operating system, version and so on

14.2.1

### Description

I'm trying to manually install imageMagick on my mac because somehow brew installation does not contain `MagickCore.pc` or `MagickWand.h` file, which caused problem in follow-up installation, I mentioned that in a previous [issue here](https://github.com/ImageMagick/ImageMagick/issues/7043)

### Steps to Reproduce

I followed instruction [here](https://imagemagick.org/script/advanced-linux-installation.php), and dowloaded the `ImageMagick-6.9.12-98.tar.xz` file from https://imagemagick.org/archive/releases/

`./configure` runs successfully, but then `make` returned following error:

```
ImageMagick-6.9.12-98 % make
/Library/Developer/CommandLineTools/usr/bin/make  all-am
  CCLD     magick/libMagickCore-6.Q16.la
ld: warning: search path '/usr/local/opt/imagemagick@6/lib' not found
ld: library 'lqr-1' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [magick/libMagickCore-6.Q16.la] Error 1
make: *** [all] Error 2
```

Thanks

### Images

_No response_
ImageMagick manual installation errored out while running make
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : ImageMagick manual installation errored out while running make
Issue date:

--- start body ---
### ImageMagick version

6.9.12-98

### Operating system

MacOS

### Operating system, version and so on

14.2.1

### Description

I'm trying to manually install imageMagick on my mac because somehow brew installation does not contain `MagickCore.pc` or `MagickWand.h` file, which caused problem in follow-up installation, I mentioned that in a previous [issue here](https://github.com/ImageMagick/ImageMagick/issues/7043)

### Steps to Reproduce

I followed instruction [here](https://imagemagick.org/script/advanced-linux-installation.php), and dowloaded the `ImageMagick-6.9.12-98.tar.xz` file from https://imagemagick.org/archive/releases/

`./configure` runs successfully, but then `make` returned following error:

```
ImageMagick-6.9.12-98 % make
/Library/Developer/CommandLineTools/usr/bin/make  all-am
  CCLD     magick/libMagickCore-6.Q16.la
ld: warning: search path '/usr/local/opt/imagemagick@6/lib' not found
ld: library 'lqr-1' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [magick/libMagickCore-6.Q16.la] Error 1
make: *** [all] Error 2
```

Thanks

### Images

_No response_
--- end body ---
