• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomepcDuinopcDuino8How to create Swap on pcDuino8 Uno
Previous Next

How to create Swap on pcDuino8 Uno

Posted by: Alvin Jin , January 20, 2016

When I use pip command to install scipy on pcDuino8 Uno, after about one or two hours to compile, I get errors seemly like:

g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
After I google with this error, I get what had happened. That's because pcDuino8 Uno has only 1GB ram which is not enough to compile <code>scipy</code>.At the same time I use <code>free -m</code> to check the ram and swap, it shows that the swap is 0. So if I add a swap partition, this error will be solved.


free -m
sudo dd if=/dev/zero of=/var/swap.img bs=1M count=1000
sudo mkswap /var/swap.img
sudo swapon /var/swap.img
free -m

This creates a new swap about 1GB. Then I run sudo pip install scipy, after several hours, the installation will be done! After installation is done, you can run the following commands to remove the swap partition.


sudo swapoff /var/swap.img
sudo rm /var/swap.img



        

Share!
Tweet

Alvin Jin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors