Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andreas-fahrecker opened this issue Jan 7, 2023 · 4 comments

Comments

@andreas-fahrecker
Copy link

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
Copy link

@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
Copy link

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 #197
bump virt-manager/view-viewer and deps #166
New MacBook Air with fresh Big Sur| Error with installing virt-viewer https://github.com/jeffreywildman/homebrew-virt-manager/issues/165`

@hakasapl
Copy link

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

@brylor
Copy link

brylor commented Feb 28, 2023

@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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants