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

Can't execute on MacOS #94

Open
gothvf opened this issue May 10, 2022 · 2 comments
Open

Can't execute on MacOS #94

gothvf opened this issue May 10, 2022 · 2 comments

Comments

@gothvf
Copy link

gothvf commented May 10, 2022

I can't figure out this one:

Export-AzViz: 'GraphViz' is not installed on this system and is a prerequisites for this module to work. Please download and install from here: https://graphviz.org/download/ and re-run this command.

Thanks!

@cjkoester
Copy link

If you're using an M1 Mac, you need to add the path '/opt/homebrew/bin/dot' to the PossibleGraphVizPaths array in AzViz/src/private/Get-DOTExecutable.ps1

'/opt/homebrew/bin' is the directory where Homebrew stores packages on M1 Macs.

$PossibleGraphVizPaths = @(
    'C:\Program Files\NuGet\Packages\Graphviz*\dot.exe',
    'C:\program files*\GraphViz*\bin\dot.exe',
    '/usr/local/bin/dot',
    '/usr/bin/dot',
    '/opt/homebrew/bin/dot'
)

@gothvf
Copy link
Author

gothvf commented May 11, 2022

Thanks a lot! That was exactly my problem!

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

2 participants