perezpaya / Spotijay

Useful tool that allows you to get tracks from your premium subscription in 320kbps and keep them synced
MIT License
90 stars 11 forks source link

image not found #5

Closed daweedm closed 9 years ago

daweedm commented 9 years ago

Hi, when I launch app.js I get the following error :

/Users/Daweed/Desktop/Spotijay-master/node_modules/libspotify/node_modules/bindings/bindings.js:83 throw e ^ Error: dlopen(/Users/Daweed/Desktop/Spotijay-master/node_modules/libspotify/build/Release/spotify.node, 1): Library not loaded: /usr/local/opt/libspotify/lib/libspotify Referenced from: /Users/Daweed/Desktop/Spotijay-master/node_modules/libspotify/build/Release/spotify.node Reason: image not found 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 (/Users/Daweed/Desktop/Spotijay-master/node_modules/libspotify/node_modules/bindings/bindings.js:76:44) at Object. (/Users/Daweed/Desktop/Spotijay-master/node_modules/libspotify/lib/Album.js:1:90) 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)

Any idea ? Thanks a lot !

perezpaya commented 9 years ago

I think this may be regarding your installation of libspotify. As far as I know, libspotify is not being installed correctly with brew. Try to install it from source

daweedm commented 9 years ago

Thanks for your help. When I look in the /usr/local/opt/libspotify/lib/ repertory, I found the following files : libspotify.12.1.51.dylib, libspotify.12.dylib, libspotify.dylib and pkgconfig. Maybe if I rename one of these to "libspotify" (according to the node stacktrace, that's the missing file : /usr/local/opt/libspotify/lib/libspotify) ?

perezpaya commented 9 years ago

I think this could work

daweedm commented 9 years ago

This worked for me, thanks