Closed mo5h closed 3 years ago
That's weird. Please run brew gist-logs sshfs-mac
and post the URL here.
That's weird, the build thinks glib
is in /usr/local
instead of /opt/homebrew
. Do you have dual (Intel & M1) Homebrew installs on your Mac? What's the output of the following?
which -a pkg-config
pkg-config --cflags --libs glib-2.0
Yeah that'd be it, I've got dual installs because some homebrew packages aren't aarch64 compatible
On Mon, 19 Jul 2021 at 14:09, Adrian Ho @.***> wrote:
That's weird, the build thinks glib is in /usr/local instead of /opt/homebrew. Do you have dual (Intel & M1) Homebrew installs on your Mac? What's the output of the following?
which -a pkg-config pkg-config --cflags --libs glib-2.0
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gromgit/homebrew-fuse/issues/14#issuecomment-882219794, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF3JYI4KY3NOTBFPPWMQ6TTYOQODANCNFSM5AQZ4NQQ .
And what's the output of:
which -a pkg-config
/usr/local/bin/pkg-config --cflags --libs glib-2.0
/opt/homebrew/bin/pkg-config --cflags --libs glib-2.0
?
○ → which -a pkg-config
/usr/local/bin/pkg-config --cflags --libs glib-2.0
/opt/homebrew/bin/pkg-config --cflags --libs glib-2.0
/opt/homebrew/bin/pkg-config
/usr/local/bin/pkg-config
/opt/homebrew/bin/pkg-config
/usr/local/bin/pkg-config
-I/usr/local/Cellar/glib/2.68.3/include/glib-2.0 -I/usr/local/Cellar/glib/2.68.3/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre/8.45/include -L/usr/local/Cellar/glib/2.68.3/lib -L/usr/local/opt/gettext/lib -lglib-2.0 -lintl
-I/opt/homebrew/Cellar/glib/2.68.3/include/glib-2.0 -I/opt/homebrew/Cellar/glib/2.68.3/lib/glib-2.0/include -I/opt/homebrew/opt/gettext/include -I/opt/homebrew/Cellar/pcre/8.45/include -L/opt/homebrew/Cellar/glib/2.68.3/lib -L/opt/homebrew/opt/gettext/lib -lglib-2.0 -lintl```
OK, I think I've found the problem: sshfs
's configure
force-adds /usr/local/lib/pkgconfig
at the beginning of PKG_CONFIG_PATH
, so your Intel Homebrew libs always trump the M1 ones.
I've just pushed a formula patch to address this. Please brew update
and brew install sshfs-mac
again.
Looks like that's fixed it, thanks!
Got this error when installing sshfs-mac on my M1 Mac (
abrew
is aliased to my m1brew
installation) saw you were interested to hear if anyone got any errors so here's one: