embedding.cpp icon indicating copy to clipboard operation
embedding.cpp copied to clipboard

Cargo needs to be installed before running the make command

Open ivanorsolic opened this issue 1 year ago • 1 comments

When following the README instructions on Ubuntu 20.04 on Windows 11 (WSL2), the make command fails:

[  7%] Built target ggml
[  8%] Generating release/libtokenizers_c.a
no such file or directory
make[2]: *** [tokenizers/CMakeFiles/tokenizers_c.dir/build.make:71: tokenizers/release/libtokenizers_c.a] Error 1
make[1]: *** [CMakeFiles/Makefile2:343: tokenizers/CMakeFiles/tokenizers_c.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

The problem is solved by installing Cargo with: sudo apt install cargo

I recommend adding the step to the README.md to make sure Cargo is installed on all machines.

ivanorsolic avatar Jan 29 '24 18:01 ivanorsolic