inkscape命令行,在mac上它在哪里?

ola*_*ala 27 macos inkscape

这是一个有点愚蠢的问题.我已经在我的mac(Marvericks OS)上安装了Inkscape,关注此页面http://www.inkscape.org/en/download/mac-os/

我知道有一个命令行选项与inkscape.我试图在终端上键入inkscape,但没有这样的命令.我很困惑......这是否意味着我需要安装linux版本的inkscape才能使用命令行?

Jos*_*h B 37

我安装了Inkscape /Applications并从终端运行它可以解决问题:

/Applications/Inkscape.app/Contents/Resources/bin/inkscape-bin --help

Usage: inkscape-bin [OPTIONS...] [FILE...]

Available options:
  -V, --version                             Print the Inkscape version number

... etc.
Run Code Online (Sandbox Code Playgroud)

为了便于使用符号链接,/usr/local/bin即:

ln -s /Applications/Inkscape.app/Contents/Resources/bin/inkscape-bin \
      /usr/local/bin/inkscape
Run Code Online (Sandbox Code Playgroud)

通常,在MacOS上,需要使用绝对路径调用Inkscape,并且作为参数给出的所有文件也应该是完整路径.也可以看看:

https://bugs.launchpad.net/inkscape/+bug/1449251

  • 截至 2020 年,命令行应用程序上的位置现在为“/Applications/Inkscape.app/Contents/MacOS/inkscape”。 (6认同)
  • 您可以为这些事物添加正常位置的快捷方式.`ln -s /Applications/Inkscape.app/Contents/Resources/bin/inkscape/usr/local/bin/inkscape`这为inkscape创建了一个符号链接到已经在标准路径中的文件夹 (2认同)

Sta*_*mes 27

截至 2020 年,MacOS 上的可执行文件现在位于

/Applications/Inkscape.app/Contents/MacOS/inkscape
Run Code Online (Sandbox Code Playgroud)

您可以使用以下符号链接它:

ln -s /Applications/Inkscape.app/Contents/MacOS/inkscape \
  /usr/local/bin/inkscape
Run Code Online (Sandbox Code Playgroud)

有关命令行使用的更多信息请点击此处