Just install python-dev package.
$sudo apt-get install python-dev

In case, if you already installed, please change PYTHON_VERSION in /opt/*
tinyos*-2.0/support/make/*sim*.*extra* from 2.5 to 2.6.
You can get python version by typing python at command prompt.




On Thu, Jun 30, 2011 at 12:54 AM, vinod kumar <[email protected]> wrote:

> make iris sim error on ubuntu:
> opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:139:20: error: Python.h: No
> such file or directory
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2501:4: error: #error "This
> python version requires swig to be run with the '-classic' option"
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:744: error: expected
> initializer before ‘*’ token
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:799: error: expected
> initializer before ‘*’ token
> /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:820: error: expected
> initializer before ‘*’ token
> In file included from /usr/include/c++/4.4/stdexcept:38,
>                  from /opt/tinyos-2.x/tos/lib/tossim/tossim_wrap.cxx:2520:
> /usr/include/c++/4.4/exception:35: error: expected declaration before end
> of line
> make: *** [sim-exe] Error 1
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to