Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problem #54

Open
P1mentaX opened this issue Aug 29, 2024 · 42 comments
Open

Installation problem #54

P1mentaX opened this issue Aug 29, 2024 · 42 comments

Comments

@P1mentaX
Copy link

When I tried to download sns3, I encountered problems:
I installed ns3.37 as the master version recommends, but it returned the error shown in image .
Captura de tela 2024-08-29 155321

I also tried downloading the dev version for 3.42, and it returned the errors shown in the other images.

Captura de tela 2024-08-29 154657
Captura de tela 2024-08-29 154730

Can someone help me with this problem?

@mruizfda
Copy link

same problem witn ns-3.37, any solution please?

@Ssh1y
Copy link

Ssh1y commented Sep 18, 2024

same problem witn ns-3.42, any solution please?

@bastientauran
Copy link
Contributor

Hello,
You need to make sure that the 3 modules (satellite, traffic and magister-stats) are coherent with the ns3 version.
For ns-3.37, you need:

  • satellite on commit 04dc901
  • traffic on commit c68daaf1
  • magister-stats on commit c613ba7c
    For ns-3.42, you need:
  • satellite on commit 19779c2
  • traffic on commit d9aa8ce4
  • magister-stats on commit 95ae2a8f
    From ns-3.41, you can use tags for all 3 modules to help getting the correct version

@thebear132
Copy link

Hello, You need to make sure that the 3 modules (satellite, traffic and magister-stats) are coherent with the ns3 version. For ns-3.37, you need:

