Trouble running third.cc file

46 views
Skip to first unread message

Achyuth S.S.

unread,
Jun 13, 2024, 11:39:34 PMJun 13
to ns-3-users
Hi, I am running third.cc in the examples of ns3. But  every time I run using the usual commands, it gives -> 

┌─[user@parrot]─[~/Desktop/ns-allinone-3.42/ns-3.42]

└──╼ $./ns3 run scratch/third

-- Using default output directory /home/isfcr/Desktop/ns-allinone-3.42/ns-3.42/ns-3-dev/build

-- Proceeding without cmake-format

-- find_external_library: SQLite3 was found.

-- docs: doxygen documentation not enabled due to missing dependencies: doxygen dia

-- Failed to locate sphinx-build executable (missing: SPHINX_EXECUTABLE)

-- docs: sphinx documentation not enabled due to missing dependencies: Sphinx epstopdf pdflatex latexmk dvipng dia

-- Processing src/antenna

-- Standard library Bessel function has been found

-- Processing src/aodv

-- Processing src/applications

-- Processing src/bridge

-- Processing src/brite

-- Skipping src/brite

-- Processing src/buildings

-- Processing src/click

-- Skipping src/click

-- Processing src/config-store

-- Processing src/core

-- Boost Units have been found.

-- Processing src/csma

-- Processing src/csma-layout

-- Processing src/dsdv

-- Processing src/dsr

-- Processing src/energy

-- Processing src/fd-net-device

-- Checking for module 'libdpdk'

--   Package 'libdpdk', required by 'virtual:world', not found

-- Processing src/flow-monitor

-- Processing src/internet

-- Processing src/internet-apps

-- Processing src/lr-wpan

-- Processing src/lte

-- Processing src/mesh

-- Processing src/mobility

-- Processing src/netanim

-- Processing src/network

-- Processing src/nix-vector-routing

-- Processing src/olsr

-- Processing src/openflow

-- Skipping src/openflow

-- Processing src/point-to-point

-- Processing src/point-to-point-layout

-- Processing src/propagation

-- Processing src/sixlowpan

-- Processing src/spectrum

-- Processing src/stats

-- Processing src/tap-bridge

-- Processing src/test

-- Processing src/topology-read

-- Processing src/traffic-control

-- Processing src/uan

-- Processing src/virtual-net-device

-- Processing src/wifi

-- Processing src/wimax

-- ---- Summary of ns-3 settings:

Build profile             : default

Build directory           : /home/isfcr/Desktop/ns-allinone-3.42/ns-3.42/ns-3-dev/build

Build with runtime asserts : ON

Build with runtime logging : ON

Build version embedding   : OFF (not requested)

BRITE Integration         : OFF (Missing headers: "Brite.h" and missing libraries: "brite")

DES Metrics event collection  : OFF (not requested)

DPDK NetDevice            : OFF (not requested)

Emulation FdNetDevice     : ON

Examples                  : ON

File descriptor NetDevice : ON

GNU Scientific Library (GSL)  : OFF (GSL was not found)

GtkConfigStore            : OFF (Harfbuzz is required by GTK3 and was not found)

LibXml2 support           : ON

MPI Support               : OFF (not requested)

ns-3 Click Integration    : OFF (Missing headers: "simclick.h" and missing libraries: "nsclick click")

ns-3 OpenFlow Integration : OFF (Missing headers: "openflow.h" and missing libraries: "openflow")

Netmap emulation FdNetDevice  : OFF (missing dependency)

PyViz visualizer          : OFF (Python Bindings are disabled)

Python Bindings           : OFF (not requested)

SQLite support            : ON

Eigen3 support            : OFF (Eigen was not found)

Tap Bridge                : ON

Tap FdNetDevice           : ON

Tests                     : ON



Modules configured to be built:

antenna               aodv                  applications          

bridge                buildings             config-store          

core                  csma                  csma-layout           

dsdv                  dsr                   energy                

fd-net-device         flow-monitor          internet              

internet-apps         lr-wpan               lte                   

mesh                  mobility              netanim               

network               nix-vector-routing    olsr                  

point-to-point        point-to-point-layout propagation           

sixlowpan             spectrum              stats                 

tap-bridge            test                  topology-read         

traffic-control       uan                   virtual-net-device    

wifi                  wimax                 


Modules that cannot be built:

brite                 click                 mpi                   

openflow              visualizer            



-- Configuring done

-- Generating done

-- Build files have been written to: /home/isfcr/Desktop/ns-allinone-3.42/ns-3.42/ns-3-dev/cmake-cache

You need to configure ns-3 first: try ./ns3 configure Can someone please help me fix the issue? Thanks


Tom Henderson

unread,
Jun 13, 2024, 11:47:55 PMJun 13
to ns-3-...@googlegroups.com, Achyuth S.S.
There is something unusual in your directory setup, perhaps confusing
the build system.

It is saying that it is using an 'ns-3-dev' directory that is within
ns-3.42 directory:

/home/isfcr/Desktop/ns-allinone-3.42/ns-3.42/ns-3-dev/build

Usually, we would expect to see (for an ns-3 release):

/home/isfcr/Desktop/ns-allinone-3.42/ns-3.42/build

If you want to use ns-3-dev, do not put it within ns-3.42. You can try
to remove this ns-3-dev directory (or move it out of the way) and type:

./ns3 clean
./ns3 configure
./ns3 build
./ns3 run scratch/third

and it should work.
> help me fix the issue? Thanks
>
>
> --
> Posting to this group should follow these guidelines
> https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
> <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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ns-3-users/5f9b599e-fe34-4518-a1ea-6234293eb84bn%40googlegroups.com <https://groups.google.com/d/msgid/ns-3-users/5f9b599e-fe34-4518-a1ea-6234293eb84bn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Message has been deleted

Achyuth S.S.

unread,
Jun 17, 2024, 2:55:03 AM (13 days ago) Jun 17
to ns-3-users
Thank you so much Tom. It worked :)

Thanks a lot 
Reply all
Reply to author
Forward
0 new messages