Code Monkey home page Code Monkey logo

Comments (8)

RolfKoenders avatar RolfKoenders commented on August 16, 2024

Are you sure taglib is correctly installed and in your load path?

from stretto.

benkaiser avatar benkaiser commented on August 16, 2024

@RolfKoenders is onto it. Is taglib installed? what system is this running on (run uname -a to find out)?

from stretto.

Thapelo-Tsotetsi avatar Thapelo-Tsotetsi commented on August 16, 2024

I m getting a similar error after I have successfully installed taglib on Ubuntu 12.04. Any ideas on how to fix the problem?

thapelo@ubuntu:~/Desktop/test/node-music-player$ node app.js 
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0

/home/thapelo/Desktop/test/node-music-player/node_modules/taglib/node_modules/bindings/bindings.js:79
        throw e
              ^
Error: /home/thapelo/Desktop/test/node-music-player/node_modules/taglib/build/Release/taglib.node: undefined symbol: _ZN6TagLib8IOStreamD2Ev
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at bindings (/home/thapelo/Desktop/test/node-music-player/node_modules/taglib/node_modules/bindings/bindings.js:74:15)
    at Object.<anonymous> (/home/thapelo/Desktop/test/node-music-player/node_modules/taglib/index.js:1:99)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
thapelo@ubuntu:~/Desktop/test/node-music-player$ uname -a
Linux ubuntu 3.13.0-37-generic #64~precise1-Ubuntu SMP Wed Sep 24 21:39:43 UTC 2014 i686 i686 i386 GNU/Linux

from stretto.

benkaiser avatar benkaiser commented on August 16, 2024

Can you check if taglib is definitely installed? Run dpkg -s libtag1-dev and paste the output here.
If its installed I might have to fire up an Ubuntu VM and debug the issue.

from stretto.

Thapelo-Tsotetsi avatar Thapelo-Tsotetsi commented on August 16, 2024

Earlier I installed taglib from source on github (https://github.com/taglib/taglib/blob/master/INSTALL).
Everything goes well until I try to run ''' node app.js''' in which I get an error as per my comment above.

thapelo@ubuntu:~/Desktop/test/node-music-player$ npm install

> [email protected] install /home/thapelo/Desktop/test/node-music-player/node_modules/taglib
> node-gyp rebuild

make: Entering directory `/home/thapelo/Desktop/test/node-music-player/node_modules/taglib/build'
  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/obj.target/taglib.node
  SOLINK_MODULE(target) Release/obj.target/taglib.node: Finished
  COPY Release/taglib.node
make: Leaving directory `/home/thapelo/Desktop/test/node-music-player/node_modules/taglib/build'

> [email protected] install /home/thapelo/Desktop/test/node-music-player/node_modules/express.io/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory `/home/thapelo/Desktop/test/node-music-player/node_modules/express.io/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
make: Leaving directory `/home/thapelo/Desktop/test/node-music-player/node_modules/express.io/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
[email protected] node_modules/opener

[email protected] node_modules/soundcloud-resolver

[email protected] node_modules/async

[email protected] node_modules/adm-zip

[email protected] node_modules/mkdirp
└── [email protected]

[email protected] node_modules/fluent-ffmpeg

[email protected] node_modules/MD5
├── [email protected]
└── [email protected]

[email protected] node_modules/musicmetadata
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

[email protected] node_modules/nedb
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

[email protected] node_modules/swig
├── [email protected] ([email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/taglib
└── [email protected]

[email protected] node_modules/ytdl-core
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected])

[email protected] node_modules/express.io
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

[email protected] node_modules/request
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected])

Then I tried with libtag1-dev

thapelo@ubuntu:~/Desktop/test/taglib$ dpkg -s libtag1-dev
Package: libtag1-dev
Status: install ok installed
Multi-Arch: same
Priority: optional
Section: libdevel
Installed-Size: 496
Maintainer: Ubuntu Developers <[email protected]>
Architecture: i386
Source: taglib
Version: 1.7-1ubuntu5
Depends: libtag1c2a (= 1.7-1ubuntu5)
Description: audio meta-data library - development files
 TagLib is a library for reading and editing the meta-data of several popular
 audio formats. Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg
 Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack
 TrueAudio, WAV, AIFF, MP4 and ASF files.
 .
 This is the development package which contains headers and static libraries
 for the TagLib Audio Meta-Data Library.
Homepage: http://developer.kde.org/~wheeler/taglib.html

After running apt-get install libtag1-dev and deleting node_modules folder, re-running npm install gives the error below.
'''
thapelo@ubuntu:~/Desktop/test/node-music-player$ npm install

[email protected] install /home/thapelo/Desktop/test/node-music-player/node_modules/taglib
node-gyp rebuild

make: Entering directory /home/thapelo/Desktop/test/node-music-player/node_modules/taglib/build' CXX(target) Release/obj.target/taglib/src/bufferstream.o In file included from ../src/bufferstream.cc:1:0: ../src/bufferstream.h:8:23: fatal error: tiostream.h: No such file or directory compilation terminated. make: *** [Release/obj.target/taglib/src/bufferstream.o] Error 1 make: Leaving directory/home/thapelo/Desktop/test/node-music-player/node_modules/taglib/build'
ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/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-37-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/thapelo/Desktop/test/node-music-player/node_modules/taglib
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.1
ERR! not ok

[email protected] install /home/thapelo/Desktop/test/node-music-player/node_modules/express.io/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /home/thapelo/Desktop/test/node-music-player/node_modules/express.io/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build' CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/obj.target/bufferutil.node SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished COPY Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/obj.target/validation.node SOLINK_MODULE(target) Release/obj.target/validation.node: Finished COPY Release/validation.node make: Leaving directory/home/thapelo/Desktop/test/node-music-player/node_modules/express.io/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws/build'
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 Linux 3.13.0-37-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/thapelo/Desktop/test/node-music-player
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

'''

from stretto.

benkaiser avatar benkaiser commented on August 16, 2024

Perhaps try some of the suggestions posted here and see if it's any help?

from stretto.

benkaiser avatar benkaiser commented on August 16, 2024

These all seem to be related to taglib 1.7, can you guys please follow my instructions here to install from source on Debian/Ubuntu to the latest taglib? Then clean your node_modules folder and re-run npm install and see how it goes.

from stretto.

benkaiser avatar benkaiser commented on August 16, 2024

I am now closing this issue due to inactivity.

from stretto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.