Code Monkey home page Code Monkey logo

Comments (5)

benkaiser avatar benkaiser commented on July 17, 2024

My initial reaction would be to say that this is an upstream error, but I'll try to help out.

Is taglib-config in your PATH? check by running taglib-config in your terminal you are running the app from.

from stretto.

benkaiser avatar benkaiser commented on July 17, 2024

Okay, since I had time on my hands, and I saw you were running debian 7, I decided I would download it, spin up a VM and try to reproduce your issue. And sure enough, I ran into your issue. The key problem is simply that debian 7 has an old version of taglib that doesn't work with node-taglib. To fix this I tried a few things and the easiest in the end was to uninstall taglib, recompile taglib from source and then link it so that it was in my path. Like so:

(as root)

$ apt-get remove libtag1-dev
# package gets removed
# clone taglib from source
$ git clone https://github.com/taglib/taglib.git
# makes a directory called taglib
$ cd taglib
# start compiling as per https://github.com/taglib/taglib/blob/master/INSTALL
$ cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release .
$ make
# wait for it to compile
# install it
$ make install
# symlink it (it's not auto-installed to /usr/bin
$ ln -s /usr/local/bin/taglib-config /usr/bin/taglib-config
# now test it worked
$ taglib-config --version
# should show 1.9.1

Now run npm install again and you should be good to go! :)

from stretto.

DependencyHell avatar DependencyHell commented on July 17, 2024

Damn, many thanks for taking time to help me... I did all you said but I'm still stucked with this error I already get :

node app.js

/home/gg/node-music-player/node_modules/taglib/node_modules/bindings/bindings.js:79
        throw e
              ^
Error: /home/gg/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/gg/node-music-player/node_modules/taglib/node_modules/bindings/bindings.js:74:15)
    at Object.<anonymous> (/home/gg/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)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
taglib-config --version
1.9.1

It is working well without 'taglib' calls into 'library_functions.js' file.

Btw, I'm very interrested by your project, and I plan to work on tasks such as cross-fade, queue viewing and remote connection (or client mobile access).

from stretto.

DependencyHell avatar DependencyHell commented on July 17, 2024

Ok I had enough time to do what you said properly, without forgetting to clean the node_modules/ folder. Now working. Thanks again!

from stretto.

benkaiser avatar benkaiser commented on July 17, 2024

No worries! I hope you enjoy the music player :)

Also if you are considering implementing features, open an issue for each of them first so we can discuss the implementation before you go about it, it'll give you the best chance of being merged :)

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.