jeffreywildman / homebrew-virt-manager

A set of homebrew formulae to install virt-manager and virt-viewer on MAC OSX
1k stars 266 forks source link

M1 Macbook Pro with Monterey | Error with installing virt-viewer #197

Open andreas-fahrecker opened 1 year ago

andreas-fahrecker commented 1 year ago

Hello people,

I have a Macbook M1 Pro with macOS Monterery (Version 12.6.1). And when I want to install virt-viewer I get the following error . Has anyone a idea how to solve this?

==> Fetching jeffreywildman/virt-manager/virt-viewer
==> Downloading https://virt-manager.org/download/sources/virt-viewer/virt-viewer-8.0.tar.gz
Already downloaded: /Users/andreas/Library/Caches/Homebrew/downloads/0daaa768f148a86e56367e58ce0e49c09df31344fa7aac0cbbd9446f4fb4be8c--virt-viewer-8.0.tar.gz
==> Installing virt-viewer from jeffreywildman/virt-manager
==> ./configure --disable-update-mimedb --with-gtk-vnc --with-spice-gtk --prefix=/opt/homebrew/Cellar/virt-viewer/8.0
Last 15 lines from /Users/andreas/Library/Logs/Homebrew/virt-viewer/01.configure:
checking for virDomainOpenGraphicsFD in -lvirt... yes
checking for GTK... yes
checking for GTK_VNC... yes
checking for SPICE_GTK... no
configure: error: Package requirements (spice-client-gtk-3.0 >= 0.35
                                     spice-client-glib-2.0 >= 0.35) were not met:

Package 'gobject-introspection-1.0', required by 'spice-client-glib-2.0', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables SPICE_GTK_CFLAGS
and SPICE_GTK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help:
bump virt-manager/view-viewer and deps https://github.com/jeffreywildman/homebrew-virt-manager/pull/166
New MacBook Air with fresh Big Sur| Error with installing virt-viewer https://github.com/jeffreywildman/homebrew-virt-manager/issues/165
krishjainx commented 1 year ago

@andreas-fahrecker I don't have an M1 mac currently on me to test this but can you try the following

brew untap jeffreywildman/homebrew-virt-manager; brew tap krishjainx/homebrew-virt-manager, brew install virt-manager

arunabhabanerjee commented 1 year ago

I am also facing the same issue on my 2020 Intel MacBook Pro.

`==> Fetching jeffreywildman/virt-manager/virt-viewer ==> Downloading https://virt-manager.org/download/sources/virt-viewer/virt-viewer-8.0.tar.gz Already downloaded: /Users/arunabhabanerjee/Library/Caches/Homebrew/downloads/0daaa768f148a86e56367e58ce0e49c09df31344fa7aac0cbbd9446f4fb4be8c--virt-viewer-8.0.tar.gz ==> Installing virt-viewer from jeffreywildman/virt-manager ==> ./configure --disable-update-mimedb --with-gtk-vnc --with-spice-gtk --prefix=/usr/local/Cellar/virt-viewer/8.0 Last 15 lines from /Users/arunabhabanerjee/Library/Logs/Homebrew/virt-viewer/01.configure: checking for virDomainOpenGraphicsFD in -lvirt... yes checking for GTK... yes checking for GTK_VNC... yes checking for SPICE_GTK... no configure: error: Package requirements (spice-client-gtk-3.0 >= 0.35 spice-client-glib-2.0 >= 0.35) were not met:

Package 'gobject-introspection-1.0', required by 'spice-client-glib-2.0', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

Alternatively, you may set the environment variables SPICE_GTK_CFLAGS and SPICE_GTK_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.

Do not report this issue to Homebrew/brew or Homebrew/core!

These open issues may also help: M1 Macbook Pro with Monterey | Error with installing virt-viewer https://github.com/jeffreywildman/homebrew-virt-manager/issues/197 bump virt-manager/view-viewer and deps https://github.com/jeffreywildman/homebrew-virt-manager/pull/166 New MacBook Air with fresh Big Sur| Error with installing virt-viewer https://github.com/jeffreywildman/homebrew-virt-manager/issues/165`

hakasapl commented 1 year ago

I am experiencing this bug on an M1 macbook pro. I tried installing gobject-introspection manually using brew but the same issue occurs.

brylor commented 1 year ago

@andreas-fahrecker I don't have an M1 mac currently on me to test this but can you try the following

brew untap jeffreywildman/homebrew-virt-manager; brew tap krishjainx/homebrew-virt-manager, brew install virt-manager

This worked for me on my M1 Air. Thanks @krishjainx !