make error

167 views
Skip to first unread message

barjinder singh sidhu

unread,
Apr 26, 2015, 12:35:33 AM4/26/15
to ns-u...@googlegroups.com
Hi Friend
 
when i am tring to execute make command it shows flowing, plz help to solve 

~/ns-allinone-2.35/ns-2.35$ make
/home/barjinder/ns-allinone-2.35/bin/tclsh8.5 bin/tcl-expand.tcl tcl/lib/ns-lib.tcl tcl/lib/ns-diffusion.tcl tcl/delaybox/delaybox.tcl tcl/packmime/packmime.tcl tcl/tmix/tmix.tcl tcl/tmix/tmix_delaybox.tcl | ../tclcl-1.20/tcl2c++ et_ns_lib > gen/ns_tcl.cc
/bin/sh: 1: cannot create gen/ns_tcl.cc: Permission denied
error writing "stdout": broken pipe
    while executing
"puts "### tcl-expand.tcl: begin expanding $name""
    (procedure "expand_file" line 2)
    invoked from within
"expand_file [file tail $name]"
    ("foreach" body line 5)
    invoked from within
"foreach name $argv {
set dirname [file dirname $name]
if {$dirname != "."} {
cd $dirname
expand_file [file tail $name]
cd $startupDir
} else ..."
    (file "bin/tcl-expand.tcl" line 65)
make: *** [gen/ns_tcl.cc] Error 2

knudfl

unread,
Apr 26, 2015, 12:11:57 PM4/26/15
to ns-u...@googlegroups.com
Hi.

»» cannot create gen/ns_tcl.cc: Permission denied ««  :
"Permission denied" happens when you unpack ns-allinone-2.35.tar.gz with a Windows© tool.
( Or by using  'sudo'  /  root  for the unpack.)

To preserve all the file settings, please unpack a new ns-allinone-2.35.tar.gz with $ tar.
Preferably an updated version like ns-allinone-2.35_gcc482.tar.gz  ( Nov 2014 )  :
In /home/[name]/new-folder/   ( And that "folder/" cannot be the Desktop/ ) → →
→   $ tar xvf ns-allinone-2.35_gcc482.tar.gz

*   ``ns-allinone-2.35_gcc482.tar.gz´´ can use all gcc/g++ versions, 4.4.x ... 5.1.0 .
Link  https://drive.google.com/file/d/0B7S255p3kFXNSGJCZ2YzUGJDVk0/view?usp=sharing

**   You shouldn't use 'make' in ns-2.35/ . Is known to fail.
**   The command './install' in the top directory = ns-allinone-2.35/ takes care of the 'make depend' and 'make' in ns-2.35/.

-

knudfl

unread,
Apr 26, 2015, 3:44:22 PM4/26/15
to ns-u...@googlegroups.com
Correction :

The command './install' in the top directory = ns-allinone-2.35/ takes care of  :
{ ./configure &&  make depend && make } in ns-2.35/.


-

barjinder singh sidhu

unread,
Apr 26, 2015, 10:08:10 PM4/26/15
to ns-u...@googlegroups.com
Hi knudfl 
 
I am using ns2 from last two month but problem come last day. you really think problem is due to unpack. then its work fine before

hellozeyu

unread,
Apr 26, 2015, 11:34:41 PM4/26/15
to ns-u...@googlegroups.com
I think most permission denied errors can be fixed by using sudo. If it doesn't work, plz tell us which file have you modified. 

knudfl

unread,
Apr 27, 2015, 11:51:10 AM4/27/15
to ns-u...@googlegroups.com
@barjinder singh sidhu ,  Hi.

Which "Linux OS" are you using ?  ?

-

barjinder singh sidhu

unread,
Apr 27, 2015, 1:16:14 PM4/27/15
to ns-u...@googlegroups.com
Ubuntu 14.04


On Sunday, 26 April 2015 10:05:33 UTC+5:30, barjinder singh sidhu wrote:
Reply all
Reply to author
Forward
0 new messages