Code: Select all
sudo apt-get install python2.7-dev
Now for the problem (in case others search for it).
I had the previous compile working... for quite some time... but this new one turned out to be a bit more challenging for me. I purged all of the old stuff - wiping out the esp-open-sdk completely. I then fetch & compile like this:
Code: Select all
cd ~/workspace/esp-open-sdk
make clean
git pull
git submodule sync
git submodule update --init
make
Code: Select all
[INFO ] Installing C library
[INFO ] Installing C library: done in 42.67s (at 12:09)
[INFO ] =================================================================
[INFO ] Installing final gcc compiler
[INFO ] Installing final gcc compiler: done in 412.31s (at 19:01)
[INFO ] =================================================================
[INFO ] Installing cross-gdb
[ERROR] configure: error: python is missing or unusable
[ERROR] make[4]: *** [configure-gdb] Error 1
[ERROR] make[3]: *** [all] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing cross-gdb'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR] >> called from: do_debug_gdb_build[scripts/build/debug/300-gdb.sh@120]
[ERROR] >> called from: do_debug[scripts/build/debug.sh@35]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@646]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> 'share/doc/crosstool-ng/crosstool-ng-1.22.0-55-gecfc19a/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 20:14.68)
[20:15] / ct-ng:152: recipe for target 'build' failed
Code: Select all
[ALL ] checking for XML_StopParser... yes
[ALL ] checking whether to use python... yes
[ALL ] checking for python... /usr/bin/python
[ALL ] checking for python2.7... no
[ERROR] configure: error: python is missing or unusable
[ALL ] Makefile:8724: recipe for target 'configure-gdb' failed
[ERROR] make[4]: *** [configure-gdb] Error 1
Code: Select all
me@mymachine:~$ apt-cache policy python
python:
Installed: 2.7.9-1
Candidate: 2.7.9-1
Version table:
*** 2.7.9-1 0
500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
me@mymachine:~$ apt-cache policy python3
python3:
Installed: 3.4.2-2
Candidate: 3.4.2-2
Version table:
*** 3.4.2-2 0
500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
Code: Select all
$ python
Python 2.7.9 (default, Mar 1 2015, 12:57:24)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "hello world"
hello world
and so I've updated my building script described here: http://forum.micropython.org/viewtopic. ... 9769#p9769 or more specifically on github here https://github.com/gojimmypi/build_esp8266 - those are my own instructions & notes! the official build instructions are here: http://forum.micropython.org/viewtopic.php?f=16&t=1689
@pfalcon - perhaps the python2.7-dev could be added here: https://github.com/pfalcon/esp-open-sdk as well?
hopefully this helps someone...
btw the official build instructions are here: http://forum.micropython.org/viewtopic.php?f=16&t=1689