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

gm: command not found #9

Open
zeke opened this issue Sep 17, 2014 · 4 comments
Open

gm: command not found #9

zeke opened this issue Sep 17, 2014 · 4 comments

Comments

@zeke
Copy link

zeke commented Sep 17, 2014

$ gify Untitled.mov expansions.gif

/Users/z/.nvm/v0.10.31/lib/node_modules/gify/bin/gify:42
  if (err) { throw err; }
                   ^
Error: Command failed: /bin/sh: gm: command not found

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)

$ gify -v

  error: unknown option `-v'


$ gify -V
0.2.0

$ npm i gm -g
gm@1.16.0 /Users/z/.nvm/v0.10.31/lib/node_modules/gm
├── stream-to-buffer@0.0.1
├── array-series@0.1.5
├── array-parallel@0.1.3
├── through@2.3.6
└── debug@0.7.0

$ gify Untitled.mov expansions.gif

/Users/z/.nvm/v0.10.31/lib/node_modules/gify/bin/gify:42
  if (err) { throw err; }
                   ^
Error: Command failed: /bin/sh: gm: command not found

    at ChildProcess.exithandler (child_process.js:648:15)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Socket.<anonymous> (child_process.js:969:11)
    at Socket.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)
@zeke
Copy link
Author

zeke commented Sep 17, 2014

$ node -v
v0.10.31

@urre
Copy link

urre commented Sep 11, 2015

@zeke do brew install imagemagick && brew install graphicsmagick

@newasmod
Copy link

newasmod commented Apr 4, 2018

doesnt work for me, using linux mint 18.1

@1074531396
Copy link

I had configured /etc/profile for gm;
I can excute ssh command gm .....;

but when I try to use nginx + lua + graphicsmagick to get thumbnail.
os.excute("gm ......")
it show in nginx/logs/error.log : sh: gm: command not found.

my Solution:
ln -s /usr/local/graphicsmagick/bin/gm /usr/bin/gm

then it work.

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

4 participants