carloscuesta / gitmoji

An emoji guide for your commit messages. 😜
https://gitmoji.dev
MIT License
15.69k stars 800 forks source link

Install issues on linux #288

Closed fluffynuts closed 5 years ago

fluffynuts commented 5 years ago

Hello @carloscuesta :sunglasses:!

I'm having issues trying to install gitmoji on a linux box (after having used it quite successfully on a windows machine for a while).

I've used nvm to switch node versions, so this has failed with the same result on:

Upon attempting to install gitmoji, I get the error:

> kexec@1.3.0 install /home/daf/.nvm/versions/node/v8.15.0/lib/node_modules/gitmoji/node_modules/kexec
> node-gyp configure build

make: Entering directory '/home/daf/.nvm/versions/node/v8.15.0/lib/node_modules/gitmoji/node_modules/kexec/build'
  CXX(target) Release/obj.target/kexec/src/kexec.o
../src/kexec.cc: In function ‘int clear_cloexec(int)’:
../src/kexec.cc:22:30: error: ‘F_GETFD’ was not declared in this scope
     int flags = fcntl (desc, F_GETFD, 0);
                              ^~~~~~~
../src/kexec.cc:22:17: error: ‘fcntl’ was not declared in this scope
     int flags = fcntl (desc, F_GETFD, 0);
                 ^~~~~
../src/kexec.cc:22:17: note: suggested alternative: ‘fcvt’
     int flags = fcntl (desc, F_GETFD, 0);
                 ^~~~~
                 fcvt
../src/kexec.cc:26:15: error: ‘FD_CLOEXEC’ was not declared in this scope
     flags &= ~FD_CLOEXEC; //clear FD_CLOEXEC bit
               ^~~~~~~~~~
../src/kexec.cc:26:15: note: suggested alternative: ‘ENOEXEC’
     flags &= ~FD_CLOEXEC; //clear FD_CLOEXEC bit
               ^~~~~~~~~~
               ENOEXEC
../src/kexec.cc:27:25: error: ‘F_SETFD’ was not declared in this scope
     return fcntl (desc, F_SETFD, flags);
                         ^~~~~~~
../src/kexec.cc:27:25: note: suggested alternative: ‘FD_SET’
     return fcntl (desc, F_SETFD, flags);
                         ^~~~~~~
                         FD_SET
make: *** [kexec.target.mk:99: Release/obj.target/kexec/src/kexec.o] Error 1
make: Leaving directory '/home/daf/.nvm/versions/node/v8.15.0/lib/node_modules/gitmoji/node_modules/kexec/build'

So, basically, kexec b0rks, and from what I've been able to glean with my google-fu, it's looking for symbols which aren't defined in Node headers. I could be wrong though.

I'd really appreciate it if you could look into this -- I'm finding the experience of using the gitmoji cli quite rewarding on 'doze.

carloscuesta commented 5 years ago

Gitmoji is not meant to be installed on a machine. Probably you shoul try gitmoji-cli

https://github.com/carloscuesta/gitmoji-cli#install