LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ns 2.31 Makefile cannot be edited (https://www.linuxquestions.org/questions/linux-newbie-8/ns-2-31-makefile-cannot-be-edited-4175473488/)

ty00016 08-15-2013 09:39 AM

ns 2.31 Makefile cannot be edited
 
Dear All,

I want to add a few lines in the Makefile, but it is read-only. Anyone knows how to change this? Thank you very much!

In the Makefile, find the line that says

OBJ_CC = \

In my system it is at line 164.

Step7: Copy the following lines and append it to OBJ_CC listing as shown

wcett/wcett_logs.o wcett/wcett.o \

wcett/wcett_rtable.o wcett/wcett_rqueue.o \

mac/macng.o mac/maccon.o\

mac/macngenhanced.o\


Regards,
Ting

knudfl 08-15-2013 09:54 AM

Welcome to LQ.

Don't know how your Makefile can have "read permissions" only ?

May be you by mistake have done a command with $ sudo <command>.
Then the files are owned by root, and you have no access.

Changing `owner` : $ sudo chown -R ty00016:ty00016 ns-2.31/*

Changing the Makefile permissions : $ cd ns-2.31/ && chmod 0644 Makefile
http://www.onlineconversion.com/html...calculator.htm
'man chmod' http://linux.die.net/man/1/chmod

-


All times are GMT -5. The time now is 04:38 PM.