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

node-gyp rebuild error #58

Open
marszhou opened this issue Oct 17, 2016 · 2 comments
Open

node-gyp rebuild error #58

marszhou opened this issue Oct 17, 2016 · 2 comments

Comments

@marszhou
Copy link

sudo npm i mcrypt -g --python=/usr/bin/python2.6

[email protected] install /usr/local/lib/node_modules/mcrypt
node-gyp rebuild --release

CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/3-way.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/arcfour.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/blowfish.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/blowfish-compat.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/cast-128.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/cast-256.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/des.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/enigma.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/gost.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/loki97.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/panama.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/rc2.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/rijndael-128.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/rijndael-192.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/rijndael-256.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/safer64.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/safer128.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/saferplus.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/serpent.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/tripledes.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/twofish.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/wake.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/algorithms/xtea.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/modes/cbc.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/modes/cfb.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/modes/ctr.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/modes/ecb.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/modes/ncfb.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/modes/nofb.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/modes/ofb.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/modules/modes/stream.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/lib/bzero.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/lib/mcrypt.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/lib/mcrypt_extra.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/lib/mcrypt_modules.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/lib/mcrypt_symb.o
CC(target) Release/obj.target/libmcrypt/lib/libmcrypt/lib/xmemory.o
LIBTOOL-STATIC Release/mcrypt.a
Traceback (most recent call last):
File "./gyp-mac-tool", line 611, in
sys.exit(main(sys.argv[1:]))
File "./gyp-mac-tool", line 28, in main
exit_code = executor.Dispatch(args)
File "./gyp-mac-tool", line 43, in Dispatch
return getattr(self, method)(args[1:])
File "./gyp-mac-tool", line 246, in ExecFilterLibtool
if not libtool_re.match(line) and not libtool_re5.match(line):
TypeError: can't use a string pattern on a bytes-like object
make: *
* [Release/mcrypt.a] Error 1
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:276:23)
gyp ERR! stack at emitTwo (events.js:100:13)
gyp ERR! stack at ChildProcess.emit (events.js:185:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 15.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
gyp ERR! cwd /usr/local/lib/node_modules/mcrypt
gyp ERR! node -v v5.10.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "mcrypt" "-g" "--python=/usr/bin/python2.6"
npm ERR! node v5.10.1
npm ERR! npm v3.8.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild --release
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild --release'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild --release
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mcrypt
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/User1/npm-debug.log


OSX 10.11.6
➜ ~ node -v
v5.10.1
➜ ~ npm -v
3.8.3

@tugrul
Copy link
Owner

tugrul commented Oct 18, 2016

Traceback (most recent call last):
File "./gyp-mac-tool", line 611, in
sys.exit(main(sys.argv[1:]))
File "./gyp-mac-tool", line 28, in main
exit_code = executor.Dispatch(args)
File "./gyp-mac-tool", line 43, in Dispatch
return getattr(self, method)(args[1:])
File "./gyp-mac-tool", line 246, in ExecFilterLibtool
if not libtool_re.match(line) and not libtool_re5.match(line):
TypeError: can't use a string pattern on a bytes-like object

This error looks like related to python or python libraries.

sudo npm i mcrypt -g --python=/usr/bin/python2.6

Why needed to declare python executable? Do you have multiple python version. Maybe conflicting libraries by different python versions.

@ByronAP
Copy link

ByronAP commented Apr 25, 2018

same issue here

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

3 participants