./waf --run first
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
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
--
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.
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 itsecondly, 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 .cctry ./waf --run scratch/firstI 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.
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 itsecondly, 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 .cctry ./waf --run scratch/firstI 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.
Thank you againi need a solution because i want to follow the NS Tutorialno i didn't put the extension.cc just i make a misktake in taping in keyboardwhen icall with this ./waf --run first that's run succefully but when i make ./waf --run myfirst i have got an error message !
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 itsecondly, 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 .cctry ./waf --run scratch/firstI 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.
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.