Bundle install fails when install unf_ext. "Cannot allocate memory error when installing unf_ext"
<p>I have this bug that happens on my remote server.</p>

<p>Though this isn't replicable in my local environment.</p>

<p>Installing unf_ext 0.0.7.2 with native extensions</p>

<p>Gem::Ext::BuildError: ERROR: Failed to build gem native extension.</p>

<pre><code>/home/ubuntu/.rbenv/versions/2.1.2/bin/ruby extconf.rb
</code></pre>

<p>Cannot allocate memory - /home/ubuntu/.rbenv/versions/2.1.2/bin/ruby extconf.rb 2>&amp;1</p>

<pre><code>Gem files will remain installed in /home/ubuntu/switch-web/shared/bundle/ruby/2.1.0/gems/unf_ext-0.0.7.2 for inspection.
Results logged to /home/ubuntu/switch-web/shared/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/unf_ext-0.0.7.2/gem_make.out
An error occurred while installing unf_ext (0.0.7.2), and Bundler cannot
continue.
Make sure that `gem install unf_ext -v '0.0.7.2'` succeeds before bundling.
</code></pre>

<p>I've checked the ram space for my  server and it's still pretty decent (2gb free).</p>