LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-20-2017, 01:12 AM   #1
designermp
Member
 
Registered: Apr 2017
Posts: 43

Rep: Reputation: Disabled
error: (_o3 cmd line 1) invoked from within...


Hi everyone!
I'm simulating Handoff between Wlan and UMTS networks, but I got some error:
(_o3 cmd line 1)
invoked from within
"_o3 cmd create-Umtsnode"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o3" line 2)
(SplitObject unknown line 2)
invoked from within
"$ns create-Umtsnode"
invoked from within
"set rnc [$ns create-Umtsnode] "
(file "quynh.tcl" line 35)

Can you guide me how to fix those!
thanks you so much!
 
Old 04-20-2017, 04:09 AM   #2
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
please! someone help me! i'm in deadline
 
Old 04-20-2017, 07:24 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,822

Rep: Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978
Quote:
Originally Posted by designermp View Post
Hi everyone!
I'm simulating Handoff between Wlan and UMTS networks, but I got some error:
(_o3 cmd line 1)
invoked from within
"_o3 cmd create-Umtsnode"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o3" line 2)
(SplitObject unknown line 2)
invoked from within
"$ns create-Umtsnode"
invoked from within
"set rnc [$ns create-Umtsnode] "
(file "quynh.tcl" line 35)

Can you guide me how to fix those!thanks you so much!
...and, a few HOURS later...
Quote:
Originally Posted by designermp
please! someone help me! i'm in deadline
First, you need to read the LQ Rules, "Question Guidelines" and "How to ask a smart question" links. We volunteer our time here...this is NOT URGENT for anyone here. Just because you have a deadline and your homework is due, doesn't mean we're going to rush to help you.

Secondly, you've posted a few lines of code, in this, and in your other thread:
http://www.linuxquestions.org/questi...ax-4175604225/

...with zero context. You haven't said where you got this code, what your goal is, versin/distro of Linux you're using, or even how you changed the code to do what you want and why you did what you did. Unless you provide details, we cannot help you. Also, by coming back a few hours later, all you did was remove your post from the zero-reply list, making it LESS visible, and LESS LIKELY to get you help.
 
Old 04-20-2017, 08:29 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
@designermp : Welcome to LQ.
Quote:
simulating Handoff between Wlan and UMTS networks
Looks like a NIST-MOB file ? Please specify patch / changes made to ns-[unknown-version].

Your file : Please attach quynh.tcl as quynh.tcl.txt .
Attachments : The paper clip tool in the 'Advanced Editor'.


-
 
Old 04-20-2017, 11:01 AM   #5
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
@TBOne
Actually! I have 2 homeworks! i'm just want to do all of it!
I'm sorry about that!
 
Old 04-20-2017, 11:11 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Re #5.

You will still have to answer the above post #4. Upload the file quynh.tcl .
And tell about the additions you made to ns2. And specify ns2 version.


Also : http://www.linuxquestions.org/questi...-4175604225/#3
... My questions must be answered : 1. and 2.


-
 
Old 04-20-2017, 11:48 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,822

Rep: Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978Reputation: 6978
Quote:
Originally Posted by designermp View Post
@TBOne
Actually! I have 2 homeworks! i'm just want to do all of it!
Great!! So go do your homework, instead of posting to get others to do it for you. We are not in your class, and your 'urgent' deadlines aren't ours.
 
Old 04-20-2017, 12:17 PM   #8
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
I really hope you help me!
I have just install MIH- criteria tool and done! but before and after i istall these tool, I run code and I still got such error!
my OS version:ubuntu 12.4.5, X86-64. Ns2.35 version. I have just attached a code file. please help me fix this error!
i'm not good at English, i'm sorry for inconvenient!
Attached Files
File Type: txt wlan-umts.txt (23.8 KB, 25 views)
 
Old 04-20-2017, 05:41 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Re #8.

Repeat : You cannot use MIH-Multi-criteria with Ubuntu 12.04.5 - x86_64.
And not with ns-2.35 : The files are for ns-2.29 !

I tested your file with CentOS 6.9 - i686.
The package 'nist-pmip6-ns_229-ubuntu12_i386.deb' was installed.
Link https://drive.google.com/file/d/0B7S...ew?usp=sharing
The package provides /usr/local/bin/ns229-nist-pmip6-el6
(The files were build with CentOS 6.8 - i686 (el6) a year ago, and a package created on Ubuntu 12.04 - i686)

Your file : $ ns229-nist-pmip6-el6 wlan-umts.tcl
... I did some edits by comparing with the example umts__ridzi.tcl
... from nist-examples-Oct2015.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
There is also another file with a similar setup : handoff_umts-802.11_r0.tcl

