Skip to content

Cargo needs to be installed before running the make command #2

@ivanorsolic

Description

@ivanorsolic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions