Hi I have installed ruby 2.1.0 in my droplet, but when I am trying to install passenger-install-apache2-module, I am getting following exception. I have already swapped my memory twice, but I am getting same exception again and again. Please help me out
Your compiler failed with the exit status 4. This probably means that it ran out of memory. To solve this problem, try increasing your swap space: https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
Tasks: TOP => apache2 => buildout/agents/PassengerHelperAgent (See full trace by running task with --trace)
It looks like something went wrong
Please read our Users guide for troubleshooting tips:
/usr/local/lib/ruby/gems/2.1.0/gems/passenger-4.0.41/doc/Users guide Apache.html http://www.modrails.com/documentation/Users guide Apache.html
If that doesn’t help, please use our support facilities. We’ll do our best to help you.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Sometimes swap isn’t enough. You can add more swap but it’ll dramatically slow down your droplet. <br> <br>Try resizing temporarily to 1GB and resizing back to 512MB after compiling passenger. <br> <br>You can also try stopping programs that might be taking up a lot of memory such as Apache or MySQL.