[ndnSIM] Bug Report and Fix: std::optional Not Recognized During ndnSIM Installation on Ubuntu 22.04
Sirapop Theeranantachai
sirapop741 at gmail.com
Wed Aug 7 16:05:43 PDT 2024
Hi Mohammad,
Thank you for suggesting a fix to make ndnSIM work in the Ubuntu 22.04
environment. If you encounter any other problems, we would appreciate it if
you could report them (and possibly submit a pull request) through Redmine.
This will help ensure that the issues receive the attention they need.
You can access the project on Redmine here: ndnSIM on Redmine
<https://redmine.named-data.net/projects/ndnsim>.
Best regards,
Mark
On Mon, Aug 5, 2024 at 1:08 PM Mohammad Reza Shakournia via ndnSIM <
ndnsim at lists.cs.ucla.edu> wrote:
> Dear ndnSIM Community,
>
> My name is Mohammad Reza Shakoutnia, and I am a PhD candidate in Computer
> Science at the University of Tehran, Iran. I hope this message finds you
> well. I am writing to report a bug I encountered while installing ndnSIM on
> Ubuntu 22.04, and to share a solution that might benefit others facing the
> same issue.
>
> *Issue Description:* During the installation process, after running the
> ./waf command, I received an error indicating that the std::optional
> template was not recognized. This error prevented the successful
> compilation and installation of ndnSIM.
>
> *Solution Implemented:* To resolve this issue, I added the following line
> at the beginning of the scheduler.hpp file located in the
> ns3/ndnSIM/ndn-cxx/util directory:
>
> #include <optional>
>
> This inclusion resolved the compilation error related to std::optional.
>
> *Steps to Replicate:*
>
> 1. Set up a fresh installation of Ubuntu 22.04.
> 2. Follow the standard installation procedure for ndnSIM.
> 3. Run the ./waf command and observe the mentioned error.
>
> *Suggested Actions:* It may be beneficial for the maintainers to include
> this header file in future releases to ensure compatibility with Ubuntu
> 22.04 environments, preventing similar issues for other users.
>
> I appreciate your attention to this matter and am happy to provide any
> further details if needed. Thank you for your ongoing support and
> development of ndnSIM.
>
> Best regards,
>
> *ــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــــMohammad
> Reza Shakournia*
> PhD Candidate in Computer Science,
> Member of Router Laboratory,
> Electrical and Computer Engineering Department,
> University of Tehran.
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20240807/81041070/attachment.htm>
More information about the ndnSIM
mailing list