Вы находитесь на странице: 1из 5

4/14/12

ns-2.34 problem executing 'nam' on ubuntu 9.10

SupportLQ:UsecodeLQ3andsave$3onDomainRegistration Zigbee6LoWPAN802.15.4Chipsmodulesdevkit&softwareforlowpowerwirelesssensornetworkswww.jennic.com AnekaModelSpeakerReadyStockdiTokoDino!PesanPagi,TerimaSore*)TokoDino.DinoMarket.com SQLServerTrainingAffordable,realworldSQLServertraining.SQLAzureTraining.thesqlspot.com


Home Forums HCL Reviews Tutorials Articles Register Search RememberMe? Login MainMenu

LinuxQuestions.org>Forums >LinuxForums >Linux Software ns2.34problemexecuting'nam'onubuntu 9.10

UserName UserName Password

LinuxSoftwareThisforumisforSoftwareissues.
Havingaprobleminstallinganewprogram?Wanttoknowwhichapplicationisbestforthejob?Postyour questioninthisforum. Notices

WelcometoLinuxQuestions.org,afriendlyandactiveLinuxCommunity. YouarecurrentlyviewingLQasaguest.Byjoiningourcommunityyouwillhavetheability toposttopics,receiveournewsletter,usetheadvancedsearch,subscribetothreadsand accessmanyotherspecialfeatures.Registrationisquick,simpleandabsolutelyfree.Join ourcommunitytoday! Notethatregisteredmembersseefewerads,andContentLinkiscompletelydisabled onceyoulogin. AreyounewtoLinuxQuestions.org?Visitthefollowinglinks: SiteHowto|SiteFAQ|Sitemap|RegisterNow Ifyouhaveanyproblemswiththeregistrationprocessoryouraccountlogin,pleasecontact us.Ifyouneedtoresetyourpassword,clickhere. Havingaproblemloggingin?PleasevisitthispagetoclearallLQrelatedcookies.

LinuxForums AndroidForum Search LQTags LinuxHCL LinuxTutorials LQJobMarketplace LinuxWiki DistroReviews BookReviews DownloadLinux SocialGroups LQBlogs Home (Con't)

LinuxCommandReferenceCheatSheet InthischeatsheetyouwillfindabunchofthemostcommonLinux commandsthatyou'relikelytouseonaregularbasis. ClickHeretoreceivethisCompleteGuideabsolutelyfree.

10262010,07:54AM

LinkBack

SearchthisThread #1

ElijahJ
LQNewbie Registered:Oct2010 Posts:1 Rep:

ns2.34problemexecuting'nam'onubuntu9.10

Isuccessfullyinstalledandvalidatensallinone2.34network simulatoronubuntu9.10.Ithentriedtorunsimpletclcode andendeduponthefollowingerror.Icouldn'tmoveahead fromthere.WhatshouldIdotomake'nam(version1.14)' workonmyubuntu9.10????Thanksinadvance

linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/

1/5

4/14/12

ns-2.34 problem executing 'nam' on ubuntu 9.10

ns:finish:couldn'texecute"nam":nosuchfileordirectory Sponsored while UdpIp NetworkProtocols InternetProtocol PacketSniffer UDPPackets PacketAnalyzer Tcp/ipProtocolSuite [Logintogetridofthisadvertisement] executing "execnamout.nam&" (procedure"finish"line7) invokedfromwithin "finish" HereisthecodeItriedtorun(forreference): #Createasimulatorobject setns[newSimulator] #Definedifferentcolorsfordataflows(forNAM) $nscolor1Blue $nscolor2Red #OpentheNAMtracefile setnf[openout.namw] $nsnamtraceall$nf #Definea'finish'procedure procfinish{}{ globalnsnf $nsflushtrace #ClosetheNAMtracefile close$nf #ExecuteNAMonthetracefile execnamout.nam& exit0 } #Createfournodes setn0[$nsnode] setn1[$nsnode] setn2[$nsnode] setn3[$nsnode] #Createlinksbetweenthenodes $nsduplexlink$n0$n22Mb10msDropTail $nsduplexlink$n1$n22Mb10msDropTail $nsduplexlink$n2$n31.7Mb20msDropTail #SetQueueSizeoflink(n2n3)to10 $nsqueuelimit$n2$n310 #Givenodeposition(forNAM) $nsduplexlinkop$n0$n2orientrightdown $nsduplexlinkop$n1$n2orientrightup $nsduplexlinkop$n2$n3orientright #Monitorthequeueforlink(n2n3).(forNAM)

Automatic Optimization UsingCOPStoManage networkandachieveupto 60%OPEXsavings


www.celcite.com

BuySpeakersOnline SpeakerofTop InternationalBrandsFree Shippingand30Days Return!


www.lazada.co.id/Speakers

SensorNetworks Handbook Spanswidespectrumof opicsinclMedium AccessControlForm Networks


www.WorldsciBooks.com/Netw

Cygwin/Xvs.XWin32 LIVE TiredofbuggyCygwin/X andlackofuseful features?TryXWin32


www.starnet.com

Bursaaudiospeakers AnekaModeldgnHarga menarik,Mampir langsungke Berniaga.com!


www.berniaga.com

MyLQ

Login Register
WriteforLQ

LinuxQuestions.orgis lookingforpeople interestedinwriting Editorials,Articles, Reviews,andmore.If you'dliketocontribute content,letusknow.


MainMenu

LQCalendar LQRules LQSitemap SiteFAQ

linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/

2/5

4/14/12

ns-2.34 problem executing 'nam' on ubuntu 9.10

$nsduplexlinkop$n2$n3queuePos0.5 #SetupaTCPconnection settcp[newAgent/TCP] $tcpsetclass_2 $nsattachagent$n0$tcp setsink[newAgent/TCPSink] $nsattachagent$n3$sink $nsconnect$tcp$sink $tcpsetfid_1 #SetupaFTPoverTCPconnection setftp[newApplication/FTP] $ftpattachagent$tcp $ftpsettype_FTP #SetupaUDPconnection setudp[newAgent/UDP] $nsattachagent$n1$udp setnull[newAgent/Null] $nsattachagent$n3$null $nsconnect$udp$null $udpsetfid_2 #SetupaCBRoverUDPconnection setcbr[newApplication/Traffic/CBR] $cbrattachagent$udp $cbrsettype_CBR $cbrsetpacket_size_1000 $cbrsetrate_1mb $cbrsetrandom_false #ScheduleeventsfortheCBRandFTPagents $nsat0.1"$cbrstart" $nsat1.0"$ftpstart" $nsat4.0"$ftpstop" $nsat4.5"$cbrstop" #Detachtcpandsinkagents(notreallynecessary) $nsat4.5"$nsdetachagent$n0$tcp$nsdetachagent $n3$sink" #Callthefinishprocedureafter5secondsofsimulationtime $nsat5.0"finish" #PrintCBRpacketsizeandinterval puts"CBRpacketsize=[$cbrsetpacket_size_]" puts"CBRinterval=[$cbrsetinterval_]" #Runthesimulation nsrun BythewayIgoogledandgotsomesuggestionslike:adding 'nam'directorytoenvironment.Ididthisasfollowbutit didn'twork: Iadded: exportPATH=$PATH:/home/elias/nsallinone2.34/nam1.14 to/etc/profile(>sudogedit/etc/profile)
LasteditedbyElijahJ10262010at08:02AM.Reason:Additional necessaryinformationaddedtotheend

ViewNewPosts ViewLatestPosts ZeroReplyThreads LQWikiMostWanted Jeremy'sBlog ReportLQBug


Syndicate

LatestThreads LQNews
Twitter:@linuxquestions identi.ca:@linuxquestions Facebook:@linuxquestions

11192010,01:26AM #2

knudfl
LQ5kClub Registered:Jan2008 Location:Copenhagen,DK Distribution:pclos2010.12,

WelcometoLQ. Themosteasywaytohavea'nam'inyourpathis: cdnsallinone2.34/nam1.14/ sudomakeinstall

linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/

3/5

4/14/12

ns-2.34 problem executing 'nam' on ubuntu 9.10

Slack1337DebSqueeze,+50+other LinuxOS,fortestonly. Posts:8,998 Rep:

Whichwilldoonething:Copyingtheexecutablenamto /usr/local/bin/. ..Thenyouhaveitinasystempath. (Thesameisvalidfornsallinone2.34/ns2.34/, toget/usr/local/bin/ns). ..

04102012,05:32AM #3 Errorwhenexecutingatclfileinns2.29

yotta15
LQNewbie Registered:Mar2012 Posts:3 Rep:

Helloknudfl, IinstalledNs2.29withNistmobilityPackageinubuntu9.10. the./installand./validateweresuccessful. ButwhenIwanttotestanexample(nsexample1a.tcl)Igot thesameerrorlikeElijahJ ns:finish:couldn'texecute"nam":nosuchfileordirectory whileexecuting "execnamout.nam&" (procedure"finish"line7) invokedfromwithin "finish" Itriedwhatyousaidbutitdoesn'twork!!Itseemslikenam isnotinstalledorwhat? root@charifalaptop:~/Bureau/Install2/nsallinone2.29/nam 1.11#makeinstall /usr/bin/installcm555obingbinnam/usr/local/bin /usr/bin/install:impossibled'valuernam:Aucunfichierou dossierdecetype make:***[install]Erreur1 Canyouhelpmeplz, thanksalot,

04102012,05:57AM #4

knudfl
LQ5kClub Registered:Jan2008 Location:Copenhagen,DK Distribution:pclos2010.12, Slack1337DebSqueeze,+50+other LinuxOS,fortestonly. Posts:8,998 Rep:

Namisaseparateapplication:Anynamcanbeused. Thebestversionis1.14:Pleaseseepost#4here... http://www.linuxquestions.org/questi...04a842109/#4 Unpacknam1.14.<arch>.tar.gz,andcopy'nam'to /usr/local/bin/ ...ThenyouhavenaminasystemPATH. .

linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/

4/5

4/14/12

ns-2.34 problem executing 'nam' on ubuntu 9.10

PostingRules Youmaynotpostnewthreads Youmaynotpostreplies Youmaynotpostattachments Youmaynotedityourposts BBcodeisOn SmiliesareOn [IMG]codeisOff HTMLcodeisOff TrackbacksareOff PingbacksareOn RefbacksareOff ForumRules

SimilarThreads
Thread probleminrunningnam1.11ofns allinone2.29 ThreadStarter rishabhk Forum LinuxNewbie LinuxNewbie LinuxSoftware LinuxNetworking Replies 5 6 5 4 LastPost 0317201105:31 AM 1015201007:44 AM 0926201006:49 AM 0601201007:20 PM 0203200710:38 PM

[SOLVED]problemregardingexecuting gerry_bertier cprograminubuntu Problemwithnaminns2.34 probleminrunningNAM dreams2010 marioma

Iamgettingprobleminnam1.11while installingnsallinone2.29onfedoracore deodutta 5

LinuxGeneral

AlltimesareGMT5.Thetimenowis01:00AM. ContactUsAdvertisingInfoRulesLQMerchandiseDonationsContributingMemberLQ Sitemap OpenSourceConsulting|DomainRegistration

linuxquestions.org//ns-2-34-problem-executing-nam-on-ubuntu-9-10-a-840509/

5/5

Вам также может понравиться