mlc-ai/tokenizers-cpp

compile failed

Closed this issue · 1 comments

Command:
mkdir build
cd build
cmake ..
make

root@k8s-master-102-devel:/code/tokenizers-cpp/build# make
[ 2%] Building CXX object CMakeFiles/tokenizer_cpp_objs.dir/src/sentencepiece_tokenizer.cc.o
[ 4%] Building CXX object CMakeFiles/tokenizer_cpp_objs.dir/src/huggingface_tokenizer.cc.o
[ 6%] Building CXX object CMakeFiles/tokenizer_cpp_objs.dir/src/rwkv_world_tokenizer.cc.o
[ 6%] Built target tokenizer_cpp_objs
[ 8%] Generating release/libtokenizers_c.a
no such file or directory
make[2]: *** [CMakeFiles/tokenizers_c.dir/build.make:71: release/libtokenizers_c.a] Error 1
make[1]: *** [CMakeFiles/Makefile2:191: CMakeFiles/tokenizers_c.dir/all] Error 2
make: *** [Makefile:156: all] Error 2

problem solved after installing rust.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh