myfirst.cc don't running

488 views
Skip to first unread message

icen

unread,
May 5, 2016, 7:33:19 AM5/5/16
to ns-3-users
Hello,

i am on NS3.18.1
The first time i test first.cc
./waf --run first
and it was succefully running 
next i wanted to follow the tutorial i did this
cp /examples/tutorial/first.cc scratch/myfirst.cc

./waf --run myfirst.cc
but i got this message

 training@ubuntu
:~/NS3-SIM/ns-3.18.1$ ./waf --run scratch/myfirst
Waf: Entering directory `/home/training/NS3-SIM/ns-3.18.1/build'
[1080/2620] cxx: scratch/myfirst.cc -> build/scratch/myfirst.cc.12.o
In file included from ../scratch/myfirst.cc:17:0:
./ns3/core-module.h:10:19: erreur fatale: ./ns3/abort.h : Permission non accordée
compilation terminée.
Waf: Leaving directory `
/home/training/NS3-SIM/ns-3.18.1/build'
Traceback (most recent call last):
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 97, in waf_entry_point
    run_commands()
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 153, in run_commands
    ctx=run_command(cmd_name)
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 146, in run_command
    ctx.execute()
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Scripting.py", line 351, in execute
    return execute_method(self)
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Build.py", line 106, in execute
    self.execute_build()
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Build.py", line 115, in execute_build
    self.compile()
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Build.py", line 186, in compile
    self.store()
  File "waf-tools/relocation.py", line 24, in store
    old1(self)
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Utils.py", line 386, in f
    ret=fun(*k,**kw)
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Build.py", line 165, in store
    Utils.writef(db+'
.tmp',x,m='wb')
  File "/home/training/NS3-SIM/ns-3.18.1/.waf-1.7.11-edc6ccb516c5e3f9b892efc9f53a610f/waflib/Utils.py", line 96, in writef
    f=open(fname,m)
IOError: [Errno 13] Permission denied: '
/home/training/NS3-SIM/ns-3.18.1/build/.wafpickle-linux2-34014192-98.tmp'


please i need a help thank you




Ameer H

unread,
May 5, 2016, 8:05:56 AM5/5/16
to ns-3-users
I'm not a really expert person with NS3, but I guess when the guys see this the first thing they will say that you should update your NS3 version to 3.25, try it 

 secondly, mostly you want to move your first.cc from example folder into scratch folder, you can easily copy paste it into scratch folder instead of using command terminal.
.

and to solve your problem, you used ./waf--run first.cc , when we run a file we remove .cc

try ./waf --run scratch/first

I hope this will help you :) 

BEN YOUNES Ihsen

unread,
May 5, 2016, 8:13:39 AM5/5/16
to ns-3-...@googlegroups.com
thank you for your response but i must to work on this version of ns3 ( in my internship) 


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ajW0e8s4ADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

Konstantinos

unread,
May 5, 2016, 8:24:19 AM5/5/16
to ns-3-users
As Ameer pointed out, when you run your script you should NOT use the .cc ending.
Call just "./waf --run myfrist" not "./waf --run scratch/myfirst.cc" as you said you did.


On Thursday, May 5, 2016 at 1:13:39 PM UTC+1, icen wrote:
thank you for your response but i must to work on this version of ns3 ( in my internship) 

2016-05-05 14:05 GMT+02:00 Ameer H <princ...@gmail.com>:
I'm not a really expert person with NS3, but I guess when the guys see this the first thing they will say that you should update your NS3 version to 3.25, try it 

 secondly, mostly you want to move your first.cc from example folder into scratch folder, you can easily copy paste it into scratch folder instead of using command terminal.
.

and to solve your problem, you used ./waf--run first.cc , when we run a file we remove .cc

try ./waf --run scratch/first

I hope this will help you :) 

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ajW0e8s4ADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.

BEN YOUNES Ihsen

unread,
May 5, 2016, 8:34:07 AM5/5/16
to ns-3-...@googlegroups.com
no i didn't put the extension.cc just  i make a misktake in taping in keyboard
when  icall with this  ./waf --run first that's run succefully but when i make ./waf --run myfirst  i have got an error message !
i need a solution because i want to follow the NS Tutorial

Thank you again

2016-05-05 14:24 GMT+02:00 Konstantinos <dinos.k...@gmail.com>:
As Ameer pointed out, when you run your script you should NOT use the .cc ending.
Call just "./waf --run myfrist" not "./waf --run scratch/myfirst.cc" as you said you did.


On Thursday, May 5, 2016 at 1:13:39 PM UTC+1, icen wrote:
thank you for your response but i must to work on this version of ns3 ( in my internship) 

2016-05-05 14:05 GMT+02:00 Ameer H <princ...@gmail.com>:
I'm not a really expert person with NS3, but I guess when the guys see this the first thing they will say that you should update your NS3 version to 3.25, try it 

 secondly, mostly you want to move your first.cc from example folder into scratch folder, you can easily copy paste it into scratch folder instead of using command terminal.
.

and to solve your problem, you used ./waf--run first.cc , when we run a file we remove .cc

try ./waf --run scratch/first

I hope this will help you :) 

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ajW0e8s4ADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ajW0e8s4ADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

Konstantinos

unread,
May 5, 2016, 9:42:34 AM5/5/16
to ns-3-users
The error you got is related to " Permission non accordée"

Do you have permissions to change/modify that folder (anything inside /home/training/NS3-SIM/)
If not, ask your system administrator to give you!


On Thursday, May 5, 2016 at 1:34:07 PM UTC+1, icen wrote:
no i didn't put the extension.cc just  i make a misktake in taping in keyboard
when  icall with this  ./waf --run first that's run succefully but when i make ./waf --run myfirst  i have got an error message !
i need a solution because i want to follow the NS Tutorial

Thank you again
2016-05-05 14:24 GMT+02:00 Konstantinos <dinos.k...@gmail.com>:
As Ameer pointed out, when you run your script you should NOT use the .cc ending.
Call just "./waf --run myfrist" not "./waf --run scratch/myfirst.cc" as you said you did.


On Thursday, May 5, 2016 at 1:13:39 PM UTC+1, icen wrote:
thank you for your response but i must to work on this version of ns3 ( in my internship) 

2016-05-05 14:05 GMT+02:00 Ameer H <princ...@gmail.com>:
I'm not a really expert person with NS3, but I guess when the guys see this the first thing they will say that you should update your NS3 version to 3.25, try it 

 secondly, mostly you want to move your first.cc from example folder into scratch folder, you can easily copy paste it into scratch folder instead of using command terminal.
.

and to solve your problem, you used ./waf--run first.cc , when we run a file we remove .cc

try ./waf --run scratch/first

I hope this will help you :) 

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ajW0e8s4ADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ajW0e8s4ADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.

BEN YOUNES Ihsen

unread,
May 5, 2016, 9:49:24 AM5/5/16
to ns-3-...@googlegroups.com
yes I would write to you as I did  sudo ./waf --run scratch/myfirst  and it worked

anyway thank you a lot for your help Konstantinos



To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ajW0e8s4ADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/ajW0e8s4ADQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages