configure: error: Installation of tclcl seems incomplete or can't be found automatica
hi friends,
I am trying ns2.34 on ubuntu 12.04. I used the all-in-one package. while i am typing "ns" command, "%" appears; the tcl files are running fine along with nam. but when i am trying to run "make" command it is giving "make: *** No targets specified and no makefile found. Stop." error. What i found that there is no "Makefile" in ns-2.34 directory. "Makefile.in" and "Makefile.vc" is there. i am at a loss now. could anyone help me out. Thanks in advance |
Welcome to LQ.
Why would you run make, when you already have the executable 'ns' ? .. Or could that be an `ns' from a previous ns2 build ? ? Is the file 'ns' present in ns-allinone-2.34/2.34/ : $ ls ns-allinone-2.34/2.34/ns* - |
Quote:
(Validation can take 1-30 hours to run.) Mon Oct 27 00:33:04 PDT 2014 *** ./test-all-simple Tests: tahoe1 tahoe1Bytes tahoe1RED tahoe1REDbytes tahoe2 tahoe3 tahoe3RED tahoe4 no_bug bug reno1 reno renoA reno2 reno3 reno4 reno4a reno5 reno5_nobug telnet delayed phase phase1 phase2 timers manyflows stats statsECN stats1 stats1Bytes stats1a stats1aBytes statsHeaders stats2 stats3 stats4 statsTFRC Running test tahoe1: ../../ns test-suite-simple.tcl tahoe1 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test tahoe1Bytes: ../../ns test-suite-simple.tcl tahoe1Bytes QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test tahoe1RED: ../../ns test-suite-simple.tcl tahoe1RED QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test tahoe1REDbytes: ../../ns test-suite-simple.tcl tahoe1REDbytes QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test tahoe2: ../../ns test-suite-simple.tcl tahoe2 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test tahoe3: ../../ns test-suite-simple.tcl tahoe3 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test tahoe3RED: ../../ns test-suite-simple.tcl tahoe3RED QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test tahoe4: ../../ns test-suite-simple.tcl tahoe4 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test no_bug: ../../ns test-suite-simple.tcl no_bug QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test bug: ../../ns test-suite-simple.tcl bug QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test reno1: ../../ns test-suite-simple.tcl reno1 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test reno: ../../ns test-suite-simple.tcl reno QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test renoA: ../../ns test-suite-simple.tcl renoA QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test reno2: ../../ns test-suite-simple.tcl reno2 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test reno3: ../../ns test-suite-simple.tcl reno3 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test reno4: ../../ns test-suite-simple.tcl reno4 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test reno4a: ../../ns test-suite-simple.tcl reno4a QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test reno5: ../../ns test-suite-simple.tcl reno5 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test reno5_nobug: ../../ns test-suite-simple.tcl reno5_nobug QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test telnet: ../../ns test-suite-simple.tcl telnet QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test delayed: ../../ns test-suite-simple.tcl delayed QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test phase: ../../ns test-suite-simple.tcl phase QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test phase1: ../../ns test-suite-simple.tcl phase1 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test phase2: ../../ns test-suite-simple.tcl phase2 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test timers: ../../ns test-suite-simple.tcl timers QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test manyflows: ../../ns test-suite-simple.tcl manyflows QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test stats: ../../ns test-suite-simple.tcl stats QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test statsECN: ../../ns test-suite-simple.tcl statsECN QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found Running test stats1: ../../ns test-suite-simple.tcl stats1 QUIET ./test-all-template1: 110: ./test-all-template1: ../../ns: not found ^C COULD YOU PLEASE SUGGEST ANY SOLUTION TO THIS? |
→ #3 .
Quote:
|
Quote:
thanks a lot frnd....now please tell how to get ns in the ns-2.34 directory....and how the "%" is appearing in command prompt when typing ns ? |
← #5 .
Quote:
I.e. you can only have one file by name "ns" on your OS. All other "ns" must be renamed to "ns_new-name". I.e., i.e. you can have an infinite number of ns-allinone-2.xx installs on one OS. But : Do never never add any *PATH text to .bashrc . HOWTO : 1) $ cp ns ns-new-name 2) $ sudo cp ns-new-name /usr/local/bin/ ... And then run all relevant simulations with $ ns-new-name file.tcl Ubuntu 12.04.3, HOWTO build ns-allinone-2.34 : $ sudo apt-get install g++-4.4 In a new folder in /home/name/ : $ tar xvf ns-allinone-2.34.tar.gz $ cd ns-allinone-2.34/ $ patch -p0 < otcl_ns234_gcc-4.4.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing $ export CC=gcc-4.4 CXX=g++-4.4 && install $ cd ns-2.34/ $ cp ns ns-new-name $ sudo cp ns-new-name /usr/local/bin/ - |
Add #6 :
Quote:
.... Then you will also get an extra 'ns' which can produce » % «. |
Quote:
|
← #8 .
You can of course delete whatever you want. But : There is no reason really to delete an "ns-allinone-2.xx". REPEAT: You can have an infinite number of ns-allinone-2.xx installs on one OS. ( I have about 110 different patched ns-allinone-2`s.) You can locate the other 'ns' with $ which ns ... and then rename ns to ns-orig. (You may need ns-orig later for running default tcl scripts : A changed version may not be usable for tcl/ex/<examples.tcl>.) Repeat 2 : Renaming is the safe solution, when you have more than one ns2. - |
Quote:
|
Quote:
I find my 'ns' file disappear from ns-2.34 directory. what should i do? re-install ns or some other process is there? all other files remain as they were, only 'ns' not found. |
# 10 .
Quote:
$ sudo make install ( 'make install' will copy ns to /usr/local/bin/ ). $ cp ns ns-new-name $ sudo cp ns-new-name /usr/local/bin/ Removing the Ubuntu `ns package' : $ sudo apt-get remove ns # 11 . If you have no backup (Also see post #6: cp ns ns-new-name ), .. then please run $ ./install .. in the top directory "ns-allinone-2.34/". - |
problem in trying "MyPing" on ns2.34
Quote:
i am trying my own ping "MyPing" on ns2.34. make is successful. myping.o created. but while running the tcl-script, it is giving the following error: invalid command name "Agent/MyPing" while executing "Agent/MyPing instproc recv {from rtt} { $self instvar node_ puts "node [$node_ id] received ping answer from \ $from with round-trip-t..." (file "myping.tcl" line 27) could you please suggest any solution? |
← #13 .
Quote:
together with ... 2) the edited { tcl/ns-agent.tcl?, tcl/ns-default.tcl?, tcl/ns-lib.tcl }, I.e. it all depends on which code you are using. * This "Ping example" has a "configuration file.tcl" : . http://www.isi.edu/nsnam/ns/tutorial/nsnew.html . http://www.isi.edu/nsnam/ns/tutorial/examples/ping.cc P.S. : Please do not quote entire posts. A one word reference will do. - |
Quote:
|
# 15 .
`ns-agent.tcl' : No guaranty that is causes any changes, you can try adding a new agent, like the AODV text (line 192) : Agent/AODV set sport_ 0 Agent/AODV set dport_ 0 Quote:
Also : Be sure you are using the right 'ns', like : $ cp ns ns-ping3 ... And use that copy for the simulation : $ ns-ping3 ping-banerjee.tcl `ns-lib.tcl' : In ns-lib.tcl you can add the tcl configuration file : source ns-ping.tcl - |
dear knudfl,
I want to develop a multipath routing strategy for manet. i will split my message and put the slices on different paths from the source. where to start the from? how do i split a packet? how to maintain multiple paths? could you please help? |
← #17 .
Don't know. Sorry. Multipath info ... . http://code.google.com/p/multipath-d...ting-protocol/ Google .. ns2 Multipath Routing protocol .. http://code.google.com/p/multipath-d...ting-protocol/ > http://code.google.com/p/multipath-d...downloads/list http://wpage.unina.it/marcello.caleffi/ns2/mdart.html >>> ns234 >>> wget http://wpage.unina.it/marcello.caleffi/ns2/mdart.diff " aomdv-code-ns2 it s a multipath aodv protocol used in NS2.: http://en.pudn.com/downloads201/sour...947190_en.html " - |
invalid command name "Agent/MyPing"
following are the myping.h, myping.cc and myping.tcl files i have written. i have made changes in packet.h, ns-default.tcl, Makefile. still i am getting error---- invalid command name "Agent/MyPing" while executing "Agent/MyPing instproc recv {from rtt} { $self instvar node_ puts "node [$node_ id] received ping answer from \ $from with round-trip-t..." (file "myping.tcl" line 27) could anyone please help me out. i cannot find a way out. myping.h file Code:
myping.cc file Code:
#include "myping/myping.h" myping.tcl file Code:
#Create a simulator object |
Quote:
|
← #20 .
Quote:
Happens when you run 'make' for the second time. I.e. the first 'make' is run by the './install' command. * Besides that this "non issue" has been discussed before : You will get 1,100,000,000 hits with Google, Nothing to be done for `all'" ← #19 . Please edit post #19 to use 'code tags' . http://www.linuxquestions.org/questi....php?do=bbcode . http://www.linuxquestions.org/questi...gs-4175464257/ I.e. type [/code] at code end, and [code] at code start. * And : You will have to replace the "code text" with the real code. * Editing : The 'Edit' button. - |
Quote:
|
← #22 .
Your tcl file is OK. Runs perfect with the stock ping in e.g. ns-2.34, ns-2.35, when all Agent/MyPing was edited to Agent/Ping. Please have a look at the default ns-2.xx/apps/{ ping.cc, ping.h }. About `tcl/lib/{files.tcl} : 'Ping' is present in ns-default.tcl, ns-packet.tcl. Example, ns-2.34 : Code:
ns-default.tcl:830:Agent/Ping set packetSize_ 64 - |
1 Attachment(s)
Add #23 : "All Ping in ns-2.34".
$ cd ns-2.34 $ grep -Rn Ping * The result is attached as all-ping_ns234.txt.gz.txt . Omitted is : ping.h, ping.cc, tcl/test/, validate.out . * Rename all-ping_ns234.txt.gz.txt to all-ping_ns234.txt.gz , then you can unpack the file. - |
Quote:
that's true. but if i write my own "ping" protocol as "MyPing" then the problem happens. this is i am doing for testing. i want to write my own algorithm in ns. so, i took the "Ping" as an example to see how the things are done. could you please suggest that what modification I need to make so that my "MyPing" protocol also works as "Ping"? |
when i run ./validate, i get the following error. there were multiple similar kind of errors indicated. what is the problm and how to solve this?
Quote:
|
← #26 .
A clean ns-2.xx will often fail some tests. And : If it's a 64bits OS, some tests will always fail. Editing C++ files, or adding a patch with a new protocol : Some more, or many tests will / can fail at './validate'. * Validate is not that important. The protocols you want to use, are "always" OK. I.e. I have never seen an added protocol fail, even with a lot of failed tests. *** Validate can be skipped, and/or errors can be ignored. - |
i had to ./configure again...but after i do this get the following:
Code:
ln: failed to create symbolic link `ns': File exists |
← #28 .
Quote:
and have no write permissions to /usr/. * The executable 'ns' is hard coded to know the location of it´s libraries, so at large the "year 1999 text" about *PATH´s makes little or no sense. Assume a computer owned by you, and can do : $ cd ns-2.34/ $ cp ns ns-backup ( Or any special name you want, e.g. ns-ping.) $ sudo make install ('make install' will copy ns to /usr/local/bin/). $ sudo cp ns-backup /usr/local/bin/ - |
I edited mkaefile, makefile.in and Makefile.vc and used ./configure. unfortunately i lost my ns file and copied it from /usr/local/bin. now, when i am using make i am getting the following error
Code:
In file included from mac/mac-802_11Ext.cc:66:0: |
← #30 .
Always make at least one backup of ns to ns-protocol-name. * All simulations (except a few that are using a shell script) .. will work with $ ns-name file.tcl * Copy your backup to e.g. /home/<user>/binaries-ns/. ( I have ~130 different 'ns' executables in the backup folder, .. and the same in /usr/local/bin/ ). * Backups : Make a backup to cdrom or DVD. No backup (that works) : $ cd ns-allinone/ And rerun ./install : $ export CC=gcc-4.4 CXX=g++-4.4 && ./install Editing Makefile.vc : Not required. Is a Windows© file. .. And I assume that you are still using Ubuntu 12.04 ? - |
Quote:
|
← #32 .
Quote:
But : Warnings are not errors, and can usually be ignored. * Warnings are "informational text". - |
Quote:
Code:
|
friends, I am trying to install ns 2.27 on ubuntu 12.04 and getting error :
|
problen in installation of ns 2.27 on ubuntu 12.04
============================================================
* Testing for Cygwin environment ============================================================ Cygwin not detected, proceeding with regular install. ============================================================ * Build XGraph-12.1 ============================================================ loading cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... missing checking if malloc debugging is wanted... no checking for gcc... gcc41 checking whether the C compiler (gcc41 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. make: *** No targets specified and no makefile found. Stop. Can not create xgraph; But xgraph is an optional package, continuing... ============================================================ * Build CWeb ============================================================ Making cweb gcc -g -c -o ctangle.o ctangle.c ctangle.w:75:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default] gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c common.w:1409:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default] common.w: In function ‘fatal’: common.w:1176:1: warning: format not a string literal and no format arguments [-Wformat-security] gcc -g -o ctangle ctangle.o common.o gcc -g -c -o cweave.o cweave.c cweave.w:79:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default] cweave.w: In function ‘print_cat’: cweave.w:1739:1: warning: format not a string literal and no format arguments [-Wformat-security] gcc -g -o cweave cweave.o common.o ln: failed to create symbolic link `cweave': File exists ln: failed to create symbolic link `ctangle': File exists ============================================================ * Build Stanford GraphBase ============================================================ Making sgb gcc41 -g -I/usr/local/sgb/include -DDATA_DIRECTORY=\"/usr/local/sgb/data/\" -c gb_io.c make: gcc41: Command not found make: *** [gb_io.o] Error 127 Unable to create sgb library, but it's optional, so continuing... ============================================================ * Build GT-ITM ============================================================ sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing.. ============================================================ * Build zlib ============================================================ Building static library libz.a version 1.1.4 with gcc41. Checking for unistd.h... No. Checking for errno.h... No. Checking for mmap support... No. gcc41 -O -DNO_ERRNO_H -c -o example.o example.c make: gcc41: Command not found make: *** [example.o] Error 127 Zlib make failed, but it's optional Continue ... ============================================================ * Build tcl8.4.5 ============================================================ loading cache ./config.cache checking whether to use symlinks for manpages... no checking compression for manpages... no checking for gcc... gcc41 checking whether the C compiler (gcc41 ) works... no configure: error: installation or configuration problem: C compiler cannot create executables. tcl8.3.2 configuration failed! Exiting ... Tcl is not part of the ns project. Please see www.Scriptics.com to see if they have a fix for your platform. |
<<< ref. #35 :
Quote:
Please edit posts #35 and #36 : Delete surplus text. Editing : The 'Edit' button. You will have to specify your Ubuntu OS ( By every question ) : a) $ uname -m b) version ( 12.04 ? ) - |
Quote:
|
<<< ref. #38, #36 : Code Tags for post #36, please.
Installing the compilers for Ubuntu 12.04 - i686 / ns-2.27 : A) Download gcc41-compat-"1204" and g++41-compat : . https://docs.google.com/open?id=0B7S...lNURldUenRyb3c . https://docs.google.com/open?id=0B7S...hjMjljN2M2MGU4 B) Install the compilers : sudo dpkg -i gcc41-compat-4.1.2.ubu1204_i386.deb g++41-compat-4.1.2_i386.deb C) cd /usr/bin/ sudo ln -s ../gcc41/bin/gcc41 sudo ln -s ../gcc41/bin/g++41 Building ns-2.27 : Start from scratch in /home/name/<new-folder>/. (not ~/Desktop/, please) tar xvf ns-allinone-2.27.tar.gz patch -p0 < ns-2.27-gcc410.patch ( outside ns-allinone-2.27/ ! ) https://drive.google.com/file/d/0B7S...ew?usp=sharing cd ns-allinone-2.27/ export CC=gcc41 CXX=g++41 && ./install - |
ref #39:
Thank you. I got it installed. thank you |
ref #39:
I need to incorporate the network coding file netcod_ns2.zip in ns 2.27. The implementation steps mentioned as follows: STEP 1: Install NS2 2.27 STEP 2: Copy the file network-coding.tar.gz and INSTALL_NC in ./ns-allinone-2.27/ns-2.27 STEP 3: From ./ns-allinone-2.27/ns-2.27/ digit ./INSTALL_NC BUT, when I am typing digit ./INSTALL_NC---it is not working....please help |
<<< ref. #41.
»» when I am typing digit ./INSTALL_NC---it is not working ««. The command is : $ perl INSTALL_NC ... May have worked some years ago ? 2009 ? The 2015 build method for Ubuntu 12.04-i686 / ns227 + NetworkCoding : Start from scratch in /home/name/<another-new-folder>/. tar xvf ns-allinone-2.27.tar.gz patch -p0 < ns-2.27-gcc410.patch cd ns-allinone-2.27/ patch -p0 < NetworkCoding_ns227.patch https://drive.google.com/file/d/0B7S...ew?usp=sharing export CC=gcc41 CXX=g++41 && ./install cd ns-2.27/ sudo make install cp ns ns-netw-cod ( This is your {NetworkCoding 'ns'} backup ) sudo cp ns-netw-cod /usr/local/bin/ ... And simulations can be done with $ ns-netw-cod <file>.tcl - |
ref. #42
Quote:
1. Don't I need to validate the ns? 2. when I am using "ns-netw-cod randomnetNetF_802.tcl", I am getting the error: "could not open ./Trace/out.tr w"? why is it so? |
<<< ref. #43.
Add 1. About validate : Not really required. Will just show the usual output. And if anything unusual : Nothing you can do. As long as the protocols you want to use are working fairly OK : No reason to worry about some few protocols that you will never use. Add 2. Missing directories / files : Please create those yourself. I.e. create a folder "Trace", etc. etc. traffic files, movement files. - |
how to link matlab function with tcl programming?....
|
dear knudfl, out.tr file remains empty...attached is the tcl file.....please suggest solution
Code:
# ====================================================================== |
1 Attachment(s)
Ref. post #46.
The text in post #46 isn't at all usable for simulation. How did you manage to copy the text to get a (forbidden) extra linefeed for every line ? I did some editing : Removed the impossible linefeed's ( Now lines 226 .. 240 ). And added some code : Lines 380 .. 392. So you at least get some few lines in "out.tr". The edited "banerjee.tcl" is attached as banerjee.tcl.bz2.txt . Rename to banerjee.tcl.bz2 . And decompress with $ bzip2 -d banerjee.tcl.bz2 - |
Quote:
|
Ref. post #48.
Quote:
Quote:
Read post #47 : Essential things / lines are missing. Read the edited file banerjee.tcl More simulation examples : Please read the 23 examples in network-coding/tcl_script_example/*/* - |
All times are GMT -5. The time now is 03:46 PM. |