Compiling Phalcon on Nitrous.IO

I recently came across, a PaaS service that provides Ubuntu development boxes for a variety of web platforms (Rails, Dajngo, PHP, etc.). There are free accounts, and I signed up for one of these and chose PHP for the first box I made.

I've really been trying to become more familiar with Phalcon (a PHP MVC framework written as a C extension). Installing the framework requires the developer to compile Phalcon's source code into a PHP extension. Unfortunately, I was having zero luck getting make to run until completion. It kept dying and didn't have any useful error output. Now, some C/gcc experts would probably know the issue right away, but for the rest of us, if you see the following, you may be running out of RAM during the compile process.

gcc: internal compiler error: Killed (program cc1)

That is exactly what was happening to me on my brand new dev box. Now, with the free tier you are very limited on how many resources your box can have. I ended up having to increase the RAM on my dev box to 640 MB in order to get the compile process to work. You'll need some extra "N2O" in order to do this, but Nitrous has a way of getting a little more N2O for free.

Once you've logged in, click on the icon at the top that shows how much N2O you have. They have several ways to get a little extra on that page. Once you've done that, go to the settings for your box and increase your RAM!


Add comment

No Comments.