Make O Error 127 Ignored
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow make error 127 linux the company Business Learn more about hiring developers or posting ads with us Stack Overflow makefile error 127 command not found Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of make error 127 ubuntu 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Makefile Error : Command Not Found- while creating a shared library up vote 0 down vote favorite 1 make error 127 windows I have 4 .c files hello.c,here.c,bye.c and main.c. One header file mylib.h The contents are as follows hello.c #include
Makefile Command Not Found
is : Makefile #Which Compiler CC = gcc #Compiler Flags CFLAGS = - Wall -c -fPIC DYNLINKFLAGS = -shared -W1,-soname,$@.0 PROG = main PROG_OBJS = main.c LIB = mylib LIB_FILES = libmylib.so LIB_MINOR = $(LIB_FILES).0.1 LIB_RELEASE = $(LIB_MINOR).0 LIB_OBJS = hello.o here.o bye.o PATH = /home/srinivasa/cspp51081/labs/srinivasa.lab2.1 all: $(LIB_FILES) $(PROG) #Create Lib with this file $(LIB_FILES): $(LIB_OBJS) $(CC) $(DYNLINKFLAGS) $^ ln -sf $(LIB_RELEASE) $(LIB_MINOR) ln -sf $(LIB_MINOR) $@ ln -sf $@ $@.0 #Compiling main program and link with shared library $(PROG): $(PROG_OBJS) $(CC) -o $(PROG) $(PORG_OBJS) -l$(LIB) -L$(PATH) main.o: main.c hello.o: hello.c here.o: here.c bye.o: bye.c #clean files clean: rm -rf $(LIB_OBJS) $(LIB_FILES) $(LIB_RELEASE) $(LIB_MINOR) libmylib.so.0 Problem: When I execute the command make -f Makefile all I get the error: gcc -Wall -fPIC -c -o hello.o hello.c make: gcc: Command not found make: * [hello.o] Error 127 Questions : How do I resolve this? c linux makefile shared-libraries share|improve this question edited Oct 16 '10 at 5:17 asked Oct 16 '10 at 4:01 Eternal Learner 1,29782559 1 Are you sure that you have the file main.c in the same directory where you are running the make command? –Ziffusion Oct 16 '10 at 4:58 @Ziffusion - yeah very much. –Eternal Learner Oct 16 '10 at 5:03 @Ziffusion - THanks for the insightful
Error: 127 If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing
Make Error 2
messages, select the forum that you want to visit from the selection below. Welcome make: cc: command not found to Qt Centre. Qt Centre is a community site devoted to programming in C++ using the Qt framework. Over 90 percent of questions make command not found asked here gets answered. If you are looking for information about Qt related issue — register and post your question. You are currently viewing our boards as a guest which gives you limited access to view most http://stackoverflow.com/questions/3947622/makefile-error-command-not-found-while-creating-a-shared-library discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. + Reply to Thread Results 1 to 4 of 4 Thread: http://www.qtcentre.org/threads/6928-make-command-not-found-Error-127 make: command not found, Error: 127 Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 9th May 2007,05:41 #1 ct View Profile View Forum Posts View Blog Entries View Articles Intermediate user Join Date Feb 2006 Posts 91 Thanks 4 Qt products Platforms make: command not found, Error: 127 : command not found make: *** [appname] Error 127 I am using a linux box and the same makefile and the srcs work in my local computer as root, but when I try to upload it to a server then I get this error for that particular set of sources, its a CGI application in C. Other similar makefiles work like charm and I am having problem with this particular folder only. Applying my commonsense I did chmod -R 777 srcfolder but this didn't help I keep getting the error. I can use gcc,g++ and plld a front-end compiler and linker of C-files for prolog from the command line so there isn't much problem int that.The very thing that is amusing me is that a similar makefile in other directory under the same username works like a charm. Aggghhhh...I am getting frustrated.. here is the makefile if it is due to any error on this one #//////////////
team • Delete all board cookies • All times are UTC - 5 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group