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

Installation error #50

Open
daslicht opened this issue Apr 8, 2014 · 19 comments
Open

Installation error #50

daslicht opened this issue Apr 8, 2014 · 19 comments

Comments

@daslicht
Copy link

daslicht commented Apr 8, 2014

When I run
npm install taglib

I get:

daslicht:streams daslicht$ npm install taglib
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/taglib
npm http 200 https://registry.npmjs.org/taglib
npm http GET https://registry.npmjs.org/taglib/-/taglib-0.8.0.tgz
npm http 200 https://registry.npmjs.org/taglib/-/taglib-0.8.0.tgz
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 200 https://registry.npmjs.org/bindings/1.0.0
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz

> [email protected] install /Users/daslicht/node_modules/taglib
> node-gyp rebuild

/bin/sh: taglib-config: command not found
gyp: Call to 'taglib-config --cflags' returned exit status 127.
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/local/Cellar/node/0.10.25/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.1.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.25/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/daslicht/node_modules/taglib
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the taglib 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 taglib
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "/usr/local/Cellar/node/0.10.25/bin/node" "/usr/local/bin/npm" "install" "taglib"
npm ERR! cwd /Users/daslicht/node/streams
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/daslicht/node/streams/npm-debug.log
npm ERR! not ok code 0

What am I missing?

@daslicht
Copy link
Author

daslicht commented Apr 8, 2014

I just installed taglib (osx) like the following:
https://gist.github.com/trevorsheridan/1948299

but still get:

daslicht:streams daslicht$ npm install taglib
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/taglib
npm http 304 https://registry.npmjs.org/taglib
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/bindings/1.0.0

> [email protected] install /Users/daslicht/node_modules/taglib
> node-gyp rebuild

  CXX(target) Release/obj.target/taglib/src/bufferstream.o
In file included from ../src/bufferstream.cc:1:
../src/bufferstream.h:8:10: fatal error: 'tiostream.h' file not found
#include <tiostream.h>
         ^
