build pgenhtml
因為在編譯 python 時,會用到自己的 pgen,可是 cross compile 編出來的當然不能用,只能先編一套 pc 版的出來。python
# /mnt/<b style="color:#000;background:#66ffff">python</b>/bin/python2.<b style="color:#000;background:#66ff99">7</b> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix>>>>>>>>>[:<exec_prefix>] <b style="color:#000;background:#66ffff">Python</b> <b style="color:#000;background:#ffcc99">2</b>.<b style="color:#000;background:#66ff99">7</b>.<b style="color:#000;background:#ff66ff">11</b> (default, Jan 15 2016, 15:18:00) [GCC 4.4.<b style="color:#000;background:#66ff99">7</b>] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.path ['', '/mnt/<b style="color:#000;background:#66ffff">python</b>/lib/python27.zip', '/mnt/<b style="color:#000;background:#66ffff">python</b>/lib/python2.<b style="color:#000;background:#66ff99">7</b>', '/mnt/<b style="color:#000;background:#66ffff">python</b>/lib/python2.<b style="color:#000;background:#66ff99">7</b>/plat-linux2', '/mnt/<b style="color:#000;background:#66ffff">python</b>/lib/python2.<b style="color:#000;background:#66ff99">7</b>/lib-tk', '/mnt/<b style="color:#000;background:#66ffff">python</b>/lib/python2.<b style="color:#000;background:#66ff99">7</b>/lib-old', '/mnt/<b style="color:#000;background:#66ffff">python</b>/lib/lib-dynload', '/mnt/<b style="color:#000;background:#66ffff">python</b>/lib/python2.<b style="color:#000;background:#66ff99">7</b>/site-packages'] >>>linux
checking for resizeterm... no configure: checking for device files checking for /dev/ptmx... not set configure: error: set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compilingide
configure 加上 ac_cv_file__dev_ptmx=no 便可ui
checking for resizeterm... no configure: checking for device files checking for /dev/ptc... not set configure: error: set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compilingspa
configure 加上 ac_cv_file__dev_ptc=no 便可.net
make[1]: Leaving directory `/home/enos/FGN-1000/<b style="color:#000;background:#66ffff">Python</b>-<b style="color:#000;background:#ffcc99">2</b>.<b style="color:#000;background:#66ff99">7</b>.<b style="color:#000;background:#ff66ff">11</b>' Parser/pgen ./Grammar/Grammar Include/graminit.h <b style="color:#000;background:#66ffff">Python</b>/graminit.c Parser/pgen: Parser/pgen: cannot execute binary file make: *** [Include/graminit.h] Error 126orm
使用 pc 版本的 pgen 便可。htm
Traceback (most recent call last): File " <stdin>", line 1, in <module> File "/usr/lib/python2.<b style="color:#000;background:#66ff99">7</b>/subprocess.py", line 428, in <module> ImportError: No module named selectblog
修改 Module/Setup,把所須要的 module 加進去重編便可。