OPNET 11.5 running problem

526 views
Skip to first unread message

newaz

unread,
Mar 30, 2010, 9:01:53 AM3/30/10
to OPNET
Can any help me to solve the following problem?

Basically I am a novice for both OPNET and Visual studio *(2005). But
as a meter of fact I need to learn both. Initially I tried to install
OPNET 11.5. For doing so, I first installed MS Visual studio2005. Then
i tried to install OPNET. During installation i was notified that the C
++ compiler was not detected. However, I ignored that message. After
running some example Networks, I got the following error message.

"bind_so_msvc: Unable to execute bind program (Win32 error code: 2)
Check that Visual C++ has been installed correctly, and that
its BIN directory is included in the Path environment variable.
"
Please help me.

Thanks

Adam Davies

unread,
Mar 30, 2010, 9:13:29 AM3/30/10
to OPNET
First of all, what operating system are you using, and is it 32 or 64
bit? You need to configure the environment variables for your system,
if you let me know what operating system you are using, I will post
the environment variables you need to use.

Adam

newaz

unread,
Mar 30, 2010, 9:26:17 AM3/30/10
to OPNET

Thanks a lot for your reply Mr Adam.

My operating system is Windows XP SP3 . And it is 32 bit.

please sir also add the information about the location where i need to
put those variables.

thank you once agian.

Newaz

> > Thanks- Hide quoted text -
>
> - Show quoted text -

Adam Davies

unread,
Mar 30, 2010, 9:29:22 AM3/30/10
to OPNET
These are the environment variables you should be using. You need to
create a new variable (these can are in capitals below, such as PATH
or INCLUDE) then add the text after the = symbol as the value. if you
get any problems then let me know.

PATH=
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\bin;
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\bin;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\bin;
C:\WINNT\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin;
C:\WINNT\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 8\VC\bin;
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 8\VC\vcpackages;

INCLUDE=
C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE;
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;

LIB=
C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio 8\VC\LIB;
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;

LIBPATH=
C:\WINNT\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;

NETSAMPLEPATH=
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0;

DEVENVDIR=
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;

FRAMEWORKDIR=
C:\WINNT\Microsoft.NET\Framework;

FRAMEWORKSDKDIR=
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0;

FRAMEWORKVERSION=
v2.0.50727;

VCINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 8\VC;

VSINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 8;

Adam Davies

unread,
Mar 30, 2010, 9:33:23 AM3/30/10
to OPNET
Sorry, you need to go here to add them - Control panel, system, click
the advanced tab, click the environment variables button and then
enter them as system variables.

Adam

newaz

unread,
Mar 30, 2010, 10:00:17 AM3/30/10
to OPNET
Dear Sir

Thanks for your effort. I am facing the same problem again.
Basically my OS and (OPNET and Visual studio2005) are installed in D
drive. Therefore i just replaced C with D in the text file you sent
me. And then I added those in system variable (attaching one
screenshot of that). Then I tried to run one example networks. After a
while I got the previous message again. Please help me.

N..

--------------------------------

Adam Davies

unread,
Mar 30, 2010, 10:07:03 AM3/30/10
to OPNET
Open a new command prompt, type cl and press enter, and then link,
enter. Could you tell me what the result of doing this is?

Adam

Nightrider

unread,
Mar 30, 2010, 10:15:19 AM3/30/10
to OPNET

Dear sir

in command prompt i got this

----------------------------------------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Documents and Settings\newaz_kaist>cl
'cl' is not recognized as an internal or external command,
operable program or batch file.
D:\Documents and Settings\newaz_kaist>

-----------------------------------------------------------------------------------------------
And in Visual Studio 2005 Command Prompt i got this

Setting environment for using Microsoft Visual Studio 2005 x86 tools.
D:\Program Files\Microsoft Visual Studio 8\VC>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
D:\Program Files\Microsoft Visual Studio 8\VC>


thanks once again.

==========================================================

> > > - Show quoted text -- Hide quoted text -

Adam Davies

