Question

I'm trying to get the lp_solve library working on Heroku, but can't seem to get it to be recognized. I've tried every resource I've been able to find, including working with vulcan, adding it to the /bin directory of my project, adding it in /vendor and altering the PATH, and I've even gone so far as to create a buildpack which I'm using with buildpack-multi, but in each case the results are the same: No such file or directory. Even when I bash into my instance and try executing the file directly it gives me the same error. I've made it executable. What am I missing?

Was it helpful?

Solution

Despite the nondescript error message, it turns out that it was an architecture issue. It was a 32 bit binary, which I thought might work fine despite that since I had no problems running on it my local machine. I had to recompile it from source on Heroku using Anvil: https://github.com/ddollar/anvil

The guys on the Heroku mailing list were super helpful in debugging the issue.

OTHER TIPS

You should be able to just include the binary, assuming that it's been compiled against the correct architecture. When you fire up the heroku console how are you trying to execute the file (what's the full command that you're running)? Are you having it look for a file that is not there?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top