Please have a look at the edited file, wlan-umts_edit-21Apr017.tcl
... Not complete, I got a few missing lines added. (I may have added too much.)
But something for you to work with.
Link to "edit" https://drive.google.com/file/d/0B7S...ew?usp=sharing


-

Last edited by knudfl; 04-20-2017 at 05:52 PM.
 
Old 04-20-2017, 11:08 PM   #10
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
thank you knudfl!
I will install a new OS: Ubuntu 12.04 - i686 then I install package 'nist-pmip6-ns_229-ubuntu12_i386.deb'
can you suggest me how to install package! i don't know much some commands in terminal in ubuntu.please!
 
Old 04-21-2017, 09:49 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Re #10.

Assume the package is downloaded to Downloads/.

cd Downloads/
sudo dpkg -i nist-pmip6-ns_229-ubuntu12_i386.deb


P.S. : The examples can be run from any location in /home/[name]/
cd ex-nist-Oct2015/
ns229-nist-pmip6-el6 handoff_umts-802.11_r0.tcl
cd scripts/
./ABCpref.sh
./distance.sh

Note : Not sure how well it will work with Ubuntu !
Else : Install CentOS 6.9 - i386. Very easy to use ...


-

Last edited by knudfl; 04-21-2017 at 09:55 AM.
 
Old 04-21-2017, 12:38 PM   #12
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
when i install CentOS 6.9 - i386 as your link http://ftp.funet.fi/pub/mirrors/cent...86-LiveDVD.iso the process of install faster than ubuntu, it done! i download ns2.29.3 to install.when i shutdown OS, then I turn it on i found that ns2.29.3 gone!i think that in this OS version, i turn off my OS, everything I install will be erase! I so nervous! how can i do?
 
Old 04-21-2017, 12:58 PM   #13
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Re #12.

? Where did you install ns-allinone-2.29.3 ?

Default is /home/[name]/ns2/ns-allinone-2.29/
Or /home/[name]/nist/ns-allinone-2.29/

Not Desktop/ . And not /tmp/ .


-
 
Old 04-22-2017, 12:25 AM   #14
designermp
Member
 
Registered: Apr 2017
Posts: 43

Original Poster
Rep: Reputation: Disabled
thank you so much! I have been resoved this problem! but
when i install ns2.29.3,i type: "./install" in the terminal, some error appear:


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... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... gcc34
checking whether the C compiler (gcc34 ) 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
make: gcc: Command not found
make: *** [ctangle.o] Error 127
cweb failed to make, but it's optional
chmod: cannot access `cweave': No such file or directory
chmod: cannot access `ctangle': No such file or directory
ln: creating symbolic link `cweave': File exists
ln: creating symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
if test -r gb_io.ch; then ctangle gb_io.w gb_io.ch; else ctangle gb_io.w; fi
/bin/sh: ctangle: command not found
make: *** [gb_io.c] 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.2.3 with gcc34.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
WARNING: snprintf() not found, falling back to sprintf(). zlib
can build but will be open to possible buffer-overflow security
vulnerabilities.
Checking for return value of sprintf()... No.
WARNING: apparently sprintf() does not return a value. zlib
can build but will be open to possible string-format security
vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
gcc34 -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c
make: gcc34: Command not found
make: *** [example.o] Error 127
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.11
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc34
checking whether the C compiler (gcc34 ) 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.


how can i fix them?

Last edited by designermp; 04-22-2017 at 03:13 AM.
 
Old 04-22-2017, 04:08 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,425

Rep: Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622Reputation: 3622
Re #14.

Like any other OS, the ns2 prerequisites must be installed before building ns2.


su [enter root password]
yum install gcc-c++ compat-gcc-34-c++ autoconf automake libtool libXmu-devel
 
  


Reply

Tags
mih-multi-criteria, nist-mob, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ns2 error " o14 cmd line 1 " r0w225 Linux - Software 19 02-18-2019 04:49 AM
[SOLVED] perl script runs fine from command line but fails when invoked by nagios andrest964 Linux - Newbie 7 10-04-2012 09:04 AM
Issue sg_modes cmd at cmd line, want to see the cmd in binary form NuUser Linux - Newbie 1 03-28-2012 08:08 AM
[SOLVED] NSLOOKUP - One Line cmd Line NetRock Programming 6 09-23-2010 07:53 AM
[SOLVED] Cmd Line help SteveThePirate Linux - Newbie 7 08-14-2009 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration