Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

unable to install zlib on RHEL 6 #4936

@pandits

Description

@pandits

Hi Konstantin,

I was unable to install zlib on on my RHEL environment. Console output from running 'npm install zlib' as root user is below:

I looked forward to your response.

[root@dhcppc36 node]# npm install zlib

npm http GET https://registry.npmjs.org/zlib

npm http 304 https://registry.npmjs.org/zlib

zlib@1.0.5 install /usr/lib/node_modules/zlib

node-waf clean ; node-waf configure build

Nothing to clean (project not configured)

Setting srcdir to : /usr/lib/node_modules/zlib

Setting blddir to : /usr/lib/node_modules/zlib/build

Checking for program g++ or c++ : /usr/bin/g++

Checking for program cpp : /usr/bin/cpp

Checking for program ar : /usr/bin/ar

Checking for program ranlib : /usr/bin/ranlib

Checking for g++ : ok

Checking for node path : ok /usr/lib/node/

Checking for node prefix : ok /usr

Checking for library z : yes

'configure' finished successfully (0.096s)

Waf: Entering directory `/usr/lib/node_modules/zlib/build'

[1/2] cxx: src/node-zlib.cc -> build/Release/src/node-zlib_1.o

../src/node-zlib.cc:1:16: error: v8.h: No such file or directory

../src/node-zlib.cc:2:18: error: node.h: No such file or directory

../src/node-zlib.cc:3:25: error: node_buffer.h: No such file or directory

../src/node-zlib.cc:4:26: error: node_version.h: No such file or directory

../src/node-zlib.cc:14:26: error: missing binary operator before token "("

../src/node-zlib.cc:10: error: âv8â is not a namespace-name

../src/node-zlib.cc:10: error: expected namespace-name before â;â token

../src/node-zlib.cc:11: error: ânodeâ is not a namespace-name

../src/node-zlib.cc:11: error: expected namespace-name before â;â token

../src/node-zlib.cc:19: error: âBuffer_Dataâ declared as an âinlineâ variable

../src/node-zlib.cc:19: error: âHandleâ was not declared in this scope

../src/node-zlib.cc:19: error: âObjectâ was not declared in this scope

../src/node-zlib.cc:19: error: âobjâ was not declared in this scope

../src/node-zlib.cc:19: error: expected â,â or â;â before â{â token

../src/node-zlib.cc:22: error: âBuffer_Lengthâ declared as an âinlineâ variable

../src/node-zlib.cc:22: error: âHandleâ was not declared in this scope

../src/node-zlib.cc:22: error: âObjectâ was not declared in this scope

../src/node-zlib.cc:22: error: âobjâ was not declared in this scope

../src/node-zlib.cc:22: error: expected â,â or â;â before â{â token

../src/node-zlib.cc:25: error: expected initializer before â*â token

../src/node-zlib.cc:36: error: expected initializer before â<â token

../src/node-zlib.cc:82: error: expected constructor, destructor, or type conversion before â<â token

Waf: Leaving directory `/usr/lib/node_modules/zlib/build'

Build failed: -> task failed (err #1):

    {task: cxx node-zlib.cc -> node-zlib_1.o}

npm ERR! zlib@1.0.5 install: node-waf clean ; node-waf configure build

npm ERR! sh "-c" "node-waf clean ; node-waf configure build" failed with 1

npm ERR!

npm ERR! Failed at the zlib@1.0.5 install script.

npm ERR! This is most likely a problem with the zlib package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! node-waf clean ; node-waf configure build

npm ERR! You can get their info via:

npm ERR! npm owner ls zlib

npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-71.el6.i686

npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "zlib"

npm ERR! cwd /usr/lib/node

npm ERR! node -v v0.8.18

npm ERR! npm -v 1.2.2

npm ERR! code ELIFECYCLE

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR! /usr/lib/node/npm-debug.log

npm ERR! not ok code 0

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions