0

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?

9
  • 2
    If you have raspi-config, a safe way to "kill" the desktop environment is to set raspi-config to boot without one, and reboot. After you're done compiling, set raspi-config back to "boot into desktop environment" and reboot.
    – Jos
    Jun 14, 2016 at 14:30
  • 1
    Connect usb flash drive and make a swap file there. Do you want a step by step answer on that ? Jun 14, 2016 at 14:32
  • 1
    You ask about USB Ram, which the equivalent of putting a usb flash drive in and creating a swap on it. Also, if you take an old usb flash drive, do you really care how long it will last? If so, use an SLC card for longer longevity if you need more memory.
    – user508889
    Jun 14, 2016 at 14:54
  • 1
    Unfortunately you ask impossible thing. USB ram would be nice, but it doesn't exist( and it would probably cost a lot). Swap is the only option close to that Jun 14, 2016 at 14:58
  • 1
    As for killing desktop, sure you can do that, but raspberry has only what 1 gb ? Sooner or later it will run out Jun 14, 2016 at 15:00

0

You must log in to answer this question.

Browse other questions tagged .