LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   hai (https://www.linuxquestions.org/questions/linux-software-2/hai-861977/)

nirmal r 02-11-2011 01:01 AM

hai
 
im nirmal r ..i have installed ns2 in redhat 5.i have added an cc file to an tcl script and while compiling the make in terminal it shows me like this..(i have tried to enable the propertise but i con't)

[nalina@localhost ns-2.34]$ make
g++ -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/root/ns-allinone-2.34/tclcl-1.19 -I/root/ns-allinone-2.34/otcl-1.13 -I/root/ns-allinone-2.34/include -I/root/ns-allinone-2.34/include -I/root/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o emulate/net-ip.o emulate/net-ip.cc
cc1plus: error: /root/ns-allinone-2.34/tclcl-1.19: Permission denied
cc1plus: error: /root/ns-allinone-2.34/otcl-1.13: Permission denied
cc1plus: error: /root/ns-allinone-2.34/include: Permission denied
cc1plus: error: /root/ns-allinone-2.34/include: Permission denied
cc1plus: error: /root/ns-allinone-2.34/include: Permission denied
make: *** [emulate/net-ip.o] Error 1

i need solution for the problem.....

regards
nirmal r

EricTRA 02-11-2011 01:14 AM

Hello and welcome to LinuxQuestions,

As the error states:
Code:

cc1plus: error: /root/ns-allinone-2.34/tclcl-1.19: Permission denied
Try using sudo with your command:
Code:

sudo make
and see where that gets you. If you get an error that your user is not in the sudoers list, then you need to add it as root with visudo.

Kind regards,

Eric


All times are GMT -5. The time now is 12:22 AM.