 |
 |
 |
 |
| EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life. |

13th May 2009, 08:36 AM
|
|
Registered User
|
|
Join Date: May 2009
Posts: 2

|
|
|
thanks for reply.. can you please give the commands for configuring again..... srry for the trouble..
|

13th May 2009, 08:45 AM
|
|
Registered User
|
|
Join Date: May 2009
Posts: 5

|
|
If you are taking ns2 at piece you can try this http://nslab.ee.ntu.edu.tw/courses/n...labs/lab1.html
If you are using allinone... "The package contains an "install" script to automatically configure, compile and install these components. After downloading, run the install script".
I hope this help, I'm a newbie such as you
|

14th May 2009, 09:47 AM
|
|
Registered User
|
|
Join Date: May 2009
Posts: 1

|
|
Quote:
Originally Posted by Nowhere82
Be sure to do again configure and make of all ( tk, otcl, tclcl, ns2 ) after change.
|
Hi, I'm a newbie here and I am using ns-allinone.2.33 on Cygwin, so can you be more specific on how to configure and make all tk, otcl, tclcl and ns2?
I have configure and make tk8.4.18 following the previous post and I am still getting the same problem.
Please help
|

14th May 2009, 09:56 AM
|
|
Registered User
|
|
Join Date: May 2009
Posts: 5

|
|
|
I'd suggest you to configure and "make clean" and "make" again otcl, tclcl, ns2 after tk.
But if you use allinone the script should do this for you...but I haven't ever seen it so I'm not sure. Also, be sure you haven't ns.exe anywhere (bin folder for example).
|

1st July 2009, 02:50 AM
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 1

|
|
|
It works well
Quote:
Originally Posted by ratnesh1729
i did changes as mentioned above , but i dnt knw what to do after that.. (
m a newbie, using ubuntu and i installed NS-2 2.33 today and while running .tcl examples i got same error as mentioned in first post.).
|
I use ns2.33 (ns-allinone-2.33 package) on ubuntu 9.04 and had exactly this problem with nam. After extracting the package ns-allinone-2.33 modify /ns-allinone-2.33/tk8.4.18/generic/tkBind.c according to folowing line numbers and save it:
....
line 588 : /* MappingNotify */ 0,
line 589 : #ifdef GenericEvent
line 590 : /* GenericEvent */ 0,
line 591 : #endif
line 592 : /* VirtualEvent */ VIRTUAL,
....
then install/reinstal package ns-allinone-2.33.
it easily works.
|

14th September 2009, 11:08 AM
|
|
Registered User
|
|
Join Date: Sep 2009
Posts: 1

|
|
Quote:
Originally Posted by Nowhere82
Be sure to do again configure and make of all ( tk, otcl, tclcl, ns2 ) after change.
|
Hello,
Recently ive installed ns2.33 on fedora 10 and got problem with nam which does not start. I did modify tk.h and tkBind.c files manually as inserting codes below:
tkBind.c :
#ifdef GenericEvent
/* GenericEvent */ 0,
#endif
tk.h :
#define VirtualEvent (MappingNotify + 1)
#define ActivateNotify (MappingNotify + 2)
#define DeactivateNotify (MappingNotify + 3)
#define MouseWheelEvent (MappingNotify + 4)
#define TK_LASTEVENT (MappingNotify + 5)
After all these modification, i go into my tk8.4.18/generic/unix, otcl, tclcl and ns2.33 folders and did:
./configure and make
But same problem with Nam still appears. Can you please tell what and how I should step by step...... Please, so sorry for im really noob for Linux and ns2
Thank you
bagira
|

15th September 2009, 12:15 AM
|
|
Registered User
|
|
Join Date: Sep 2009
Posts: 1

|
|
|
Hi I am using ns-allinone-2.31, which uses tk8.4.14. I encounter the same problem
nam:
[code omitted because of length]
: no event type or button # or keysym
while executing
"bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D / 120) * 4}] units
}"
invoked from within
"if {[tk windowingsystem] eq "classic" || [tk windowingsystem] eq "aqua"} {
bind Listbox <MouseWheel> {
%W yview scroll [expr {- (%D)}] units
}
bind Li..."
I need to stick to version 2.31 because it is the one what works with the nist wimax patch. Is there any way to solve the problem. I am new linux user.
I tried Badar Abbas 's solution. It does not work. I do not know if it is because i am using tk8.4.14 and the patches are for tk8.4.18 or because I did it wrong. What I did was I changed the tk8.4.14/generic/tkBind.c to
#ifdef GenericEvent
/* GenericEvent*/ 0,
#endif
/* VirtualEvent */ VIRTUAL,
/* Activate */ ACTIVATE,
and change the tk.h to
#define VirtualEvent (MappingNotify + 1)
#define ActivateNotify (MappingNotify + 2)
#define DeactivateNotify (MappingNotify + 3)
#define MouseWheelEvent (MappingNotify + 4)
#define TK_LASTEVENT (MappingNotify + 5)
#define MouseWheelMask (1L << 28)
#define ActivateMask (1L << 29)
#define VirtualEventMask (1L << 30)
|

17th November 2009, 09:31 AM
|
|
Registered User
|
|
Join Date: Nov 2009
Posts: 1

|
|
|
Thanx
I was trying this for a long time.
Thanx, it worked 4 me.
Thanx a lot.
|

26th November 2009, 01:28 AM
|
|
Registered User
|
|
Join Date: Nov 2009
Posts: 1

|
|
Quote:
Originally Posted by Nowhere82
Now it works...
It was a wrong reconfigure by me, what a stupid I'm! :-)
|
Hi,
I continue to get the same error as in the first post. I have made changes in the tkBind and tk.h files as mentioned in the posts. Then i ran ./configure and make for tk,otcl, tclcl and ns2. All this did not help 
Can you please tell me how exactly did you solve you problem? I use cygwin for ns-2.
|

29th March 2010, 08:56 PM
|
|
Registered User
|
|
Join Date: Mar 2010
Posts: 1

|
|
|
Re: running NS2 on Fedora 10
Quote:
Originally Posted by mirzaw
hello all i have the same problem ...... After successful installation of ns-allinone-2.33 on windows xp under cygwin......
Please help me in fixing this problem.. or should i install fedora 10 for ns-2??
|
Hello,
I'm trying to install NS2.33 under cygwin but the installation is not finished and I get the following message:
Creating library file: libns.dll.a
g++ -DNSLIBNAME = \”libns.dll\” -Wl, -export-dynamic -o ns common/mai-modular.cc -ldl
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../i686-pc-cygwin/bin/ld: cannot find ldl
Collect2: ld returned 1 exit status
Make: *** [ns] Error 1
Ns Make failed
So please how can I solve this problem or can I use another version of NS2 which goes with the patch of hwmp.
Thanks a lot
Best regards.
|

21st April 2010, 02:23 AM
|
|
Registered User
|
|
Join Date: Apr 2010
Posts: 1

|
|
|
Re: running NS2 on Fedora 10
I had the same problem, and now it's working fine as I followed the guidelines, thanks Badar.
|

14th March 2012, 04:50 AM
|
|
Registered User
|
|
Join Date: Mar 2012
Location: cbe
Posts: 1

|
|
|
Re: running NS2 on Fedora 10
hi i am using ns-2.31 and encountered the same problem in nam (code is omitted because of length ) and tried to apply patch as mentioned by badar but in vain i am geeting the same problem plz hlp me
|

19th July 2012, 01:47 PM
|
|
Registered User
|
|
Join Date: Jul 2012
Location: Iran
Posts: 1

|
|
|
Re: running NS2 on Fedora 10
hi guys
i wrote a new agent and modified the relevant files (makefile,packet.h,ns-default.tcl ) ,then i make clean and make the ns-2.34 i get this error (no rule to make target 'vanet.o' needed by ns) and when i want to run my tcl file i get this error (ns: [code ommited because of length] : invalid command name "Agent/Vanet" while executing "Agent/Vanet set packetSize_ 64").
will u pls help me out with this error.
i appreciate any help.
ps: tcl/tk 8.4.18 have already been installed.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 01:51 (Monday, 20-05-2013)
|
|
 |
 |
 |
 |
|
|