Michael-Oppermann posted an update in the group Setup Support: 13 years, 10 months ago · View
I have a new problem, which is the right ns-3 version?
I use the ns-3 Version 3.7 because of the paths in the iTetris-ns3_0.1.1.patch (for example ”diff -rupN ns-3.7/src/…”). Is it right?
The patch failed with this output:
Hunk #1 FAILED at 49.
Hunk #2 FAILED at 176.
Hunk #3 FAILED at 216.
Hunk #4 FAILED at 1000.
Hunk #5 FAILED at 1033.
Hunk #6 FAILED at 1047.
Hunk #7 FAILED at 1130.
Hunk #8 FAILED at 1161.
8 out of 8 hunks FAILED — saving rejects to file bindings/python/apidefs/gcc-ILP32/ns3_module_common.py.rej
patching file bindings/python/apidefs/gcc-ILP32/ns3_module_core.py
Hunk #1 FAILED at 93.
Hunk #2 FAILED at 351.
Hunk #3 FAILED at 1575.
3 out of 3 hunks FAILED — saving rejects to file bindings/python/apidefs/gcc-ILP32/ns3_module_core.py.rej
…
The next patch would delete the file scratch/simple.cc,
which does not exist! Assume -R? [n]
The right version of ns-3 is ns-3.7 as you stated. Can you write the command your are executing to apply the patch? Have you downloaded the ns-alllinone-3.7 version and applied the patch to the ns-3 folder located within it?
BR,
Sendoa
I downloaded the ns-allinone-3.7 and applied the patch in the root directory of the ns-allinone-3.7.
I used the command from the iTetris_Guidelines0.1.0.pdf:
./configure –enable-sumo –enable-ns3 –enable-applications -with-geographic=/usr/local –enable-log
In order to apply the patch correctly enter the ns-allinone-3.7/ns-3.7 folder. Once you are there apply the patch. I guess the command you wrote is related to the other you have, have you checked you have installed all the necessary packages?
Sorry I wrote the wrong command. I used this one for the patch:
patch -p1 -i iTETRIS-ns3_0.1.1.patch
It works fine if I apply the patch in the ns-allinone-3.7/ns-3.7 folder.
Thanks