anonymous / gist:6281cde2c7c59bd6a838 secret
Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

errors on "npm install resize"

View gist:6281cde2c7c59bd6a838
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112
BEFORE:
 
apt-get install imagemagick
apt-get install graphicsmagick
apt-get install libgraphicsmagick1-dev (in attempt to fix problem)
 
 
COMMAND LINE OUTPUT:
 
root@t3>>>:~# npm install -g resize
> graphicsmagick2@0.1.2 install /usr/local/lib/node_modules/resize/node_modules/graphicsmagick2
> node-gyp rebuild
 
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.30"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/resize/node_modules/graphicsmagick2/.node-gyp"
make: Entering directory `/usr/local/lib/node_modules/resize/node_modules/graphicsmagick2/build'
CXX(target) Release/obj.target/GraphicsMagick/GraphicsMagick.o
../GraphicsMagick.cc: In static member function ‘static v8::Handle<v8::Value> MagickImage::info(const v8::Arguments&)’:
../GraphicsMagick.cc:263:3: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
../GraphicsMagick.cc: In static member function ‘static v8::Handle<v8::Value> MagickImage::chop(const v8::Arguments&)’:
../GraphicsMagick.cc:57:45: warning: narrowing conversion of ‘width’ from ‘int’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
RectangleInfo VAR = { width, height, x, y };
^
../GraphicsMagick.cc:343:5: note: in expansion of macro ‘REQ_RECT_ARG’
REQ_RECT_ARG(0, chopInfo)
^
../GraphicsMagick.cc:57:45: warning: narrowing conversion of ‘height’ from ‘int’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
RectangleInfo VAR = { width, height, x, y };
^
../GraphicsMagick.cc:343:5: note: in expansion of macro ‘REQ_RECT_ARG’
REQ_RECT_ARG(0, chopInfo)
^
../GraphicsMagick.cc: In static member function ‘static v8::Handle<v8::Value> MagickImage::crop(const v8::Arguments&)’:
../GraphicsMagick.cc:57:45: warning: narrowing conversion of ‘width’ from ‘int’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
RectangleInfo VAR = { width, height, x, y };
^
../GraphicsMagick.cc:349:5: note: in expansion of macro ‘REQ_RECT_ARG’
REQ_RECT_ARG(0, cropInfo)
^
../GraphicsMagick.cc:57:45: warning: narrowing conversion of ‘height’ from ‘int’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
RectangleInfo VAR = { width, height, x, y };
^
../GraphicsMagick.cc:349:5: note: in expansion of macro ‘REQ_RECT_ARG’
REQ_RECT_ARG(0, cropInfo)
^
../GraphicsMagick.cc: In static member function ‘static v8::Handle<v8::Value> MagickImage::extent(const v8::Arguments&)’:
../GraphicsMagick.cc:57:45: warning: narrowing conversion of ‘width’ from ‘int’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
RectangleInfo VAR = { width, height, x, y };
^
../GraphicsMagick.cc:355:5: note: in expansion of macro ‘REQ_RECT_ARG’
REQ_RECT_ARG(0, geometry)
^
../GraphicsMagick.cc:57:45: warning: narrowing conversion of ‘height’ from ‘int’ to ‘long unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing]
RectangleInfo VAR = { width, height, x, y };
^
../GraphicsMagick.cc:355:5: note: in expansion of macro ‘REQ_RECT_ARG’
REQ_RECT_ARG(0, geometry)
^
../GraphicsMagick.cc: In static member function ‘static v8::Handle<v8::Value> MagickImage::contrast(const v8::Arguments&)’:
../GraphicsMagick.cc:404:20: warning: variable ‘s’ set but not used [-Wunused-but-set-variable]
REQ_INT_ARG(0, s)
^
../GraphicsMagick.cc:26:7: note: in definition of macro ‘REQ_INT_ARG’
int VAR; \
^
../GraphicsMagick.cc: In static member function ‘static v8::Handle<v8::Value> MagickImage::create(const v8::Arguments&)’:
../GraphicsMagick.cc:295:61: warning: ‘length’ may be used uninitialized in this function [-Wmaybe-uninitialized]
image = BlobToImage(imageInfo, blob, length, &exception);
^
../GraphicsMagick.cc:295:61: warning: ‘blob’ may be used uninitialized in this function [-Wmaybe-uninitialized]
SOLINK_MODULE(target) Release/obj.target/GraphicsMagick.node
/usr/bin/ld: Release/obj.target/GraphicsMagick/GraphicsMagick.o: relocation R_X86_64_PC32 against symbol `_ZN11MagickImage19constructorTemplateE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make: *** [Release/obj.target/GraphicsMagick.node] Error 1
make: Leaving directory `/usr/local/lib/node_modules/resize/node_modules/graphicsmagick2/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/resize/node_modules/graphicsmagick2
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v0.13.1
gyp ERR! not ok
npm ERR! graphicsmagick2@0.1.2 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the graphicsmagick2@0.1.2 install script.
npm ERR! This is most likely a problem with the graphicsmagick2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls graphicsmagick2
npm ERR! There is likely additional logging output above.
 
npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "resize"
npm ERR! cwd /root
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm ERR! not ok code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.