<div dir="ltr"><div>Hi Yitong,</div><div><br></div><div>You need to add an entry to the "wscript" file in the same directory you run ./waf. You can modify the script to make it either run on "/scratch" or "/examples".</div><div><br></div><div>Best,</div><div>Mark<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2024 at 8:14 PM 李怿曈 Yitong LI via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hi Junxiao,
<div><br>
</div>
<div>I’m confused about which directory should I store my .cpp in order to run it. I’ve tried putting them into "/scratch” and “/src/ndnSIM/examples”, my program is named “non-first.cpp”. Then I use "./waf --run ndn-first” to run it. An error shows that “program
’non-first’ not found;”</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Caster<br id="m_821376407121119106lineBreakAtBeginningOfMessage">
<div><br>
<blockquote type="cite">
<div>2024年3月21日 下午5:00,Junxiao Shi <<a href="mailto:shijunxiao@arizona.edu" target="_blank">shijunxiao@arizona.edu</a>> 写道:</div>
<br>
<div>
<div>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="border:0px;display:table;width:100%;table-layout:fixed;float:none" align="left">
<tbody style="display:block">
<tr>
<td valign="middle" width="1px" bgcolor="#A6A6A6" cellpadding="7px 2px 7px 2px" style="padding:7px 2px;background-color:rgb(166,166,166)">
</td>
<td valign="middle" width="100%" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 15px" style="width:100%;background-color:rgb(234,234,234);padding:7px 5px 7px 15px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-size:12px;font-weight:normal;color:rgb(33,33,33);text-align:left">
<div>你通常不会收到来自 <a href="mailto:shijunxiao@arizona.edu" target="_blank">shijunxiao@arizona.edu</a> 的电子邮件。<a href="https://aka.ms/LearnAboutSenderIdentification" target="_blank">了解这一点为什么很重要</a></div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#EAEAEA" cellpadding="7px 5px 7px 5px" style="width:75px;background-color:rgb(234,234,234);padding:7px 5px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-size:12px;font-weight:normal;color:rgb(33,33,33);text-align:left">
</td>
</tr>
</tbody>
</table>
<div>
<div dir="auto">Hi Yitong
<div dir="auto"><br>
</div>
<div dir="auto">Try installing this package:</div>
<div dir="auto">sudo apt install python-is-python3</div>
<div dir="auto"><br>
</div>
<div dir="auto">Yours, Junxiao</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Mar 21, 2024, 03:41 李怿曈 Yitong LI <<a href="mailto:yitongli@hkust-gz.edu.cn" target="_blank">yitongli@hkust-gz.edu.cn</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p style="text-align:center"><font color="red"><strong>External Email</strong><br>
</font></p>
<span style="font-size:14.6667px">Hi,</span>
<div><span style="font-size:14.6667px"><br>
</span></div>
<div><span style="font-size:14.6667px">I’ve installed ndn successfully using “</span><span style="font-size:14.6667px;background-color:rgb(238,255,204)">./waf configure --disable-python --enable-examples</span><span style="font-size:14.6667px">” suggested
in the documentation. When I tried running example using “./waf —run=ndn-simple”, it gave an error. It says “/usr/bin/env: ‘python’: No such file or directory”. I’ve exported the environment variable before.</span></div>
<div><span style="font-size:14.6667px"><br>
</span></div>
<div><span style="font-size:14.6667px">Thanks,</span></div>
<div><span style="font-size:14.6667px">Caster</span></div>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" rel="noreferrer" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">https://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div>