travis-ci/travis-cookbooks — comment on commit 9dd192a73db1db1840a59a6b2ce334832152c04d
File:  line 0
By jonleighton:

Ok. Just make sure that the actual binary stays in the same place relative to the `lib/` directory otherwise the dynamic linking won't work. I.e the tarball contains `bin/phantomjs` and `lib/`, and `bin/phantomjs` has a header that tells it to link to `../lib/`. (This is why I say to symbolically link the binary into the `PATH`, rather than move it.)