Keep in mind that you are executing a program linking to shared
libraries, so typically you will need to extend your LD_LIBRARY_PATH and
your PATH.
The above PATH that you suggest is typically not going to help.
Have a look inside the build/ directory; you will find your libraries
and executables there.
Notice that build/lib contains the libraries. On Linux, try this command:
cd <top-level-ns-3-directory>
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:`pwd`/build/lib
Now, you need to extend your path to the executable location. These
will be in the 'build/scratch', 'build/examples', or 'build/src'
directory (mirroring the location where they are found in the source
repository).
For instance, let's say you want to run the tutorial program first.cc:
cd <top-level-ns-3-directory>
export PATH=$PATH:`pwd`/build/examples/tutorial
Now you can run the executable 'ns3-dev-first-optimized' from anywhere.
(Note: you may have a different prefix or suffix name on your
executable than I show above).
- Tom
>
> --
> Posting to this group should follow these guidelines
>
https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> ---
> You received this message because you are subscribed to the Google
> Groups "ns-3-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
ns-3-users+...@googlegroups.com
> <mailto:
ns-3-users+...@googlegroups.com>.
> To post to this group, send email to
ns-3-...@googlegroups.com
> <mailto:
ns-3-...@googlegroups.com>.
> Visit this group at
https://groups.google.com/group/ns-3-users.
> For more options, visit
https://groups.google.com/d/optout.