Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running make #751

Closed
Snowplou opened this issue Apr 3, 2023 · 3 comments
Closed

Error when running make #751

Snowplou opened this issue Apr 3, 2023 · 3 comments

Comments

@Snowplou
Copy link

Snowplou commented Apr 3, 2023

I installed CMake, but when I run make, I get this error:

/bin/sh: line 1: cc: command not found
/bin/sh: line 1: g++: command not found
I llama.cpp build info:
I UNAME_S: MSYS_NT-10.0-22621
I UNAME_P: unknown
I UNAME_M: x86_64
I CFLAGS: -I. -O3 -DNDEBUG -std=c11 -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno-unused-function -march=native -mtune=native
I CXXFLAGS: -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wno-unused-function
I LDFLAGS:
I CC:
I CXX:

cc -I. -O3 -DNDEBUG -std=c11 -fPIC -Wall -Wextra -Wpedantic -Wcast-qual -Wdouble-promotion -Wshadow -Wstrict-prototypes -Wpointer-arith -Wno-unused-function -march=native -mtune=native -c ggml.c -o ggml.o
make: cc: No such file or directory
make: *** [Makefile:142: ggml.o] Error 127

Is there something else that I need to install? I am running this on Windows 11.

@cmp-nct
Copy link
Contributor

cmp-nct commented Apr 4, 2023

well no c and c++ compilers were found as your first two lines show.
a makefile only guides linker and compiler execution, you'll need to install that as well

The first error line in google will give you the right answer with the first hit

@prusnak prusnak closed this as not planned Won't fix, can't repro, duplicate, stale Apr 4, 2023
@made-by-chris
Copy link

made-by-chris commented Apr 5, 2023

can you check for C:\mingw64 ? you probably need to install mingw to have access to c/c++ etc build tools.
You could try getting "chocolatey" on your machine and then installing mingw through that

After that add environment variables > system > path for C:\mingw64 and C:\mingw64\bin entries

@zhuzhuppx
Copy link

on ubuntu ,run this will be ok

sudo apt install build-essential

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants