Skip to content

Instantly share code, notes, and snippets.

@juliandunn
Last active August 29, 2015 14:10
Show Gist options
  • Save juliandunn/629e2c9324a3b521ee82 to your computer and use it in GitHub Desktop.
Save juliandunn/629e2c9324a3b521ee82 to your computer and use it in GitHub Desktop.
How to get omnibus build environment on ppc64 linux
#!/bin/sh
sudo yum -y install git
sudo yum -y install gcc gcc-c++ patch
wget -O /tmp/ruby-install-v0.4.3.tar.gz https://codeload.github.com/postmodern/ruby-install/tar.gz/v0.4.3
cd /tmp && tar zxvf ruby-install-v0.4.3.tar.gz
sudo yum remove libyaml # cloud-init on IBM PDP conflicts, but we don't care if that's removed now
cd ruby-install-0.4.3
sudo make install
sudo /usr/local/bin/ruby-install ruby 2.1.2 # TODO: put flags from https://github.com/opscode-cookbooks/omnibus/blob/master/libraries/ruby_install.rb#L53-L59 in here
sudo yum -y install libxml2-devel libxslt-devel ncurses-devel zlib-devel # from https://github.com/opscode-cookbooks/omnibus/blob/master/recipes/_xml.rb
sudo yum -y install openssl-devel # from https://github.com/opscode-cookbooks/omnibus/blob/master/recipes/_openssl.rb
sudo yum -y install fakeroot ncurses-devel rpm-build zlib-devel # from https://github.com/opscode-cookbooks/omnibus/blob/master/recipes/_packaging.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment