Find the answer to your Linux question:
Results 1 to 2 of 2
hi ! i'm new to forum.. i have a problem with my ns-allinone-2.26 in Ubuntu10.10 my gcc version is 3.3 ! i have installed the ns-2.26 . when i type ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    1

    Question problem with my ns-allinone-2.26

    hi ! i'm new to forum..
    i have a problem with my ns-allinone-2.26 in Ubuntu10.10
    my gcc version is 3.3 !

    i have installed the ns-2.26 . when i type nam , nam opens , but when i write a simple script such as this :

    #Create a simulator object
    set ns [new Simulator]
    #Open the nam trace file
    set nf [open out.nam w]
    $ns namtrace-all $nf
    #Define a 'finish' procedure
    proc finish {} {
    global ns nf
    $ns flush-trace
    #Close the trace file
    close $nf
    #Execute nam on the trace file
    exec nam –a out.nam &
    exit 0
    }
    #Create two nodes
    set n0 [$ns node]
    set n1 [$ns node]
    #Create a duplex link between the nodes
    $ns duplex-link $n0 $n1 1Mb 10ms DropTail
    #Call the finish procedure after 5 seconds of simulation time
    $ns at 5.0 "finish"
    #Run the simulation
    $ns run

    and try to run it terminal shows this :

    Cannot connect to existing nam instance. Starting a new one...

    nam: Unable to open the file "–a.nam"


    what should i do ??

    help me..

  2. #2
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,145
    Hello and Welcome.
    Not to be a butthead or anything but did you try a Google search? It yields a lot of hits and I bet if you look hard enough you can find the answer all by yourself.
    Google Search

    Have you tried a newer version of ns-allinone?
    Did you read the system requirements and dependencies?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...