本文介绍了inkscape命令行,在Mac上在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个愚蠢的问题.我在此页面 http://www.inkscape.org/上的Mac(Marvericks OS)上安装了Inkscape. zh/download/mac-os/

This is a kinda silly question. I've installed Inkscape on my mac (Marvericks OS) following this page http://www.inkscape.org/en/download/mac-os/

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

I know there is a command line option with inkscape. I tried to type inkscape on Terminal and there is no such command. I'm confused... Does this mean that I need to install the linux version of inkscape in order to use the command line?

推荐答案

我在/Applications中安装了Inkscape,并从终端运行它可以达到目的:

I have Inkscape installed in /Applications and running this from a terminal does the trick:

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

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

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

... etc.

为便于使用,将其链接到/usr/local/bin,即:

For ease of use symlink it to /usr/local/bin i.e.:

ln -s /Applications/Inkscape.app/Contents/Resources/bin/inkscape-bin \
      /usr/local/bin/inkscape

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

In general, on MacOS Inkscape needs to be called with an absolute path, and all files given as arguments should also be full paths. See also:

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

这篇关于inkscape命令行,在Mac上在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 17:49