* satellite on commit [04dc901](https://github.com/sns3/sns3-satellite/commit/04dc901404beb9b320cd018f4a8d6438f402ad83)

* traffic on commit c68daaf1

* magister-stats on commit c613ba7c
  For ns-3.42, you need:

* satellite on commit [19779c2](https://github.com/sns3/sns3-satellite/commit/19779c2aae6534ff6dbd5a75ec3a901d49e75ccf)

* traffic on commit d9aa8ce4

* magister-stats on commit 95ae2a8f
  From ns-3.41, you can use tags for all 3 modules to help getting the correct version

Hi,
For ns-3.42 this results in errors.
For the satellite repo i did $ git checkout 19779c2aae6534, while the two others are up to date when doing $git log in their respective folders:
bear@debian:~/Desktop/ns-allinone-3.42/ns-3.42/contrib$ ls --> magister-stats satellite traffic

I have followed the CMake installation, where the errors happen when doing ./ns3 build
Screenshot_20241106_154245

@bastientauran
Copy link
Contributor

Hello thebear132,
It seems that some dependencies may be missing for some files (map in your case). Depending on the compilation order of source files, you may this issue.
I will perform a full analysis of all classes to add missing includes. However, it will only be done on a new commit from dev branch.
For you commit, i cannot edit it. Thus, either you can switch to my latest commit once it is pushed, or you can add manually missing includes following the notes from your compiler.

@thebear132
Copy link

A temporary fix is to use a certain ns-3 version and change the 3 repositories to these certain commits

  • ns-3.40
  • Satellite repo -> commit 9dc8f35 (HEAD, tag: 3.40)
  • Magister-stats repo -> commit 5b3cc38f24d823be89acb945ac1cf5f55cbac7b2 (HEAD)
  • Traffic repo -> commit b2ae5681968151e09f2fe5eb584d8eceed7215aa (HEAD)

But again, this is temporary. Looking forward to your fix for ns-3.42 @bastientauran

@thebear132
Copy link

Hello thebear132, It seems that some dependencies may be missing for some files (map in your case). Depending on the compilation order of source files, you may this issue. I will perform a full analysis of all classes to add missing includes. However, it will only be done on a new commit from dev branch. For you commit, i cannot edit it. Thus, either you can switch to my latest commit once it is pushed, or you can add manually missing includes following the notes from your compiler.

Thank you for looking into this issue. When do you expect that your bugfix will be available?

@bastientauran
Copy link
Contributor

The 3 repositories have just been pushed:

  • satellite: dev branch, commit 00f4641
  • traffic: master branch, commit 76c9318
  • magister-stats: master branch, commit b984bce
    The latest version of these 3 modules should still work with ns-3.42, in addition to ns-3.43

@thebear132
Copy link

The 3 repositories have just been pushed:

* satellite: dev branch, commit [00f4641](https://github.com/sns3/sns3-satellite/commit/00f46416850cc8de2be6321816924cda7df0a546)

* traffic: master branch, commit 76c9318

* magister-stats: master branch, commit b984bce
  The latest version of these 3 modules should still work with ns-3.42, in addition to ns-3.43

These changes almost work. All they need is one include and a '&' added to one of the files. @Juhlemanden14 and I have made a pull request which you can merge into the dev branch #55.

@bastientauran
Copy link
Contributor

Thank you for the feedback and the PR. This repository is only a mirror of a private gitlab one, thus I pushed your edits on gitlab and they have been mirrored on commit 202c72e. If everything is good, we can close the PR.
For information, on which distribution do you compile and run SNS3 ?

@thebear132
Copy link

Thank you for your help. You can close the Pull-request if you want to. We are running Linux Debian 6.1.0-26-amd64

@Furkkaya
Copy link

Furkkaya commented Dec 8, 2024

Hello, I've been trying to download SNS3 modules for 2 weeks, I've tried many NS3 versions but none of them work. I finally managed to download it but the simulations don't work. Which file and which links should I download exactly? I can use any NS3 version as long as it works. Can anybody help me please?
Screenshot from 2024-12-08 16-58-18

@bastientauran
Copy link
Contributor

Hello, I will need more information to help you, on what commits are:

  • ns3
  • the satellite module
  • the magister-stats and traffic modules
  • the data submodule
    Moreover, are you sure you initialized correctly the data submodule: "git submodule update --init --recursive" from the satellite directory ? You should have four directories inside "data": additional-input, scenarios, sgp4 and sims

@Furkkaya
Copy link

Furkkaya commented Dec 9, 2024

The 3 repositories have just been pushed:

* satellite: dev branch, commit [00f4641](https://github.com/sns3/sns3-satellite/commit/00f46416850cc8de2be6321816924cda7df0a546)

* traffic: master branch, commit 76c9318

* magister-stats: master branch, commit b984bce
  The latest version of these 3 modules should still work with ns-3.42, in addition to ns-3.43

I downloaded NS3.42 the satellite modules from the commit you mentioned here. I downloaded the traffic and magister modules from the master branch, but I could not find the commits you mentioned there. When I build modules I got a few error messages but the build was complete. At first, I was using the download manuals at the bottom of the branches, but I always got errors because it was not downloading the correct updated files. Then, I tried to download the files in zip and I managed to build them. Can you help me on how to download it and where I should download it from?
Moreover, i did initialized "git submodule update --init --recursive" but it give me this message?
Screenshot from 2024-12-09 19-37-59
I need these modules for my graduation project :( thank you for your response.

@bastientauran
Copy link
Contributor

You shouldn't have any warning or error during the compilation, except one raised by the ns-3 core in "attribute-container.h:424" that is not in my scope.
All the commits mentioned are present in the repositories, try a "git pull" from the master branches of "traffic" and "magister-stats" to get the latest updates, then perform a checkout.
If you still cannot manage to get the correct commits, you can download a zip files from the repositories at the correct commit:

If you downloaded manually the repositories, or if the "git submodule update --init --recursive" still fails, you can also download it manually from https://github.com/sns3/sns3-data/tree/da089030e20e7857a00d72c764aee40306dc0ee1 and put it s content in the satellite/data directory.

If you still have compilation issues, please provide me a full log of the compilation: "./ns3 build 2>&1 | tee log.txt" and send me the content of this file.

If the compilation does not raise any error or warning except "attribute-container.h:424", and if you have the data directory correctly set, the simulations should run normally.

@Furkkaya
Copy link

Furkkaya commented Dec 11, 2024

You shouldn't have any warning or error during the compilation, except one raised by the ns-3 core in "attribute-container.h:424" that is not in my scope. All the commits mentioned are present in the repositories, try a "git pull" from the master branches of "traffic" and "magister-stats" to get the latest updates, then perform a checkout. If you still cannot manage to get the correct commits, you can download a zip files from the repositories at the correct commit:

* for satellite: https://github.com/sns3/sns3-satellite/tree/00f46416850cc8de2be6321816924cda7df0a546

* for traffic: https://github.com/sns3/traffic/tree/76c9318683dc9dbe9367c55459fc04898e735b43

* for magister-stats: https://github.com/sns3/stats/tree/b984bce656e15fd98e4f82388165763b40746bfd

If you downloaded manually the repositories, or if the "git submodule update --init --recursive" still fails, you can also download it manually from https://github.com/sns3/sns3-data/tree/da089030e20e7857a00d72c764aee40306dc0ee1 and put it s content in the satellite/data directory.

If you still have compilation issues, please provide me a full log of the compilation: "./ns3 build 2>&1 | tee log.txt" and send me the content of this file.

If the compilation does not raise any error or warning except "attribute-container.h:424", and if you have the data directory correctly set, the simulations should run normally.

I still have compilation issue. I've sent you the full log of the build: the file "./ns3 build 2>&1 | tee log.txt".

log.txt

Also, when I download the data file, I encounter such a file.

Screenshot from 2024-12-11 07-37-54

@bastientauran
Copy link
Contributor

Hello,

What OS are you using to compile SNS-3 ?

It seems that some includes are missing, I will try to add them on a future commit, but meanwhile, you can fix it manually on you local copy by adding "#include " on each file that produces an error of the kind: "‘uintXX_t’ does not name a type" or "‘intXX_t’ does not name a type". In you log, this is "satellite-const-variables.h", but can be also in other files if you run again the compilation.

For the download, I cannot tell, if neither the git clone, nor the zip download, nor the "git submodule update" works, I have no other solution.

@Kniyl
Copy link
Contributor

Kniyl commented Dec 11, 2024

Moreover, i did initialized "git submodule update --init --recursive" but it give me this message? Screenshot from 2024-12-09 19-37-59

This error means you did not use git to get either ns3 nor sns3 satellite module in the first place. Which will make changing versions and updating the code more tedious in the long run.

If you are not able to get the sns3 data on your own, I would recommend using git from the get go:

cd <path/of/your/liking/>
git clone -b ns-3.42 https://gitlab.com/nsnam/ns-3-dev.git
cd ns-3-dev/contrib/
git clone --recursive -b dev https://github.com/sns3/sns3-satellite.git satellite
git clone https://github.com/sns3/traffic.git
git clone https://github.com/sns3/stats.git magister-stats
cd ..

Now you can use ./ns3 to build as usual as well as run the sns3 binaries since the --recursive flag got the data submodule for you.

@Furkkaya
Copy link

Hello,

What OS are you using to compile SNS-3 ?

It seems that some includes are missing, I will try to add them on a future commit, but meanwhile, you can fix it manually on you local copy by adding "#include " on each file that produces an error of the kind: "‘uintXX_t’ does not name a type" or "‘intXX_t’ does not name a type". In you log, this is "satellite-const-variables.h", but can be also in other files if you run again the compilation.

For the download, I cannot tell, if neither the git clone, nor the zip download, nor the "git submodule update" works, I have no other solution.

Hello, I am using Ubuntu 24.04 via Oracle VirtualBox. I will try to fix it manually based on the instructions you gave. Hope it will work. Thank for your help.

@Furkkaya
Copy link

Moreover, i did initialized "git submodule update --init --recursive" but it give me this message? Screenshot from 2024-12-09 19-37-59

This error means you did not use git to get either ns3 nor sns3 satellite module in the first place. Which will make changing versions and updating the code more tedious in the long run.

If you are not able to get the sns3 data on your own, I would recommend using git from the get go:

cd <path/of/your/liking/>
git clone -b ns-3.42 https://gitlab.com/nsnam/ns-3-dev.git
cd ns-3-dev/contrib/
git clone --recursive -b dev https://github.com/sns3/sns3-satellite.git satellite
git clone https://github.com/sns3/traffic.git
git clone https://github.com/sns3/stats.git magister-stats
cd ..

Now you can use ./ns3 to build as usual as well as run the sns3 binaries since the --recursive flag got the data submodule for you.

Screenshot from 2024-12-11 10-01-10

I'm still getting errors. Again, thank you for your advice. I guess I won't be able to download it.

@linhgiangece
Copy link

image
I tried to intergrated sns3 module I ns3.37 but I got some errors. Can anybody help me?
image
image
image

@linhgiangece
Copy link

I tried to intergrated sns3 module I ns3.37 but I got some errors. Can anybody help me?

@bastientauran
Copy link
Contributor

Hello @linhgiangece,
It seems that there is a mismatch between the versions of the repositories.
Can you tell me which commit you are using for:

  • ns3
  • the satellite module
  • the magister-stats and traffic modules
  • the data submodule
    Also, can you send me the full log in text format: "./ns3 build 2>&1 | tee log.txt" then send here log.txt

In any cases, ns-3.37 is an old version (we are using ns-3.43 now), so the satellite, magister-stats and traffic repositories have evolved a lot from then.

@Furkkaya
Copy link

Hello,
I managed to download and build NS3.42 version, but I am having an error while downloading the data. When I use the command "git submodule update --init --recursive" I get the same message I mentioned above "not a git repository". When I download the zip file, these files are downloaded but they do not open:
Screenshot from 2024-12-22 08-10-39

When I try to download with Git clone, I think the files are missing and downloaded incorrectly:

Screenshot from 2024-12-22 08-08-36

Screenshot from 2024-12-22 08-09-35

Do you know why I am getting such an error?

@Furkkaya
Copy link

Furkkaya commented Dec 30, 2024

Hello, I managed to download and build NS3.42 version, but I am having an error while downloading the data. When I use the command "git submodule update --init --recursive" I get the same message I mentioned above "not a git repository". When I download the zip file, these files are downloaded but they do not open: Screenshot from 2024-12-22 08-10-39

When I try to download with Git clone, I think the files are missing and downloaded incorrectly:

Screenshot from 2024-12-22 08-08-36

Screenshot from 2024-12-22 08-09-35

Do you know why I am getting such an error?

I managed to download the data part, but the examples still don't work? Where is the problem I can't figure out?
Screenshot from 2024-12-30 14-07-06

@bastientauran
Copy link
Contributor

Do you have extracted the data archive in the correct place. The following path should exist: "satellite/data/scenarios".
Do you have the data repository in satellite ? And what is the content of the extracted data repository ? Please provide in text format the output of "ls -al -R".

One hint is that the antennapatterns repository in "data/scenarios/<scenario_name>" is a symbolic link to "data/additional-input/antennapatterns/". Maybe it has been broken and must be created again.
You can do this using "ln -s antennapatterns", the target can be found in the sns3-data github, on the page "data/scenarios/<scenario_name>/antennapatterns", for example in https://github.com/sns3/sns3-data/blob/master/scenarios/geo-33E/antennapatterns.

@Furkkaya
Copy link

Do you have extracted the data archive in the correct place. The following path should exist: "satellite/data/scenarios". Do you have the data repository in satellite ? And what is the content of the extracted data repository ? Please provide in text format the output of "ls -al -R".

One hint is that the antennapatterns repository in "data/scenarios/<scenario_name>" is a symbolic link to "data/additional-input/antennapatterns/". Maybe it has been broken and must be created again. You can do this using "ln -s antennapatterns", the target can be found in the sns3-data github, on the page "data/scenarios/<scenario_name>/antennapatterns", for example in https://github.com/sns3/sns3-data/blob/master/scenarios/geo-33E/antennapatterns.

I realized later, sorry for my late reply, that while downloading the data files, some parts were missing and some files were not downloaded (e.g. GeoPos.in), I tried to solve the problem by downloading them one by one.

@Furkkaya
Copy link

Furkkaya commented Feb 17, 2025

I tried and tested git clone --recursive -b dev https://github.com/sns3/sns3-satellite.git satellite inside the contrib folder of my ns3 install. I had these errors while building.

Image

Image

Image

I don't know how to use Ubuntu, can you help me step by step what to do? Can you help me with installing and building from scratch? Any working version of SNS3 is fine with me.

@Kniyl
Copy link
Contributor

Kniyl commented Feb 17, 2025

I tried and tested git clone --recursive -b dev https://github.com/sns3/sns3-satellite.git satellite inside the contrib folder of my ns3 install. I had these errors while building.

Besides these compilation errors, did the command solve your data issue ? Is the folder correctly populated ? Can you paste the output of ls -Rl from this folder to make sure ?

The output from the compilation seems to indicate that you did not clone the traffic module alongside satellite and stats. Refer back to my previous instructions.

I don't know how to use Ubuntu, can you help me step by step what to do? Can you help me with installing and building from scratch? Any working version of SNS3 is fine with me.

Teaching you how to use an OS is outside the scope of the SNS3 project.

@Furkkaya
Copy link

Furkkaya commented Feb 17, 2025

Besides these compilation errors, did the command solve your data issue ? Is the folder correctly populated ? Can you paste the output of ls -Rl from this folder to make sure ?

I think it completed the cloning process successfully, thank you. I couldn't take a full screenshot because the output was too long.

Image

Image

Image

The output from the compilation seems to indicate that you did not clone the traffic module alongside satellite and stats. Refer back to my previous instructions.

After following your instruction above and building it, I got such an errors.

Image

Image

Image

Image

Teaching you how to use an OS is outside the scope of the SNS3 project.

I didn't want you to teach me how to use the OS, I just wanted to point out that I don't know how to use it very well, to say that it might be my fault. I apologize for the misunderstanding.

@bastientauran
Copy link
Contributor

Hi,

Your data repository seems correct.
For your compilation error, there is a line which does nothing, and that we did not notice. It may cause compilation warnings, that become errors due to the Werror flag. You can remove line 396 of helper/satellite-helper.cc, and try again.
I will push a new commit soon on the dev branch with all the fixes.

@Furkkaya
Copy link

Hi,

Your data repository seems correct. For your compilation error, there is a line which does nothing, and that we did not notice. It may cause compilation warnings, that become errors due to the Werror flag. You can remove line 396 of helper/satellite-helper.cc, and try again. I will push a new commit soon on the dev branch with all the fixes.

Hi, i tried but i took these errors.

Image

Image

Image

Image

I hope it helps you with the new commit, thank you again for your help.

@bastientauran
Copy link
Contributor

Hello @Furkkaya,

I pushed a new commit on the dev branch of the satellite module: 57fc7a6 (https://github.com/sns3/sns3-satellite/tree/57fc7a66d1a480cb4437fb121072e6dac50e718d). This should solve the issues of your last post.
Can you try this one ? If there are additional errors, please provide them on text format:
./ns3 buils 2>&1 > log.txt
And then provide me the log.txt file

@Furkkaya
Copy link

Hello @Furkkaya,

I pushed a new commit on the dev branch of the satellite module: 57fc7a6 (https://github.com/sns3/sns3-satellite/tree/57fc7a66d1a480cb4437fb121072e6dac50e718d). This should solve the issues of your last post. Can you try this one ? If there are additional errors, please provide them on text format: ./ns3 buils 2>&1 > log.txt And then provide me the log.txt file

I think it worked, my log.txt file is here, thank you very much. I am using version NS3.42.

log.txt

@bastientauran
Copy link
Contributor

You log file tells that it went well. Could you launch the test suite (./test.py) ?

@Furkkaya
Copy link

You log file tells that it went well. Could you launch the test suite (./test.py) ?

I launched test suite and only got one crash.

Image

@bastientauran
Copy link
Contributor

Nice, the crashing test should be a detail, your platform it working, and you can do your work with it.

To help me understand this issue, you can launch this example alone and send me the output ?

./ns3 run sat-dama-onoff-sim-t9

Thanks

@Furkkaya
Copy link

Furkkaya commented Feb 21, 2025

Nice, the crashing test should be a detail, your platform it working, and you can do your work with it.

To help me understand this issue, you can launch this example alone and send me the output ?

./ns3 run sat-dama-onoff-sim-t9

Thanks

I launched this example and got this error. Thank you very much too.

Image

@bastientauran
Copy link
Contributor

Oups little mistake, the command should be (I forget the 'n' a the end):

./ns3 run sat-dama-onoff-sim-tn9

@Furkkaya
Copy link

I also missed the "n", I launched it again and got this error.

Image

@bastientauran
Copy link
Contributor

Ok for some reason it crashes. It can be because you are on a VM and this on requires a lot of resource.

If you do not need this particular example, we can consider you platform is working.

@Furkkaya
Copy link

Yes, I think I don't need this example, thank you very much for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants