Raspberry Pi Observations - RAM and Library Checks?
Created originally on Bitbucket by Alex Edwards
Hi,
I’ve just been compiling PyPy pypy2.7-v7.1.1-src.zip on a Raspberry Pi Zero ‘stretch’ - quite a slow process!
After quite a long time, 30-60mins perhaps, it bombed out with insufficient memory. I added some more swap and its working.
It could be handy to simply warn if memory less than 500MB or 1GB spare perhaps? Adding 1GB swap worked, though I didn’t try smaller amounts.
Then installing again, after perhaps an hour, the build failed again because of a missing -dev library / package libbz2-dev. Then twice more on libncurses5-dev.
I then found your helpful page - http://doc.pypy.org/en/latest/build.html - and installed all the packages I could in advance.
sudo apt-get install libexpat1-dev
sudo apt-get install libncurses-dev
sudo apt-get install libncursesw-dev
sudo apt-get install libgdbm-dev
sudo apt-get install tk-dev -- installs X, so avoid if possible
sudo apt-get install liblzma-dev
It would have helped me a lot if these dependencies had been spotted and warned/failed sooner. Also a link to your installation page would help too, rather than failing on one package per long compile.
PS - I only more recently noticed that a newer version of pypy is in Raspbian buster - I should probably have just installed that!
Cheers
Alex