oDGW compiling error


Ahmed
 



Hello,


I have this error when I try to compile the oDGW, see the error below:


root@mininet-vm:/home/mininet/opendove/odgw# make
** Copying required library code **
mkdir -p fd_process
cp -r ../odcs/fd_process/* fd_process
find ./fd_process -name '*.o' | xargs rm -f
mkdir -p osw
cp -r ../odcs/osw/* osw
find ./osw -name '*.o' | xargs rm -f
mkdir -p client_server_protocol
cp -r ../odcs/client_server_protocol/* client_server_protocol
find ./client_server_protocol -name '*.o' | xargs rm -f
mkdir -p timer
cp -r ../odcs/timer/* timer
find ./timer -name '*.o' | xargs rm -f
make -C /home/mininet/opendove/odgw/dgadmin
make[1]: Entering directory `/home/mininet/opendove/odgw/dgadmin'
rm -rf /home/mininet/opendove/odgw/dgadmin/build
**  Preparing build tree
mkdir -p /home/mininet/opendove/odgw/dgadmin/build
g++ -c -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/python2.7 -I../common -I../client_server_protocol/inc -I../osw/inc -Icli/inc -Icontroller_interface/inc -I../timer/inc -I/opt/libev/include -I/opt/jansson/include -I/opt/libevent/include -I/opt/boost/include -Iinc -fPIC -fno-strict-aliasing -g -lstdc++ -std=c++0x -O0 -DNDEBUG -DNON_POSIX_MQUEUE -DDOVE_SERVICE_APPLIANCE -fwrapv -Wall -Werror dgadmutil.c -o dgadmutil.o
In file included from dgadmutil.c:12:0:
inc/include.h:42:20: fatal error: Python.h: No such file or directory
compilation terminated.
make[1]: *** [dgadmutil.o] Error 1
make[1]: Leaving directory `/home/mininet/opendove/odgw/dgadmin'
make: *** [all] Error 2


What Can I do ?

Best regards,
Ahmed


Ryan Moats <rmoats@...>
 

Ahmed-

The oDGW user agent requires python2.7 - do you have it installed?

Ryan

opendove-dev-bounces@... wrote on 06/25/2014 10:04:12 AM:

> From: Ahmed Medhat <a.medhat.h@...>

> To: opendove-dev@...
> Date: 06/25/2014 10:04 AM
> Subject: [opendove-dev] oDGW compiling error
> Sent by: opendove-dev-bounces@...
>
>

> Hello,
>

> I have this error when I try to compile the oDGW, see the error below:
>
>
> root@mininet-vm:/home/mininet/opendove/odgw# make
> ** Copying required library code **
> mkdir -p fd_process
> cp -r ../odcs/fd_process/* fd_process
> find ./fd_process -name '*.o' | xargs rm -f
> mkdir -p osw
> cp -r ../odcs/osw/* osw
> find ./osw -name '*.o' | xargs rm -f
> mkdir -p client_server_protocol
> cp -r ../odcs/client_server_protocol/* client_server_protocol
> find ./client_server_protocol -name '*.o' | xargs rm -f
> mkdir -p timer
> cp -r ../odcs/timer/* timer
> find ./timer -name '*.o' | xargs rm -f
> make -C /home/mininet/opendove/odgw/dgadmin
> make[1]: Entering directory `/home/mininet/opendove/odgw/dgadmin'
> rm -rf /home/mininet/opendove/odgw/dgadmin/build
> **  Preparing build tree
> mkdir -p /home/mininet/opendove/odgw/dgadmin/build
> g++ -c -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/
> python2.7 -I../common -I../client_server_protocol/inc -I../osw/inc -
> Icli/inc -Icontroller_interface/inc -I../timer/inc -I/opt/libev/
> include -I/opt/jansson/include -I/opt/libevent/include -I/opt/boost/
> include -Iinc -fPIC -fno-strict-aliasing -g -lstdc++ -std=c++0x -O0
> -DNDEBUG -DNON_POSIX_MQUEUE -DDOVE_SERVICE_APPLIANCE -fwrapv -Wall -
> Werror dgadmutil.c -o dgadmutil.o
> In file included from dgadmutil.c:12:0:
> inc/include.h:42:20: fatal error: Python.h: No such file or directory
> compilation terminated.
> make[1]: *** [dgadmutil.o] Error 1
> make[1]: Leaving directory `/home/mininet/opendove/odgw/dgadmin'
> make: *** [all] Error 2
>

> What Can I do ?

> Best regards,
> Ahmed_______________________________________________
> opendove-dev mailing list
> opendove-dev@...
> https://lists.opendaylight.org/mailman/listinfo/opendove-dev


Ahmed
 

HI Ryan,

Thanks for reply.

yes , Python 2.7.4 installed

BR,
Ahmed




On Wed, Jun 25, 2014 at 5:18 PM, Ryan Moats <rmoats@...> wrote:

Ahmed-

The oDGW user agent requires python2.7 - do you have it installed?

Ryan

opendove-dev-bounces@... wrote on 06/25/2014 10:04:12 AM:

> From: Ahmed Medhat <a.medhat.h@...>

> To: opendove-dev@...
> Date: 06/25/2014 10:04 AM
> Subject: [opendove-dev] oDGW compiling error
> Sent by: opendove-dev-bounces@...


>
>

> Hello,
>

> I have this error when I try to compile the oDGW, see the error below:
>
>
> root@mininet-vm:/home/mininet/opendove/odgw# make
> ** Copying required library code **
> mkdir -p fd_process
> cp -r ../odcs/fd_process/* fd_process
> find ./fd_process -name '*.o' | xargs rm -f
> mkdir -p osw
> cp -r ../odcs/osw/* osw
> find ./osw -name '*.o' | xargs rm -f
> mkdir -p client_server_protocol
> cp -r ../odcs/client_server_protocol/* client_server_protocol
> find ./client_server_protocol -name '*.o' | xargs rm -f
> mkdir -p timer
> cp -r ../odcs/timer/* timer
> find ./timer -name '*.o' | xargs rm -f
> make -C /home/mininet/opendove/odgw/dgadmin
> make[1]: Entering directory `/home/mininet/opendove/odgw/dgadmin'
> rm -rf /home/mininet/opendove/odgw/dgadmin/build
> **  Preparing build tree
> mkdir -p /home/mininet/opendove/odgw/dgadmin/build
> g++ -c -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/
> python2.7 -I../common -I../client_server_protocol/inc -I../osw/inc -
> Icli/inc -Icontroller_interface/inc -I../timer/inc -I/opt/libev/
> include -I/opt/jansson/include -I/opt/libevent/include -I/opt/boost/
> include -Iinc -fPIC -fno-strict-aliasing -g -lstdc++ -std=c++0x -O0
> -DNDEBUG -DNON_POSIX_MQUEUE -DDOVE_SERVICE_APPLIANCE -fwrapv -Wall -
> Werror dgadmutil.c -o dgadmutil.o
> In file included from dgadmutil.c:12:0:
> inc/include.h:42:20: fatal error: Python.h: No such file or directory
> compilation terminated.
> make[1]: *** [dgadmutil.o] Error 1
> make[1]: Leaving directory `/home/mininet/opendove/odgw/dgadmin'
> make: *** [all] Error 2
>

> What Can I do ?

> Best regards,
> Ahmed_______________________________________________
> opendove-dev mailing list
> opendove-dev@...
> https://lists.opendaylight.org/mailman/listinfo/opendove-dev



Anees Shaikh <anees.shaikh@...>
 

it looks like the jenkins job is also failing due a similar (maybe same) problem, so i think we need to look into what's changed on the jenkins server and other platforms.

Ahmed, what platform are you compiling on?

thanks.
-- Anees


On Thu Jun 26 2014 at 1:11:15 AM, Ahmed Medhat <a.medhat.h@...> wrote:
HI Ryan,

Thanks for reply.

yes , Python 2.7.4 installed

BR,
Ahmed




On Wed, Jun 25, 2014 at 5:18 PM, Ryan Moats <rmoats@...> wrote:

Ahmed-

The oDGW user agent requires python2.7 - do you have it installed?

Ryan

opendove-dev-bounces@... wrote on 06/25/2014 10:04:12 AM:

> From: Ahmed Medhat <a.medhat.h@...>

> To: opendove-dev@...
> Date: 06/25/2014 10:04 AM
> Subject: [opendove-dev] oDGW compiling error
> Sent by: opendove-dev-bounces@...


>
>

> Hello,
>

> I have this error when I try to compile the oDGW, see the error below:
>
>
> root@mininet-vm:/home/mininet/opendove/odgw# make
> ** Copying required library code **
> mkdir -p fd_process
> cp -r ../odcs/fd_process/* fd_process
> find ./fd_process -name '*.o' | xargs rm -f
> mkdir -p osw
> cp -r ../odcs/osw/* osw
> find ./osw -name '*.o' | xargs rm -f
> mkdir -p client_server_protocol
> cp -r ../odcs/client_server_protocol/* client_server_protocol
> find ./client_server_protocol -name '*.o' | xargs rm -f
> mkdir -p timer
> cp -r ../odcs/timer/* timer
> find ./timer -name '*.o' | xargs rm -f
> make -C /home/mininet/opendove/odgw/dgadmin
> make[1]: Entering directory `/home/mininet/opendove/odgw/dgadmin'
> rm -rf /home/mininet/opendove/odgw/dgadmin/build
> **  Preparing build tree
> mkdir -p /home/mininet/opendove/odgw/dgadmin/build
> g++ -c -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/
> python2.7 -I../common -I../client_server_protocol/inc -I../osw/inc -
> Icli/inc -Icontroller_interface/inc -I../timer/inc -I/opt/libev/
> include -I/opt/jansson/include -I/opt/libevent/include -I/opt/boost/
> include -Iinc -fPIC -fno-strict-aliasing -g -lstdc++ -std=c++0x -O0
> -DNDEBUG -DNON_POSIX_MQUEUE -DDOVE_SERVICE_APPLIANCE -fwrapv -Wall -
> Werror dgadmutil.c -o dgadmutil.o
> In file included from dgadmutil.c:12:0:
> inc/include.h:42:20: fatal error: Python.h: No such file or directory
> compilation terminated.
> make[1]: *** [dgadmutil.o] Error 1
> make[1]: Leaving directory `/home/mininet/opendove/odgw/dgadmin'
> make: *** [all] Error 2
>

> What Can I do ?

> Best regards,
> Ahmed_______________________________________________
> opendove-dev mailing list
> opendove-dev@...
> https://lists.opendaylight.org/mailman/listinfo/opendove-dev


_______________________________________________
opendove-dev mailing list
opendove-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/opendove-dev


Ahmed
 

Hi Anees,

Thanks for reply,

I am using the Test VM , which is Ubuntu 13.04.

BR,
Ahmed


On Thu, Jun 26, 2014 at 7:15 PM, Anees Shaikh <anees.shaikh@...> wrote:

it looks like the jenkins job is also failing due a similar (maybe same) problem, so i think we need to look into what's changed on the jenkins server and other platforms.

Ahmed, what platform are you compiling on?

thanks.
-- Anees

On Thu Jun 26 2014 at 1:11:15 AM, Ahmed Medhat <a.medhat.h@...> wrote:
HI Ryan,

Thanks for reply.

yes , Python 2.7.4 installed

BR,
Ahmed




On Wed, Jun 25, 2014 at 5:18 PM, Ryan Moats <rmoats@...> wrote:

Ahmed-

The oDGW user agent requires python2.7 - do you have it installed?

Ryan

opendove-dev-bounces@... wrote on 06/25/2014 10:04:12 AM:

> From: Ahmed Medhat <a.medhat.h@...>

> To: opendove-dev@...
> Date: 06/25/2014 10:04 AM
> Subject: [opendove-dev] oDGW compiling error
> Sent by: opendove-dev-bounces@...


>
>

> Hello,
>

> I have this error when I try to compile the oDGW, see the error below:
>
>
> root@mininet-vm:/home/mininet/opendove/odgw# make
> ** Copying required library code **
> mkdir -p fd_process
> cp -r ../odcs/fd_process/* fd_process
> find ./fd_process -name '*.o' | xargs rm -f
> mkdir -p osw
> cp -r ../odcs/osw/* osw
> find ./osw -name '*.o' | xargs rm -f
> mkdir -p client_server_protocol
> cp -r ../odcs/client_server_protocol/* client_server_protocol
> find ./client_server_protocol -name '*.o' | xargs rm -f
> mkdir -p timer
> cp -r ../odcs/timer/* timer
> find ./timer -name '*.o' | xargs rm -f
> make -C /home/mininet/opendove/odgw/dgadmin
> make[1]: Entering directory `/home/mininet/opendove/odgw/dgadmin'
> rm -rf /home/mininet/opendove/odgw/dgadmin/build
> **  Preparing build tree
> mkdir -p /home/mininet/opendove/odgw/dgadmin/build
> g++ -c -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/
> python2.7 -I../common -I../client_server_protocol/inc -I../osw/inc -
> Icli/inc -Icontroller_interface/inc -I../timer/inc -I/opt/libev/
> include -I/opt/jansson/include -I/opt/libevent/include -I/opt/boost/
> include -Iinc -fPIC -fno-strict-aliasing -g -lstdc++ -std=c++0x -O0
> -DNDEBUG -DNON_POSIX_MQUEUE -DDOVE_SERVICE_APPLIANCE -fwrapv -Wall -
> Werror dgadmutil.c -o dgadmutil.o
> In file included from dgadmutil.c:12:0:
> inc/include.h:42:20: fatal error: Python.h: No such file or directory
> compilation terminated.
> make[1]: *** [dgadmutil.o] Error 1
> make[1]: Leaving directory `/home/mininet/opendove/odgw/dgadmin'
> make: *** [all] Error 2
>

> What Can I do ?

> Best regards,
> Ahmed_______________________________________________
> opendove-dev mailing list
> opendove-dev@...
> https://lists.opendaylight.org/mailman/listinfo/opendove-dev


_______________________________________________
opendove-dev mailing list
opendove-dev@lists.opendaylight.org
https://lists.opendaylight.org/mailman/listinfo/opendove-dev


Ryan Moats <rmoats@...>
 

While this is on my list to chase down, I'm not 100% sure when I'll get time...

Ryan

Anees Shaikh <anees.shaikh@...> wrote on 06/26/2014 12:15:21 PM:

> From: Anees Shaikh <anees.shaikh@...>

> To: Ahmed Medhat <a.medhat.h@...>, Ryan Moats/Omaha/IBM@IBMUS
> Cc: opendove-dev@...
> Date: 06/26/2014 12:15 PM
> Subject: Re: [opendove-dev] oDGW compiling error
>
> it looks like the jenkins job is also failing due a similar (maybe
> same) problem, so i think we need to look into what's changed on the
> jenkins server and other platforms.

>
> Ahmed, what platform are you compiling on?

>
> thanks.

> -- Anees
>
> On Thu Jun 26 2014 at 1:11:15 AM, Ahmed Medhat <a.medhat.h@...> wrote:

> HI Ryan,

> Thanks for reply.

> yes , Python 2.7.4 installed

> BR,
> Ahmed
>

>

> On Wed, Jun 25, 2014 at 5:18 PM, Ryan Moats <rmoats@...> wrote:
> Ahmed-
>
> The oDGW user agent requires python2.7 - do you have it installed?
>
> Ryan
>
> opendove-dev-bounces@... wrote on 06/25/2014 10:04:12 AM:
>
> > From: Ahmed Medhat <a.medhat.h@...>
> > To: opendove-dev@...
> > Date: 06/25/2014 10:04 AM
> > Subject: [opendove-dev] oDGW compiling error
> > Sent by: opendove-dev-bounces@...

>
> >
> >
>
> > Hello,
> >
>
> > I have this error when I try to compile the oDGW, see the error below:
> >
> >
> > root@mininet-vm:/home/mininet/opendove/odgw# make
> > ** Copying required library code **
> > mkdir -p fd_process
> > cp -r ../odcs/fd_process/* fd_process
> > find ./fd_process -name '*.o' | xargs rm -f
> > mkdir -p osw
> > cp -r ../odcs/osw/* osw
> > find ./osw -name '*.o' | xargs rm -f
> > mkdir -p client_server_protocol
> > cp -r ../odcs/client_server_protocol/* client_server_protocol
> > find ./client_server_protocol -name '*.o' | xargs rm -f
> > mkdir -p timer
> > cp -r ../odcs/timer/* timer
> > find ./timer -name '*.o' | xargs rm -f
> > make -C /home/mininet/opendove/odgw/dgadmin
> > make[1]: Entering directory `/home/mininet/opendove/odgw/dgadmin'
> > rm -rf /home/mininet/opendove/odgw/dgadmin/build
> > **  Preparing build tree
> > mkdir -p /home/mininet/opendove/odgw/dgadmin/build
> > g++ -c -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/
> > python2.7 -I../common -I../client_server_protocol/inc -I../osw/inc -
> > Icli/inc -Icontroller_interface/inc -I../timer/inc -I/opt/libev/
> > include -I/opt/jansson/include -I/opt/libevent/include -I/opt/boost/
> > include -Iinc -fPIC -fno-strict-aliasing -g -lstdc++ -std=c++0x -O0
> > -DNDEBUG -DNON_POSIX_MQUEUE -DDOVE_SERVICE_APPLIANCE -fwrapv -Wall -
> > Werror dgadmutil.c -o dgadmutil.o
> > In file included from dgadmutil.c:12:0:
> > inc/include.h:42:20: fatal error: Python.h: No such file or directory
> > compilation terminated.
> > make[1]: *** [dgadmutil.o] Error 1
> > make[1]: Leaving directory `/home/mininet/opendove/odgw/dgadmin'
> > make: *** [all] Error 2
> >
>
> > What Can I do ?
>
> > Best regards,

> > Ahmed_______________________________________________
> > opendove-dev mailing list
> > opendove-dev@...
> > https://lists.opendaylight.org/mailman/listinfo/opendove-dev

>
> _______________________________________________
> opendove-dev mailing list
> opendove-dev@...
> https://lists.opendaylight.org/mailman/listinfo/opendove-dev


Ahmed
 

Hi Ryan,

Did you find a solution for the problem which I have regarding the compile the oDGW ?

Thanks,
Ahmed


On Thu, Jun 26, 2014 at 7:23 PM, Ryan Moats <rmoats@...> wrote:

While this is on my list to chase down, I'm not 100% sure when I'll get time...

Ryan

Anees Shaikh <anees.shaikh@...> wrote on 06/26/2014 12:15:21 PM:

> From: Anees Shaikh <anees.shaikh@...>

> To: Ahmed Medhat <a.medhat.h@...>, Ryan Moats/Omaha/IBM@IBMUS
> Cc: opendove-dev@...
> Date: 06/26/2014 12:15 PM
> Subject: Re: [opendove-dev] oDGW compiling error


>
> it looks like the jenkins job is also failing due a similar (maybe
> same) problem, so i think we need to look into what's changed on the
> jenkins server and other platforms.

>
> Ahmed, what platform are you compiling on?

>
> thanks.

> -- Anees
>
> On Thu Jun 26 2014 at 1:11:15 AM, Ahmed Medhat <a.medhat.h@...> wrote:

> HI Ryan,

> Thanks for reply.

> yes , Python 2.7.4 installed

> BR,
> Ahmed
>

>

> On Wed, Jun 25, 2014 at 5:18 PM, Ryan Moats <rmoats@...> wrote:
> Ahmed-
>
> The oDGW user agent requires python2.7 - do you have it installed?
>
> Ryan
>
> opendove-dev-bounces@... wrote on 06/25/2014 10:04:12 AM:
>
> > From: Ahmed Medhat <a.medhat.h@...>
> > To: opendove-dev@...
> > Date: 06/25/2014 10:04 AM
> > Subject: [opendove-dev] oDGW compiling error
> > Sent by: opendove-dev-bounces@...

>
> >
> >
>
> > Hello,
> >
>
> > I have this error when I try to compile the oDGW, see the error below:
> >
> >
> > root@mininet-vm:/home/mininet/opendove/odgw# make
> > ** Copying required library code **
> > mkdir -p fd_process
> > cp -r ../odcs/fd_process/* fd_process
> > find ./fd_process -name '*.o' | xargs rm -f
> > mkdir -p osw
> > cp -r ../odcs/osw/* osw
> > find ./osw -name '*.o' | xargs rm -f
> > mkdir -p client_server_protocol
> > cp -r ../odcs/client_server_protocol/* client_server_protocol
> > find ./client_server_protocol -name '*.o' | xargs rm -f
> > mkdir -p timer
> > cp -r ../odcs/timer/* timer
> > find ./timer -name '*.o' | xargs rm -f
> > make -C /home/mininet/opendove/odgw/dgadmin
> > make[1]: Entering directory `/home/mininet/opendove/odgw/dgadmin'
> > rm -rf /home/mininet/opendove/odgw/dgadmin/build
> > **  Preparing build tree
> > mkdir -p /home/mininet/opendove/odgw/dgadmin/build
> > g++ -c -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/
> > python2.7 -I../common -I../client_server_protocol/inc -I../osw/inc -
> > Icli/inc -Icontroller_interface/inc -I../timer/inc -I/opt/libev/
> > include -I/opt/jansson/include -I/opt/libevent/include -I/opt/boost/
> > include -Iinc -fPIC -fno-strict-aliasing -g -lstdc++ -std=c++0x -O0
> > -DNDEBUG -DNON_POSIX_MQUEUE -DDOVE_SERVICE_APPLIANCE -fwrapv -Wall -
> > Werror dgadmutil.c -o dgadmutil.o
> > In file included from dgadmutil.c:12:0:
> > inc/include.h:42:20: fatal error: Python.h: No such file or directory
> > compilation terminated.
> > make[1]: *** [dgadmutil.o] Error 1
> > make[1]: Leaving directory `/home/mininet/opendove/odgw/dgadmin'
> > make: *** [all] Error 2
> >
>
> > What Can I do ?
>
> > Best regards,

> > Ahmed_______________________________________________
> > opendove-dev mailing list
> > opendove-dev@...
> > https://lists.opendaylight.org/mailman/listinfo/opendove-dev

>
> _______________________________________________
> opendove-dev mailing list
> opendove-dev@...
> https://lists.opendaylight.org/mailman/listinfo/opendove-dev



Ryan Moats <rmoats@...>
 

There are a couple of things that are going on here:

First, you would need the python package that includes the Python.h include file (typically python-dev or something like that)

Second, if you have the python package that includes Python.h, but it isn't installed in a normal place, then you'll have to add the directory where it can be found to the include path defined in dgadmin/Makefile

Ryan

Ahmed Medhat <a.medhat.h@...> wrote on 06/30/2014 03:31:34 AM:

> From: Ahmed Medhat <a.medhat.h@...>

> To: Ryan Moats/Omaha/IBM@IBMUS
> Cc: opendove-dev@...
> Date: 06/30/2014 03:31 AM
> Subject: Re: [opendove-dev] oDGW compiling error
>
> Hi Ryan,

> Did you find a solution for the problem which I have regarding the
> compile the oDGW ?

> Thanks,
> Ahmed
>

> On Thu, Jun 26, 2014 at 7:23 PM, Ryan Moats <rmoats@...> wrote:
> While this is on my list to chase down, I'm not 100% sure when I'll
> get time...
>
> Ryan
>
> Anees Shaikh <anees.shaikh@...> wrote on 06/26/2014 12:15:21 PM:
>
> > From: Anees Shaikh <anees.shaikh@...>
> > To: Ahmed Medhat <a.medhat.h@...>, Ryan Moats/Omaha/IBM@IBMUS
> > Cc: opendove-dev@...
> > Date: 06/26/2014 12:15 PM
> > Subject: Re: [opendove-dev] oDGW compiling error

>
> >
> > it looks like the jenkins job is also failing due a similar (maybe
> > same) problem, so i think we need to look into what's changed on the
> > jenkins server and other platforms.
> >
> > Ahmed, what platform are you compiling on?
> >
> > thanks.
> > -- Anees
> >
> > On Thu Jun 26 2014 at 1:11:15 AM, Ahmed Medhat <a.medhat.h@...> wrote:
> > HI Ryan,
>
> > Thanks for reply.
>
> > yes , Python 2.7.4 installed
>
> > BR,
> > Ahmed
> >
>
> >
>
> > On Wed, Jun 25, 2014 at 5:18 PM, Ryan Moats <rmoats@...> wrote:
> > Ahmed-
> >
> > The oDGW user agent requires python2.7 - do you have it installed?
> >
> > Ryan
> >
> > opendove-dev-bounces@... wrote on 06/25/2014 10:04:12 AM:
> >
> > > From: Ahmed Medhat <a.medhat.h@...>
> > > To: opendove-dev@...
> > > Date: 06/25/2014 10:04 AM
> > > Subject: [opendove-dev] oDGW compiling error
> > > Sent by: opendove-dev-bounces@...
> >
> > >
> > >
> >
> > > Hello,
> > >
> >
> > > I have this error when I try to compile the oDGW, see the error below:
> > >
> > >
> > > root@mininet-vm:/home/mininet/opendove/odgw# make
> > > ** Copying required library code **
> > > mkdir -p fd_process
> > > cp -r ../odcs/fd_process/* fd_process
> > > find ./fd_process -name '*.o' | xargs rm -f
> > > mkdir -p osw
> > > cp -r ../odcs/osw/* osw
> > > find ./osw -name '*.o' | xargs rm -f
> > > mkdir -p client_server_protocol
> > > cp -r ../odcs/client_server_protocol/* client_server_protocol
> > > find ./client_server_protocol -name '*.o' | xargs rm -f
> > > mkdir -p timer
> > > cp -r ../odcs/timer/* timer
> > > find ./timer -name '*.o' | xargs rm -f
> > > make -C /home/mininet/opendove/odgw/dgadmin
> > > make[1]: Entering directory `/home/mininet/opendove/odgw/dgadmin'
> > > rm -rf /home/mininet/opendove/odgw/dgadmin/build
> > > **  Preparing build tree
> > > mkdir -p /home/mininet/opendove/odgw/dgadmin/build
> > > g++ -c -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/
> > > python2.7 -I../common -I../client_server_protocol/inc -I../osw/inc -
> > > Icli/inc -Icontroller_interface/inc -I../timer/inc -I/opt/libev/
> > > include -I/opt/jansson/include -I/opt/libevent/include -I/opt/boost/
> > > include -Iinc -fPIC -fno-strict-aliasing -g -lstdc++ -std=c++0x -O0
> > > -DNDEBUG -DNON_POSIX_MQUEUE -DDOVE_SERVICE_APPLIANCE -fwrapv -Wall -
> > > Werror dgadmutil.c -o dgadmutil.o
> > > In file included from dgadmutil.c:12:0:
> > > inc/include.h:42:20: fatal error: Python.h: No such file or directory
> > > compilation terminated.
> > > make[1]: *** [dgadmutil.o] Error 1
> > > make[1]: Leaving directory `/home/mininet/opendove/odgw/dgadmin'
> > > make: *** [all] Error 2
> > >
> >
> > > What Can I do ?
> >
> > > Best regards,
> > > Ahmed_______________________________________________
> > > opendove-dev mailing list
> > > opendove-dev@...
> > > https://lists.opendaylight.org/mailman/listinfo/opendove-dev
> >
> > _______________________________________________
> > opendove-dev mailing list
> > opendove-dev@...
> > https://lists.opendaylight.org/mailman/listinfo/opendove-dev


Ahmed
 

Hello Ryan,

Thank you a lot.

It works with me, I have modified the Python.h with its path but inside the inc/include.h
 file. and the make works.

but the sudo ./run,sh did not.
I got this error:
SIOCSIFMTU: Invalid argument
Cannot change rx-checksumming
SIOCSIFMTU: Invalid argument
Error: could not load module module/dgwy_module.ko: No such file or directory
./run.sh: line 57: /home/mininet/opendove/odgw/build/dove_gateway.py: No such file or directory

I searched for dgwy_module.ko , I did not find it but dove_gateway.py exists but the path need to be modified in the run.sh file, because it should be ---/dgadmin/build/dove_gateway.py

After that run.sh works but have a problem (I think it has no effect): the output of ./run.sh is below:

SIOCSIFMTU: Invalid argument
Cannot change rx-checksumming
SIOCSIFMTU: Invalid argument
Error: could not load module module/dgwy_module.ko: No such file or directory
/flash/svc.uuid NOT FOUND...need to generate UUID
Password:dgwy_ctrl_task_main:error when init nl

Password:
Logged In as Admin

then I logged in and it works.

Best regards,
Ahmed


On Mon, Jun 30, 2014 at 4:29 PM, Ryan Moats <rmoats@...> wrote:

There are a couple of things that are going on here:

First, you would need the python package that includes the Python.h include file (typically python-dev or something like that)

Second, if you have the python package that includes Python.h, but it isn't installed in a normal place, then you'll have to add the directory where it can be found to the include path defined in dgadmin/Makefile

Ryan

Ahmed Medhat <a.medhat.h@...> wrote on 06/30/2014 03:31:34 AM:

> From: Ahmed Medhat <a.medhat.h@...>

> To: Ryan Moats/Omaha/IBM@IBMUS
> Cc: opendove-dev@...
> Date: 06/30/2014 03:31 AM


> Subject: Re: [opendove-dev] oDGW compiling error
>
> Hi Ryan,

> Did you find a solution for the problem which I have regarding the
> compile the oDGW ?

> Thanks,
> Ahmed
>

> On Thu, Jun 26, 2014 at 7:23 PM, Ryan Moats <rmoats@...> wrote:
> While this is on my list to chase down, I'm not 100% sure when I'll
> get time...
>
> Ryan
>
> Anees Shaikh <anees.shaikh@...> wrote on 06/26/2014 12:15:21 PM:
>
> > From: Anees Shaikh <anees.shaikh@...>
> > To: Ahmed Medhat <a.medhat.h@...>, Ryan Moats/Omaha/IBM@IBMUS
> > Cc: opendove-dev@...
> > Date: 06/26/2014 12:15 PM
> > Subject: Re: [opendove-dev] oDGW compiling error

>
> >
> > it looks like the jenkins job is also failing due a similar (maybe
> > same) problem, so i think we need to look into what's changed on the
> > jenkins server and other platforms.
> >
> > Ahmed, what platform are you compiling on?
> >
> > thanks.
> > -- Anees
> >
> > On Thu Jun 26 2014 at 1:11:15 AM, Ahmed Medhat <a.medhat.h@...> wrote:
> > HI Ryan,
>
> > Thanks for reply.
>
> > yes , Python 2.7.4 installed
>
> > BR,
> > Ahmed
> >
>
> >
>
> > On Wed, Jun 25, 2014 at 5:18 PM, Ryan Moats <rmoats@...> wrote:
> > Ahmed-
> >
> > The oDGW user agent requires python2.7 - do you have it installed?
> >
> > Ryan
> >
> > opendove-dev-bounces@... wrote on 06/25/2014 10:04:12 AM:
> >
> > > From: Ahmed Medhat <a.medhat.h@...>
> > > To: opendove-dev@...
> > > Date: 06/25/2014 10:04 AM
> > > Subject: [opendove-dev] oDGW compiling error
> > > Sent by: opendove-dev-bounces@...
> >
> > >
> > >
> >
> > > Hello,
> > >
> >
> > > I have this error when I try to compile the oDGW, see the error below:
> > >
> > >
> > > root@mininet-vm:/home/mininet/opendove/odgw# make
> > > ** Copying required library code **
> > > mkdir -p fd_process
> > > cp -r ../odcs/fd_process/* fd_process
> > > find ./fd_process -name '*.o' | xargs rm -f
> > > mkdir -p osw
> > > cp -r ../odcs/osw/* osw
> > > find ./osw -name '*.o' | xargs rm -f
> > > mkdir -p client_server_protocol
> > > cp -r ../odcs/client_server_protocol/* client_server_protocol
> > > find ./client_server_protocol -name '*.o' | xargs rm -f
> > > mkdir -p timer
> > > cp -r ../odcs/timer/* timer
> > > find ./timer -name '*.o' | xargs rm -f
> > > make -C /home/mininet/opendove/odgw/dgadmin
> > > make[1]: Entering directory `/home/mininet/opendove/odgw/dgadmin'
> > > rm -rf /home/mininet/opendove/odgw/dgadmin/build
> > > **  Preparing build tree
> > > mkdir -p /home/mininet/opendove/odgw/dgadmin/build
> > > g++ -c -I-I/usr/include/python2.7 -I/usr/include/x86_64-linux-gnu/
> > > python2.7 -I../common -I../client_server_protocol/inc -I../osw/inc -
> > > Icli/inc -Icontroller_interface/inc -I../timer/inc -I/opt/libev/
> > > include -I/opt/jansson/include -I/opt/libevent/include -I/opt/boost/
> > > include -Iinc -fPIC -fno-strict-aliasing -g -lstdc++ -std=c++0x -O0
> > > -DNDEBUG -DNON_POSIX_MQUEUE -DDOVE_SERVICE_APPLIANCE -fwrapv -Wall -
> > > Werror dgadmutil.c -o dgadmutil.o
> > > In file included from dgadmutil.c:12:0:
> > > inc/include.h:42:20: fatal error: Python.h: No such file or directory
> > > compilation terminated.
> > > make[1]: *** [dgadmutil.o] Error 1
> > > make[1]: Leaving directory `/home/mininet/opendove/odgw/dgadmin'
> > > make: *** [all] Error 2
> > >
> >
> > > What Can I do ?
> >
> > > Best regards,
> > > Ahmed_______________________________________________
> > > opendove-dev mailing list
> > > opendove-dev@...
> > > https://lists.opendaylight.org/mailman/listinfo/opendove-dev
> >
> > _______________________________________________
> > opendove-dev mailing list
> > opendove-dev@...
> > https://lists.opendaylight.org/mailman/listinfo/opendove-dev