I recently tried to compile Github's Atom on my Raspberry Pi 2, but after getting past the first error and trying again, it aborted in the middle of the build. Looking in the log showed that it spawned ENOMEM
, or "error: no memory".
I do not want to create a swap on any flash medium, as that would cause extensive wear and tear.
I only need to know how to do one of these or something like them:
Temporarily killing my desktop environment (a huge RAM hog) and compiling from tty2
- Would the system even be stable enough for a build? Is there a "proper" way to shut down a desktop environment to avoid that?
USB Ram - Is there such thing? Would it work with the Raspberry Pi 2?
raspi-config
, a safe way to "kill" the desktop environment is to setraspi-config
to boot without one, and reboot. After you're done compiling, setraspi-config
back to "boot into desktop environment" and reboot.