1 error generated.
make: *** [Release/obj.target/taglib/src/bufferstream.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/0.10.25/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.1.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.25/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/daslicht/node_modules/taglib
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the taglib 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 taglib
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "/usr/local/Cellar/node/0.10.25/bin/node" "/usr/local/bin/npm" "install" "taglib"
npm ERR! cwd /Users/daslicht/node/streams
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/daslicht/node/streams/npm-debug.log
npm ERR! not ok code 0
daslicht:streams daslicht$ 

@nikhilm
Copy link
Owner

nikhilm commented Apr 10, 2014

Could you try with taglib v1.8 or higher?

@daslicht
Copy link
Author

After installing this version:
http://taglib.github.io/releases/taglib-1.9.1.tar.gz

like described here:
https://gist.github.com/trevorsheridan/1948299

I get:

daslicht:streams daslicht$ npm install taglib
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/taglib
npm http 200 https://registry.npmjs.org/taglib
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 200 https://registry.npmjs.org/bindings/1.0.0
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.0.0.tgz

> [email protected] install /Users/daslicht/node_modules/taglib
> node-gyp rebuild

  CXX(target) Release/obj.target/taglib/src/bufferstream.o
  CXX(target) Release/obj.target/taglib/src/tag.o
  CXX(target) Release/obj.target/taglib/src/taglib.o
  SOLINK_MODULE(target) Release/taglib.node
clang: error: invalid argument '-bundle' not allowed with '-dynamiclib'
make: *** [Release/taglib.node] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/Cellar/node/0.10.25/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.1.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.25/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/daslicht/node_modules/taglib
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the taglib 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 taglib
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "/usr/local/Cellar/node/0.10.25/bin/node" "/usr/local/bin/npm" "install" "taglib"
npm ERR! cwd /Users/daslicht/node/streams
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/daslicht/node/streams/npm-debug.log
npm ERR! not ok code 0
daslicht:streams daslicht$ 

@nikhilm
Copy link
Owner

nikhilm commented Apr 11, 2014

try removing the dynamiclib line in the binding.gyp file. I don't have a OSX machine anymore to try it out on, so it might have to do with the version of OSX you are using.

@daslicht daslicht changed the title Installation error ST2 Installation error Apr 12, 2014
@enbrent
Copy link

enbrent commented Apr 21, 2014

I'm also having this problem however I am on windows.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\Brent>cd Dropbox\Muzzler\server

C:\Users\Brent\Dropbox\Muzzler\server>npm install taglib
npm http GET https://registry.npmjs.org/taglib
npm http 304 https://registry.npmjs.org/taglib
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/bindings/1.0.0

> [email protected] install C:\Users\Brent\Dropbox\Muzzler\server\node_modules\taglib
> node-gyp rebuild


C:\Users\Brent\Dropbox\Muzzler\server\node_modules\taglib>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild
'taglib-config' is not recognized as an internal or external command,
operable program or batch file.
gyp: Call to 'taglib-config --cflags' returned exit status 1.
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:337:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Brent\Dropbox\Muzzler\server\node_modules\taglib
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the taglib 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 taglib
npm ERR! There is likely additional logging output above.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "taglib"
npm ERR! cwd C:\Users\Brent\Dropbox\Muzzler\server
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Brent\Dropbox\Muzzler\server\npm-debug.log
npm ERR! not ok code 0

C:\Users\Brent\Dropbox\Muzzler\server>

Any ideas?

@nikhilm
Copy link
Owner

nikhilm commented Apr 21, 2014

@Kirasagi
If you have taglib installed, taglib-config does not seem to be in your PATH.

@masterkain
Copy link
Contributor

fixed here: fea01d8

@rahilwazir
Copy link

Fix for Linux (Worked on Ubuntu 14.04)

First install

  • $ apt-get install libtag1-dev

Then do

  • npm install taglib

@rahilwazir
Copy link

Another Fix for Linux (Centos, Kali and almost for all versions) If dependency problem exists:

(All the installation guides are there for each libraries)

Then do

  • npm install taglib

@MarcosRava
Copy link

I get the error

info install [email protected]
verbose unsafe-perm in lifecycle true
info [email protected] Failed to exec install script
verbose unlock done using /home/likewise-open/OCTO/mvieira/.npm/_locks/taglib-5beff94d4576ab48.lock for /home/likewise-open/OCTO/mvieira/workspace/marcosrava/tag-search-write/node_modules/taglib
verbose stack Error: [email protected] install: node-gyp rebuild
verbose stack Exit status 1
verbose stack at EventEmitter. (/home/likewise-open/OCTO/mvieira/.nvm/v0.11.16/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
verbose stack at EventEmitter.emit (events.js:110:17)
verbose stack at ChildProcess. (/home/likewise-open/OCTO/mvieira/.nvm/v0.11.16/lib/node_modules/npm/lib/utils/spawn.js:14:12)
verbose stack at ChildProcess.emit (events.js:110:17)
verbose stack at maybeClose (child_process.js:1008:16)
verbose stack at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
verbose pkgid [email protected]
verbose cwd /home/likewise-open/OCTO/mvieira/workspace/marcosrava/tag-search-write
error Linux 3.13.0-44-generic
error argv "/home/likewise-open/OCTO/mvieira/.nvm/v0.11.16/bin/node" "/home/likewise-open/OCTO/mvieira/.nvm/v0.11.16/bin/npm" "install" "--save" "taglib"
error node v0.11.16
error npm v2.3.0
error code ELIFECYCLE
error [email protected] install: node-gyp rebuild
error Exit status 1
error Failed at the [email protected] install script 'node-gyp rebuild'.
error This is most likely a problem with the taglib package,
error not with npm itself.
error Tell the author that this fails on your system:
error node-gyp rebuild
error You can get their info via:
error npm owner ls taglib
error There is likely additional logging output above.
verbose exit [ 1, true ]
verbose unbuild node_modules/taglib
info preuninstall [email protected]
info uninstall [email protected]

@MarcosRava
Copy link

On console

npm install --save taglib
npm WARN package.json [email protected] No description
npm WARN engine [email protected]: wanted: {"node":">=0.10.0 <0.11"} (current: {"node":"0.11.16","npm":"2.3.0"})
/

[email protected] install /home/likewise-open/OCTO/mvieira/workspace/marcosrava/tag-search-write/node_modules/taglib
node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
make: Entering directory /home/likewise-open/OCTO/mvieira/workspace/marcosrava/tag-search-write/node_modules/taglib/build' CXX(target) Release/obj.target/taglib/src/bufferstream.o In file included from ../src/bufferstream.cc:5:0: ../src/taglib.h:26:43: error: ‘Arguments’ in namespace ‘v8’ does not name a type v8::Handle<v8::Value> AsyncReadFile(const v8::Arguments &args); ^ ../src/taglib.h:26:58: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] v8::Handle<v8::Value> AsyncReadFile(const v8::Arguments &args); ^ ../src/taglib.h:46:42: error: ‘Arguments’ in namespace ‘v8’ does not name a type v8::Handle<v8::Value> AddResolvers(const v8::Arguments &args); ^ ../src/taglib.h:46:57: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] v8::Handle<v8::Value> AddResolvers(const v8::Arguments &args); ^ make: *** [Release/obj.target/taglib/src/bufferstream.o] Error 1 make: Leaving directory/home/likewise-open/OCTO/mvieira/workspace/marcosrava/tag-search-write/node_modules/taglib/build'

@MarcosRava
Copy link

in node stable version (0.10.36), it works fine!

@drone1
Copy link

drone1 commented Dec 31, 2016

Hi all -- I could use some help.

Please forgive me if I'm barking up the wrong tree, but from what I can tell this is a node-taglib issue.

I'm on OSX El Capitan 10.11.6; node 7.2.1; npm 3.10.10.

I installed python 2.7 with brew install python.
I installed taglib 1.11.1 with brew install taglib.
I installed node-gyp 3.4.0 with npm install -g node-gyp.

When I run 'npm install taglib --save' I get the output below. I've also tried installing from source and get the same errors.

Thanks for any help.

> [email protected] install /Users/drone1/Dropbox/scripts/node_modules/taglib
> node-gyp rebuild

  CXX(target) Release/obj.target/taglib/src/bufferstream.o
In file included from ../src/bufferstream.cc:5:
../src/taglib.h:26:43: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
v8::Handle<v8::Value> AsyncReadFile(const v8::Arguments &args);
                                          ^~~~~~~~~~~~~
                                          v8::internal::Arguments
/Users/drone1/.node-gyp/7.2.1/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/bufferstream.cc:5:
../src/taglib.h:46:42: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
v8::Handle<v8::Value> AddResolvers(const v8::Arguments &args);
                                         ^~~~~~~~~~~~~
                                         v8::internal::Arguments
/Users/drone1/.node-gyp/7.2.1/include/node/v8.h:148:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
2 errors generated.
make: *** [Release/obj.target/taglib/src/bufferstream.o] 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:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 15.6.0
gyp ERR! command "/usr/local/Cellar/node/5.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/drone1/Dropbox/scripts/node_modules/taglib
gyp ERR! node -v v7.2.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN scripts No description
npm WARN scripts No repository field.
npm WARN scripts No license field.
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/Cellar/node/5.1.0/bin/node" "/usr/local/bin/npm" "install" "taglib" "--save"
npm ERR! node v7.2.1
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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 taglib 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 information on how to open an issue for this project with:
npm ERR!     npm bugs taglib
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls taglib
npm ERR! There is likely additional logging output above.

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

@nikhilm
Copy link
Owner

nikhilm commented Jan 3, 2017 via email

@drone1
Copy link

drone1 commented Jan 4, 2017 via email

@nikhilm
Copy link
Owner

nikhilm commented Jan 4, 2017 via email

@drone1
Copy link

drone1 commented Jan 4, 2017 via email

@nikhilm
Copy link
Owner

nikhilm commented Jan 5, 2017 via email

@drone1
Copy link

drone1 commented May 26, 2018

Just wanted to bump this. Please fix if you can! I could really use this library and don't see an alternative for writing metadata to AIFFs from code (or ffmpeg or some other command-line tool).

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

7 participants