in reply to Imager support for PNG, JPEG and GIF on macOS Sonoma

The way to get the Homebrew-installed location of a given package is (here) brew --prefix giflib, which would avoid needing the "locate" stuff.

Replies are listed 'Best First'.
Re^2: Imager support for PNG, JPEG and GIF on macOS Sonoma
by Anonymous Monk on Jan 13, 2026 at 00:01 UTC
    > The way to get the Homebrew-installed location of a given package is (here) brew --prefix giflib, which would avoid needing the "locate" stuff.

    I know this node is old but it might be wrong so let's go.

    Thanks etj but --prefix doesn't seem to return the requred paths:

    % brew --prefix giflib
    /opt/homebrew/opt/giflib
    
    % ls -l /opt/homebrew/opt/giflib
    lrwxr-xr-x /opt/homebrew/opt/giflib -> ../Cellar/giflib/5.2.2
    
    Required:
    --incpath=/opt/homebrew/include 
    --libpath=/opt/homebrew/var/homebrew/linked/giflib/lib