Make: python2.5-config: Command not found error solution under TinyOS-2.1.1

Platform: Ubuntu12.04 + TinyOS-2.1.1

1. Reason

python2.5-config cannot be found, mainly due to the following two possibilities:
1. There is no python-config file;
2. The version of python is wrong;

2. Install python-dev

sudo apt-get install python-dev  

After installing python-dev, the python2.7-config file will be generated under /usr/bin. If the installation is wrong, there may be a problem with the source.

sudo gedit /etc/apt/sources.list

Add deb http://security.ubuntu.com/ubuntu precise-security main to this source

sudo apt-get  update
sudo apt-get install python-dev

If adding this source still does not work, then change the default source of ubuntu to the source of BIT:
deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb http://mirror.bjtu .edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu / precise-security main multiverse restricted universe
deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe
deb-srchttp://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe
deb-src http: //mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe
deb-src http://mirror.bjtu.edu.cn/ubuntu/precise-updates main multiverse restricted universe
Repeat the above installation steps.

3. Modify PYTHON_VERSION

Change /opt/tinyos-2.1.1/support/make/sim.extra line 10 PYTHON_VERSION=2.5 to PYTHON_VERSION=2.7

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324971046&siteId=291194637