[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help! Can not do make depend!
Ying Sun wrote:
> After successfully installed NS and passed all validating tests, I tried
> to add a new header to the NS packet. I followed each step mentioned in
> Mr. Marc Greis's tutorial to modify the necessary files. After that, I
> tried to recompile the whole thing. At the first time, when I typed 'make
> depend', it told me that no rule to make 'emulate/nat.cc'. I checked the
> "Makefile", and I thought it should be 'net.cc', not 'nat.cc'. I changed
> it, and redo the make depend. This time I got "command not found" error!
> Apparently a "./conf/mkdep" file is required to do the work, but I
> couldn't find it in the ns-2 directory. Did I miss something here? Please
> tell me what should I do?
It is 'nat.cc', not 'net.cc', but the fact that you thought it would be
'net.cc' and the error message leads me to the conclusion that you have
somehow deleted the file 'emulate/nat.cc' during your modifications. I
have no clue how you could have done that, but that seems to be the
problem. The only solution that I see is that you download ns again and
extract the 'nat.cc' file from it. Of course, first you should check if
I am wrong and you do have 'nat.cc' somewhere. :)
I hope that helps,
Marc
--
Marc Greis [email protected]