make file error

CodeLite installation/troubleshooting forum
jayarayee
CodeLite Curious
Posts: 3
Joined: Thu Feb 16, 2017 11:11 pm
Genuine User: Yes
IDE Question: c++
Contact:

make file error

Post by jayarayee »

mac version: macOS Sierra version 10.12.3
codelite version 10.0.0
c++ comelier xCode (clang-800.0.42.1)

Code: Select all

[#include <iostream>

int main()
{
   cout << "Hello World" << endl;
    return 0;
}]


when ever i build it cannot build it just shows me this: 

/bin/sh -c '/usr/bin/make -j8 -e -f Makefile'
----------Building project:[ bag - Debug ]----------
/usr/lib/libcmph.dylib: /usr/lib/libcmph.dylib: cannot execute binary file
make[1]: *** [Debug/main.cpp.o.d] Error 126
make: *** [All] Error 2
====1 errors, 0 warnings====
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: make file error

Post by eranif »

what happens when you run this from the command line?

Code: Select all

/bin/sh -c '/usr/bin/make -j8 -e -f Makefile'
What happens when you run:

Code: Select all

file /usr/bin/make 
Eran
Make sure you have read the HOW TO POST thread
jayarayee
CodeLite Curious
Posts: 3
Joined: Thu Feb 16, 2017 11:11 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: make file error

Post by jayarayee »

when i run through the commend line i got this massage on command line:

make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.

when i run this "file/usr/bin/make"
i got the massage in my terminal:
-bash: file/usr/bin/make: No such file or directory
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: make file error

Post by eranif »

jayarayee wrote:when i run this "file/usr/bin/make"
i got the massage in my terminal:
-bash: file/usr/bin/make: No such file or directory
There is a space between "file" and "/usr/bin/make"
make: Makefile: No such file or directory
make: *** No rule to make target `Makefile'. Stop.
You should be in the workspace directory before you run this
Make sure you have read the HOW TO POST thread
jayarayee
CodeLite Curious
Posts: 3
Joined: Thu Feb 16, 2017 11:11 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: make file error

Post by jayarayee »

when i run this on console:
<file /usr/bin/make>
i got this:
</usr/bin/make: Mach-O 64-bit executable x86_64>
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: make file error

Post by eranif »

and what happens when you run the makefile?
Can you post the makefile in the forum?
Make sure you have read the HOW TO POST thread
Post Reply