Click here to Skip to main content
15,887,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a make file for compiling stanalone executable. I am instructed to type "make all" in command window. May I know what is this command and how it should be used. While I typed this command in terminal window, I am getting following error

compile_mg1g1.ksh # run mg1g1 compile script
/bin/sh: compile_mg1g1.ksh: command not found
make: *** [lib] Error 127

somebody please help me what is this?????
Posted

'make all' simply tells the make tool to build the target 'all' in the makefile (usually called 'Makefile'). You may have a look at such file in order to understand how the source code will be processed.
As about the error you are getting, it looks the compile_mg1g1.ksh shell script is missing.
 
Share this answer
 
Dear CPallini,

Thanks a lot CPallini for the answer. it is useful. But "compile_mg1g1.ksh" is avilable in the project folder and I excuted this file in terminal. I specified the make file code in which compile_mg1g1 has been mentioned. In this situation, how can I know where is the error and how it should move ahead???? waiting for your reply.............

makefile
---------
lib: FORCE compile_mg1g1.ksh # run mg1g1 compile script
 
Share this answer
 
You need to check your path and your local directory tree for the shell script file compile_mg1g1.ksh.

However, given the description of your problem I am guessing that you are trying to run this in a command window on a Windows system, in which case it will not work. Files with an extension of ksh are Korn shell script files which needs to be run on a UNIX system, or in a UNIX emulator (such as Cygwin[^]) on Windows.

Note: please do not add comments or qeustions as "Solutions", use the Have a Question or Comment? link.
 
Share this answer
 
Comments
Ajain A K 7-Feb-13 7:36am    
Dear Richard,

Okay, You are absolutly right. That is a great answer. My system is windows XP only.

Recently it has been connected to remote Linux machine(RedHat 2.6.9 - 42) via Exceed

software. I am very new to Linux platform. As I said my pc connected to Linux via

Exceed and kept my project in Linux destop. This solution I am trying to execute, In

this case, I just want to know

Am I trying to work correct?

As you said " ksh are Korn shell script files which needs to be run on a UNIX system "

Can I proceed my work with ksh file in Linux?


Please advice me ASAPP... if it won't working, I can stop working in this way.


Note: sorry I posted my reply in last time in wrong way but if I want to post
any code with "Comment" option it will affect the alignment(not good to read)
attachment also I am not seeing any option here.

Thanks a lot, waiting for your reply.
Richard MacCutchan 7-Feb-13 7:39am    
Assuming you are logging in to the Linux system and running the make command there, then it should work. However, if the Linux system cannot find that shell script file then you need to investigate why.
Ajain A K 7-Feb-13 8:38am    
Dear Richard,

Thank you very much for the answer, useful.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900