Skip to content

Instantly share code, notes, and snippets.

@felipekm
Last active April 24, 2020 07:30
Show Gist options
  • Save felipekm/7a872b3c6c4adc435f1c300410b3799b to your computer and use it in GitHub Desktop.
Save felipekm/7a872b3c6c4adc435f1c300410b3799b to your computer and use it in GitHub Desktop.
Phantom installation failed { Error: spawn ENOMEM }

Follow this steps

  • sudo fallocate -l 4G /swapfile - Creates a 4GB swapfile
  • sudo chmod 600 /swapfile - only root access
  • sudo mkswap /swapfile - Mark as a swap space
  • sudo swapon /swapfile - Enables it
  • echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab - Persist it over reboots
@cafe4it
Copy link

cafe4it commented Apr 24, 2020

thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment