mcollina / autocannon

fast HTTP/1.1 benchmarking tool written in Node.js
MIT License
7.83k stars 325 forks source link

env: node\r: No such file or directory #5

Closed delvedor closed 8 years ago

delvedor commented 8 years ago

Hi! I've installed autocannon but during the installation I get this:

delvedor ~ $ sudo npm i autocannon -g
/usr/local/bin/autocannon -> /usr/local/lib/node_modules/autocannon/autocannon.js

> native-hdr-histogram@0.2.0 install /usr/local/lib/node_modules/autocannon/node_modules/native-hdr-histogram
> node-gyp rebuild

  CC(target) Release/obj.target/zlib/zlib/adler32.o
  CC(target) Release/obj.target/zlib/zlib/compress.o
  CC(target) Release/obj.target/zlib/zlib/crc32.o
  CC(target) Release/obj.target/zlib/zlib/deflate.o
  CC(target) Release/obj.target/zlib/zlib/gzclose.o
  CC(target) Release/obj.target/zlib/zlib/gzlib.o
  CC(target) Release/obj.target/zlib/zlib/gzread.o
  CC(target) Release/obj.target/zlib/zlib/gzwrite.o
  CC(target) Release/obj.target/zlib/zlib/infback.o
  CC(target) Release/obj.target/zlib/zlib/inffast.o
  CC(target) Release/obj.target/zlib/zlib/inflate.o
../zlib/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
    if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
                                                        ~~~ ^
1 warning generated.
  CC(target) Release/obj.target/zlib/zlib/inftrees.o
  CC(target) Release/obj.target/zlib/zlib/trees.o
  CC(target) Release/obj.target/zlib/zlib/uncompr.o
  CC(target) Release/obj.target/zlib/zlib/zutil.o
  LIBTOOL-STATIC Release/zlib.a
  CC(target) Release/obj.target/histogram/src/hdr_encoding.o
  CC(target) Release/obj.target/histogram/src/hdr_histogram.o
  CC(target) Release/obj.target/histogram/src/hdr_histogram_log.o
  CXX(target) Release/obj.target/histogram/hdr_histogram_wrap.o
  CXX(target) Release/obj.target/histogram/histogram.o
  SOLINK_MODULE(target) Release/histogram.node
/usr/local/lib
└─┬ autocannon@0.3.0 
  ├─┬ chalk@1.1.3 
  │ ├── ansi-styles@2.2.1 
  │ ├── escape-string-regexp@1.0.5 
  │ ├─┬ has-ansi@2.0.0 
  │ │ └── ansi-regex@2.0.0 
  │ ├── strip-ansi@3.0.1 
  │ └── supports-color@2.0.0 
  ├── http-parser-js@0.4.2 
  ├── minimist@1.2.0 
  ├─┬ native-hdr-histogram@0.2.0 
  │ ├── bindings@1.2.1 
  │ └── nan@2.2.1 
  ├─┬ pretty-bytes@3.0.1 
  │ └── number-is-nan@1.0.0 
  ├── progress@1.1.8 
  ├── si-tools@1.1.1 
  └─┬ table@3.7.8 
    ├── bluebird@3.3.4 
    ├── lodash@4.8.2 
    ├── slice-ansi@0.0.4 
    ├─┬ string-width@1.0.1 
    │ ├── code-point-at@1.0.0 
    │ └── is-fullwidth-code-point@1.0.0 
    ├── tv4@1.2.7 
    └── xregexp@3.1.0 

As you can see the installation terminates without errors.

If I use autocannon by requiring it I have no problem, but if I use it via command line I get: env: node\r: No such file or directory.

I've tried both via local and global installation and I'm using autocannon 0.3.0

mcollina commented 8 years ago

Damn, I edited it in windows. Patch coming asap. Il giorno gio 7 apr 2016 alle 22:55 Tomas Della Vedova < notifications@github.com> ha scritto:

Hi! I've installed autocannon but during the installation I get this:

delvedor ~ $ sudo npm i autocannon -g /usr/local/bin/autocannon -> /usr/local/lib/node_modules/autocannon/autocannon.js

native-hdr-histogram@0.2.0 install /usr/local/lib/node_modules/autocannon/node_modules/native-hdr-histogram node-gyp rebuild

CC(target) Release/obj.target/zlib/zlib/adler32.o CC(target) Release/obj.target/zlib/zlib/compress.o CC(target) Release/obj.target/zlib/zlib/crc32.o CC(target) Release/obj.target/zlib/zlib/deflate.o CC(target) Release/obj.target/zlib/zlib/gzclose.o CC(target) Release/obj.target/zlib/zlib/gzlib.o CC(target) Release/obj.target/zlib/zlib/gzread.o CC(target) Release/obj.target/zlib/zlib/gzwrite.o CC(target) Release/obj.target/zlib/zlib/infback.o CC(target) Release/obj.target/zlib/zlib/inffast.o CC(target) Release/obj.target/zlib/zlib/inflate.o ../zlib/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;


1 warning generated.
  CC(target) Release/obj.target/zlib/zlib/inftrees.o
  CC(target) Release/obj.target/zlib/zlib/trees.o
  CC(target) Release/obj.target/zlib/zlib/uncompr.o
  CC(target) Release/obj.target/zlib/zlib/zutil.o
  LIBTOOL-STATIC Release/zlib.a
  CC(target) Release/obj.target/histogram/src/hdr_encoding.o
  CC(target) Release/obj.target/histogram/src/hdr_histogram.o
  CC(target) Release/obj.target/histogram/src/hdr_histogram_log.o
  CXX(target) Release/obj.target/histogram/hdr_histogram_wrap.o
  CXX(target) Release/obj.target/histogram/histogram.o
  SOLINK_MODULE(target) Release/histogram.node
/usr/local/lib
└─┬ autocannon@0.3.0
  ├─┬ chalk@1.1.3
  │ ├── ansi-styles@2.2.1
  │ ├── escape-string-regexp@1.0.5
  │ ├─┬ has-ansi@2.0.0
  │ │ └── ansi-regex@2.0.0
  │ ├── strip-ansi@3.0.1
  │ └── supports-color@2.0.0
  ├── http-parser-js@0.4.2
  ├── minimist@1.2.0
  ├─┬ native-hdr-histogram@0.2.0
  │ ├── bindings@1.2.1
  │ └── nan@2.2.1
  ├─┬ pretty-bytes@3.0.1
  │ └── number-is-nan@1.0.0
  ├── progress@1.1.8
  ├── si-tools@1.1.1
  └─┬ table@3.7.8
    ├── bluebird@3.3.4
    ├── lodash@4.8.2
    ├── slice-ansi@0.0.4
    ├─┬ string-width@1.0.1
    │ ├── code-point-at@1.0.0
    │ └── is-fullwidth-code-point@1.0.0
    ├── tv4@1.2.7
    └── xregexp@3.1.0

As you can see the installation terminates without errors.

If I use autocannon by requiring it I have no problem, but if I use it via
command line I get:
env: node\r: No such file or directory.

I've tried both via local and global installation and I'm using autocannon
0.3.0

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/mcollina/autocannon/issues/5
mcollina commented 8 years ago

Fixed in 0.3.1.

delvedor commented 8 years ago

Now the cli works perfectly, thanks!

I get the same warning during installation as above:

../zlib/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
    if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
mcollina commented 8 years ago

Normal, it's zlib :) Il giorno gio 7 apr 2016 alle 23:07 Tomas Della Vedova < notifications@github.com> ha scritto:

Now the cli works perfectly, thanks!

I get the same warning during installation as above:

../zlib/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value] if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;

— You are receiving this because you modified the open/close state.

Reply to this email directly or view it on GitHub https://github.com/mcollina/autocannon/issues/5#issuecomment-207088527