MarcoEidinger / SwiftPlantUML

A command-line tool and Swift Package for generating class diagrams powered by PlantUML

Home Page:https://marcoeidinger.github.io/SwiftPlantUML/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installing instruction for Homebrew is incomplete

gerchicovy opened this issue · comments

I'm able to run brew install swiftplantuml but when I try to use it I get the following error:
-bash: swiftplantuml: command not found

MacOS 12.1

To make Homebrew-installed programs available in your shell, you need to add your Homebrew installation location to your $PATH. Have you done that? This is not swiftplantuml specific and therefore not listed in the README

followed this instruction but it has no effect:
https://sourabhbajaj.com/mac-setup/Homebrew/
And as I understand if I can perform commands brew ... then it was configured correctly, wasn't it?

And as I understand if I can perform commands brew ... then it was configured correctly, wasn't it?

No, this just means that Homebrew was correctly installed and accessible from $PATH.

Homebrew installs swiftplantuml for example in /usr/local/Cellar/swiftplantuml/0.6.0 and also creates a symlink in /usr/local/bin

Please make sure that usr/local/bin is part of your $PATH. You chan check this with command echo $PATH.

P.S.: Alternatively you could address the binary directly with /usr/local/Cellar/swiftplantuml/0.6.0/bin/swiftplantuml --help ;)

Homebrew installs swiftplantuml for example in /usr/local/Cellar/swiftplantuml/0.6.0 and also creates a symlink in /usr/local/bin
there wasn't "swiftplantuml" but it appeared when I ran "brew install swiftplantuml" again. So somehow it was fixed by itself. Thanks