unread,
Mar 30, 2010, 10:24:09 AM3/30/10
to OPNET
Ok, this may sound strange, but what order did you install visual
studio, and opnet in? I've had numerous problems similar to yours, and
installation order can cause problems too (don't ask me why) the best
way to install is by installing visual studio first, then opnet
modeller, then opnet library, then opnet documentation.

Adam

Eric Gamess

unread,
Mar 30, 2010, 10:32:53 AM3/30/10
to shn...@gmail.com, OPNET
Dear Sir,

-------------------------------------------------------------------------------------
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
> D:\Documents and Settings\newaz_kaist>cl
> 'cl' is not recognized as an internal or external command,
> operable program or batch file.
> D:\Documents and Settings\newaz_kaist>

That is the problem.
Your variable is not set correctly.
You should find "cl" from the command line.
Your PATH variable is not set accordingly.

Eric.

Nightrider

unread,
Mar 30, 2010, 10:34:59 AM3/30/10
to OPNET
Dear sir

i followed exactly the same way you wrote here. i am mentioning the
sequence here.

1. Visual studio2005
2. modeler_115A_PL1_3352_win32
3. models_11.5.A_21-Sep-2005_win32
4. modeler_docs_21-Sep-2005_win32


thanks once again sir..


On Mar 30, 7:24 am, Adam Davies <adamjdav...@live.co.uk> wrote:
> Ok, this may sound strange, but what order did you install visual
> studio, and opnet in? I've had numerous problems similar to yours, and
> installation order can cause problems too (don't ask me why) the best
> way to install is by installing visual studio first, then opnet
> modeller, then opnet library, then opnet documentation.
>
> Adam
>
> On Mar 30, 3:15 pm, Nightrider <shne...@gmail.com> wrote:
>
>
>
> > Dear sir
>
> > in command prompt i got this
>

> > ---------------------------------------------------------------------------­-------------------


> > Microsoft Windows XP [Version 5.1.2600]
> > (C) Copyright 1985-2001 Microsoft Corp.
> > D:\Documents and Settings\newaz_kaist>cl
> > 'cl' is not recognized as an internal or external command,
> > operable program or batch file.
> > D:\Documents and Settings\newaz_kaist>
>

> > ---------------------------------------------------------------------------­--------------------

Adam Davies

unread,
Mar 30, 2010, 10:37:07 AM3/30/10
to OPNET
Try these variables in PATH instead -

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;

C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;


C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;

C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;

Adam

Nightrider

unread,
Mar 30, 2010, 11:01:22 AM3/30/10
to OPNET
Dear Sir


I am not sure whether it is a good or bad news. Now there is no such
error message after putting these new variables, however i tried put
'cl' in command prompt and again i am getting the previous message.
(shown below)


--------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\Documents and Settings\newaz_kaist>cl
'cl' is not recognized as an internal or external command,
operable program or batch file.

---------------------------------------------------------------

Do u have any idea sir?

thanks again .


On Mar 30, 7:37 am, Adam Davies <adamjdav...@live.co.uk> wrote:
> Try these variables in PATH instead -
>
> C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
> C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
> C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;
> C:\WINDOWS\Microsoft.NET\Framework\v3.5;
> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
> C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;
>
> Adam
>
> On Mar 30, 3:24 pm, Adam Davies <adamjdav...@live.co.uk> wrote:
>
>
>
> > Ok, this may sound strange, but what order did you install visual
> > studio, and opnet in? I've had numerous problems similar to yours, and
> > installation order can cause problems too (don't ask me why) the best
> > way to install is by installing visual studio first, then opnet
> > modeller, then opnet library, then opnet documentation.
>
> > Adam
>
> > On Mar 30, 3:15 pm, Nightrider <shne...@gmail.com> wrote:
>
> > > Dear sir
>
> > > in command prompt i got this
>

> > > ---------------------------------------------------------------------------­-------------------


> > > Microsoft Windows XP [Version 5.1.2600]
> > > (C) Copyright 1985-2001 Microsoft Corp.
> > > D:\Documents and Settings\newaz_kaist>cl
> > > 'cl' is not recognized as an internal or external command,
> > > operable program or batch file.
> > > D:\Documents and Settings\newaz_kaist>
>

> > > ---------------------------------------------------------------------------­--------------------

Eric Gamess

unread,
Mar 30, 2010, 12:03:20 PM3/30/10
to shn...@gmail.com, OPNET
> I am not sure whether it is a good or bad news. Now there is no such
> error message after putting these new variables, however i tried put
> 'cl' in command prompt and again i am getting the previous message.
> (shown below)

Hello,

The settings that Adam gave you are correct.
Just be sure that the cl executable is in the directory
C:\Program Files\Microsoft Visual Studio 8\VC\BIN.
If it is there, you did not set properly the PATH
variables.

Eric.

Nightrider

unread,
Mar 31, 2010, 4:44:51 AM3/31/10
to OPNET
Hello Mr. Eric and Mr. Adam.

Thanks a lot.

Could you please me whether i am in write track or not?

In the command prompt i tried to execute the cl file in the following
way. (Note: my OS is in D drive)
i am pasting here what i gave as command and what i got as output:

---------------------------------------------------------------------------------------------------------------------------------------------
D:\Program Files\Microsoft Visual Studio 8\VC\bin>cl
[command]


[Output is below]

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762
for 80x86

Copyright (C) Microsoft Corporation. All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

---------------------------------------------------------------------------------------------------------------------------------------------
So does this output make any sense?
Does it mean cl is executable from that directory "D:\Program Files
\Microsoft Visual Studio 8\VC\bin" .

Please clarify me (a novice).


Thanks again to Eric and Adam.


----------------
Newaz


==================================================

Adam Davies

unread,
Mar 31, 2010, 6:19:06 AM3/31/10
to OPNET
That's the output you would expect, which would suggest it's in the
correct directory. I can't think why it wouldn't work by only typing
cl in the command prompt.

How are your simulations, do they run without any errors? If so, it
would seem modeller knows where to look for the linker and you should
be able to get away with it as it is.

Adam

Eric Gamess

unread,
Mar 31, 2010, 9:13:36 AM3/31/10
to shn...@gmail.com, OPNET
Newaz,

That is the problem. You installed OPNET Modeler in drive D:
So you have to replace C: to D: in all the environment variables.

Then you just open a DOS shell, and without going to the
OPNET directory (D:\Program Files\Microsoft Visual Studio 8\VC\bin),
the command cl should work and give you the result that you
show us in your previous E-mail.

Eric.

Shahbaz Saeed

unread,
May 27, 2010, 5:27:31 PM5/27/10
to OPNET

hi, i have been reading your emails which is quite fruitful, i am
having same troubles but i m using windows 7 and the compiler im using
is visual studio 9.0(even though i installed visual studio 8 but it
installed vs09) i am having problems with the compilation as well at
the moment its not compiling anything, any help in this matter will be
very helpful thanks alot


On 30 Mar, 15:37, Adam Davies <adamjdav...@live.co.uk> wrote:
> Try these variables in PATH instead -
>
> C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
> C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
> C:\Program Files\Microsoft Visual Studio 8\Common7\Tools;
> C:\WINDOWS\Microsoft.NET\Framework\v3.5;
> C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
> C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;
> C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;
>
> Adam
>
> On Mar 30, 3:24 pm, Adam Davies <adamjdav...@live.co.uk> wrote:
>
>
>
> > Ok, this may sound strange, but what order did you install visual
> > studio, and opnet in? I've had numerous problems similar to yours, and
> > installation order can cause problems too (don't ask me why) the best
> > way to install is by installing visual studio first, then opnet
> > modeller, then opnet library, then opnet documentation.
>
> > Adam
>
> > On Mar 30, 3:15 pm, Nightrider <shne...@gmail.com> wrote:
>
> > > Dear sir
>
> > > in command prompt i got this
>

> > > ---------------------------------------------------------------------------­-------------------


> > > Microsoft Windows XP [Version 5.1.2600]
> > > (C) Copyright 1985-2001 Microsoft Corp.
> > > D:\Documents and Settings\newaz_kaist>cl
> > > 'cl' is not recognized as an internal or external command,
> > > operable program or batch file.
> > > D:\Documents and Settings\newaz_kaist>
>

> > > ---------------------------------------------------------------------------­--------------------

Eric Gamess

unread,
May 27, 2010, 9:39:16 PM5/27/10
to saeed....@googlemail.com, OPNET
Dear Saeed,

> hi, i have been reading your emails which is quite fruitful, i am
> having same troubles but i m using windows 7 and the compiler im using
> is visual studio 9.0(even though i installed visual studio 8 but it
> installed vs09) i am having problems with the compilation as well at
> the moment its not compiling anything, any help in this matter will be
> very helpful thanks alot

From FAQ ID: 2254
Question: Is OPNET Software supported on Windows 7?

Answer: Only version 16.0 PL1 of IT Guru, IT Guru Network Planner, SP
Guru Network Planner, and OPNET Modeler are supported on Windows 7.
However, there are restrictions, which are documented on the System
Requirements page.

Hope this can help.

Eric.

Nightrider

unread,
Jun 3, 2010, 12:30:21 AM6/3/10
to OPNET
Hello Mr. Eric and Mr. Adam.

when i run any example scenario in my OPNET 14, it works well.
however, i when i try to compile any process model i get one error.

Cannot open iclude file: 'string.h'; invalid argument.

can u tell me where the problem is ?

thanks guys in advance.

Eric Gamess

unread,
Jun 3, 2010, 8:47:51 AM6/3/10
to shn...@gmail.com, OPNET
Hello,

> when i run any example scenario in my OPNET 14, it works well.
> however, i when i try to compile any process model i get one error.
> Cannot open iclude file: 'string.h'; invalid argument.

I think it is a problem of having the correct setting. Do not use Windows 7
with OPNET 14. Use Windows XP.

For Visual Studio Express Edition 2008 and OPNET 14, the setting is as
follow. Pay a special attention to the setting of the INCLUDE variable.
Also, verify that your computer have directories:
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;

-----------------------------------------------------------

DevEnvDir=C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
Framework35Version=v3.5
FrameworkDir=C:\WINDOWS\Microsoft.NET\Framework
FrameworkVersion=v2.0.50727

INCLUDE=
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\include;

LIB=
C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\lib;

LIBPATH=


C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;

C:\Program Files\Microsoft Visual Studio 9.0\VC\LIB;

Path=
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN;
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools;


C:\WINDOWS\Microsoft.NET\Framework\v3.5;
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;

C:\Program Files\Microsoft Visual Studio 9.0\VC\VCPackages;


C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;

VCINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 9.0\VC

VS90COMNTOOLS=
C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\

VSINSTALLDIR=
C:\Program Files\Microsoft Visual Studio 9.0

WindowsSdkDir=


C:\Program Files\Microsoft SDKs\Windows\v6.0A\

I hope this can help.

Eric.

Nightrider

unread,
Jun 11, 2010, 5:18:09 AM6/11/10
to OPNET

Hi all


i have installed OPNET 11.5.

For doing so, i first installed Visual Studio.NET (2003).
then OPNET 11.5 in proper order.

the environmental variable i set is a follows:

---------------------------------------------------------------------------------------------------

PATH :

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;
C:\Program Files\Microsoft Visual Studio 8\VC\BIN;
C:\Program Files\Microsoft Visual Studio8\Common7\Tools;
C:\WINDOWS\Microsoft.NET\Framework\v3.5;
D:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 8\VC\VCPackages;
C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin;

INCLUDE
Vlaues:
C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\INCLUDE;
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE;
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\include;

LIB
Vlaues:

C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;
C:\Program Files\Microsoft Visual Studio 8\VC\LIB;
C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\lib;
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\lib;

LIBPATH
Vlaues:

C:\WINNT\Microsoft.NET\Framework\v2.0.50727;
C:\Program Files\Microsoft Visual Studio 8\VC\ATLMFC\LIB;

NETSAMPLEPATH
Vlaues:
C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0;


DEVENVDIR
Vlaues:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE;


FRAMEWORKDIR
Vlaues:
C:\WINNT\Microsoft.NET\Framework;


FRAMEWORKVERSION
Vlaues:
= v2.0.50727;


VCINSTALLDIR
Vlaues:
C:\Program Files\Microsoft Visual Studio 8\VC;


VSINSTALLDIR

Vlaues:
C:\Program Files\Microsoft Visual Studio 8;

----------------------------------------------------------------------------------
----------------------------------------------------------------------------------


Now when i put cl in command promt i can get the following out put :

----------------------------------------------------------------------------------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\newaz_kaist>cl
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42
for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]
-----------------------------------------------------------------------------------
----------------------------------------------------------------------------------

however when i run OPNET 11.5 i can get the following out put. [need
to mention here i didnt mark any DES statistics]

-----------------------------------------------------------------------------------------------------
Simulation Completed - Collating Results.
Events: Total (0), Average Speed (0 events/sec.)
Time : Elapsed (0.00 sec.), Simulated (1 hr. 0 min. 0 sec.)
Simulation Log: 2 entries
-----
DES log messages have been generated.
These typically report on simulation behavior, misconfiguration
issues, etc.
You may wish to examine these log messages by selecting DES->Open DES
Log.
-----
Simulation could not be executed.Check DES log (select 'Open DES Log'
in 'DES' menu) for possible error messages.
--------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------

and in the DES log i got as follows:

Program: op_runsim (3352)
Kernel: development (not optimized), sequential, 32-bit address space
Events: Total (0), Average Speed (0 events/sec.)
Time : Elapsed (0.00 sec.), Simulated (1 hr. 0 min. 0 sec.)
Memory: general (3,293 kB), categorized (1,039 kB), pooled (2,013 kb),
total (6,345 kB)


-------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------

please tell me how i can solve this issue. it seems that the
environment variable that i used is not crrect. If so, then please
send me the right one.

PLEASE


thanks
Reply all
Reply to author
Forward
0 new messages