error while executing make file


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting error while executing make file
# 1  
Old 09-21-2012
error while executing make file

hi
i am facing a strange error...



whenever i try to execute make file it gives the following error
Code:
bash-3.00$ make
usa0300uz1128
sh: syntax error at line 1: `end of file' unexpected
mksh: Fatal error: The command `if [ "${ORACLE_HOME}" = "/u01/apps/oracle/product/11.2.0.3.2012Q3" ] ;  then  echo "${COMMON}/src/rules/rules_11.2.0.3.2012Q3";  elif [ "${ORACLE_HOME}" = "/u01/apps/oracle/product/10.2.0.4.2010Q1" ] ;  then  echo "${COMMON}/src/rules/rules_10.2.0.4.2010Q1"; \ ' returned status `512'
Current working directory: /apps/dvl/common/src/obj
*** Error code 1
The following command caused the error:
echo `uname -n`;cd obj ; make -f Makefile all
make: Fatal error: Command failed for target `obj'

Please tell me what should i do to make it compile Smilie

thanks a lot in advance
# 2  
Old 09-21-2012
Code:
if ...; then ...; elif ...; then...; fi

--
Bye
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Error while executing switch case for find and replace specific file. Help Me...

case "$inputs" in sapte) find /pools/home_unix/sapte/work/models/model -name "*.xml" exec rm -i {} \;; ckm1) find /pools/home_unix/ckm1/work/models/model -name "*.xml" exec rm -i {} \;; I am getting error like as below. ./menu1.sh: line 144: syntax error near unexpected token `)'... (4 Replies)
Discussion started by: lathigara
4 Replies

2. Linux

Error when using make file.

hello, i want to execute hello world using cross compiler ppc_4xx-gcc. i have this makefile: CC= $(shell which ppc_4xx-gcc) #CC=g++ CXXFLAGS=-cpp -Wall LDFLAGS= SOURCES=main.cpp hello.h OBJECTS=$(SOURCES:.cpp=.o) EXECUTABLE=hello all: $(SOURCES)... (5 Replies)
Discussion started by: walidaydi
5 Replies

3. Programming

No error but not executing

Hi friends When I compile thic program by gcc filename, it shows no error. But after that if I execute the program gets stuck. Can any one find out. #include<stdio.h> #include<sys/types.h> #include<sys/mman.h> #include<stdlib.h> #include<fcntl.h> #include<sys/stat.h>... (6 Replies)
Discussion started by: gokult
6 Replies

4. Shell Programming and Scripting

Make file error

I am new to using make command and I keep getting this error time and again please help me Make file is as follows #ARCH := $(shell uname)# # ifeq ($(ARCH), SunOS) DEFINES = -KPIC -DSVR4 -DSOLARIS -DSYSV -D__svr4 -D__svr4__\ -D_REENTRANT -DSOLARIS2_5 -D_SVID_GETTOD -DXP_UNIX -UDEBUG... (1 Reply)
Discussion started by: c.operatingsys
1 Replies

5. Programming

Error with Make File

Hi All, I am using GNU Make and i have a peculiar kind of error, i am not able to understand, Firstly have a look at the make file used by me CFLAGS=-c -Wall CC=gcc .PHONY:clean OBJ=./obj SRC=./src INC=./inc exec: $(OBJ)/*.o $(CC) $^ -o $@ %.o: $(SRC)/*.c $(CC) $(CFLAGS)... (1 Reply)
Discussion started by: niranjanvg
1 Replies

6. Programming

makeutility: how to get the make-file name inside of the make-file?

How I can get the current make-file name in a make-file So, if I run make with specified file:make -f target.mak is it possible to have the 'target' inside of the that 'target.mak' from the file name? (2 Replies)
Discussion started by: alex_5161
2 Replies

7. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

8. Linux

Error in issuing a make and make install

Hi, Recently I install a package and try to do a make and make install. However, in the make it gives me below error:- make:Nothing to be done for 'install-exec-am' make:Nothing to be done for 'install-data-am' Can anyone please explain to me what does this mean? I have been trying... (1 Reply)
Discussion started by: ahjiefreak
1 Replies

9. Programming

Error while running C++ make file

The problem is that the original program was compiled using v5.0 MQ client but now we are using MQ client v5.3. Had modified the "make file" options as follows but still i could see the errors. #CLIENT_V5_LIBS = -limqb23ss -limqc23ss -lmqic -lmqmcs -lnsl -ldl CLIENT_V5.3_LIBS =... (1 Reply)
Discussion started by: hram
1 Replies

10. Shell Programming and Scripting

How can I make the for command check to see if a file is empty before executing?

Here is the command in question for f in $(<uploads); do . I only want this to execute if uploads is not empty. If uploads is empty I want the script to quit, actually before the for command. If its not apparent uploads is a text file. Chris (3 Replies)
Discussion started by: chrchcol
3 Replies
Login or Register to Ask a Question