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 build fail on heroku #100

Open
stephensong opened this issue Jul 4, 2017 · 0 comments
Open

node-gyp build fail on heroku #100

stephensong opened this issue Jul 4, 2017 · 0 comments

Comments

@stephensong
Copy link

stephensong commented Jul 4, 2017

I am trying to use the node package web-audio-api in my heroku hosted app. I don't think I have any actual need for node-speaker, but it is a dependency of web-audio-api.

So after figuring out how to configure the apt buildback for heroku, I managed to get it to apt-get libasound2-dev, but alas, the build then fails with:

remote: -----> Building dependencies
remote:        Installing node modules (package.json)
remote:
remote:        > speaker@0.3.0 install  /tmp/build_2e93fb359eaf5b018caf9220af8ba9cd/node_modules/speaker
remote:        > node-gyp rebuild
remote:
remote:        make: Entering directory `/tmp/build_2e93fb359eaf5b018caf9220af8ba9cd/node_modules/speaker/build'
remote:        CC(target) Release/obj.target/output/deps/mpg123/src/output/alsa.o
remote:        ../deps/mpg123/src/output/alsa.c: In function ‘initialize_device’:
remote:        AR(target) Release/obj.target/deps/mpg123/liboutput.a
remote:        COPY Release/liboutput.a
remote:        CXX(target) Release/obj.target/binding/src/binding.o
remote:        SOLINK_MODULE(target) Release/obj.target/binding.node
remote:        /usr/bin/ld: cannot find -lasound
remote:        collect2: error: ld returned 1 exit status
remote:        make: *** [Release/obj.target/binding.node] Error 1
remote:        make: Leaving directory `/tmp/build_2e93fb359eaf5b018caf9220af8ba9cd/node_modules/speaker/build'

(I have removed a couple of spurious warnings from the above.)

The problem seems clear enough: the "ld cannot find -lasound" bit. But I've no clue how I might go about fixing it on Heroku. Can anybody here shine some much needed light on my problem?

many tias.

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

1 participant