How to build binaries for buildpacks?


Alexander Lomov <alexander.lomov@...>
 

Hello, everyone.

I try to create custom ruby-buildpack to support Power8. This means I need to rebuild ruby binaries. I’ve wrote some scripts that build necessary binaries and upload them to S3 [1]. Here is a script that build ruby [2]. Still after I tried to run an app I’ve got this error [3], that said “`require': cannot load such file -- rubygems.rb (LoadError)”. I think that potential problem could be in the way I build ruby binary.

Could you please tell what do you use to build binaries for buildpacks?

[1] https://github.com/Altoros/ruby-buildpack/tree/power/power
[2] https://github.com/Altoros/ruby-buildpack/blob/power/power/scripts/ruby-2.1.5.sh
[3] https://gist.github.com/allomov-altoros/4cfbd463a8bde056680d

Thank you,
Alex L.

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.