Open brianbaquiran opened 4 years ago
RuntimeError: cargo not found in PATH. Please install rust (https://www.rust-lang.org/tools/install) and try again
Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
After accepting the default option, you should see the success message:
stable installed - rustc 1.40.0 (73528e339 2019-12-16)
Rust is installed now. Great!
To get started you need Cargo's bin directory ($HOME/.cargo/bin) in your PATH
environment variable. Next time you log in this will be done
automatically.
To configure your current shell run source $HOME/.cargo/env
Run source $HOME/.cargo/env
to add the necessary environment variables and extend the PATH
.
bash: protoc: command not found
Typing protoc
into the shell gives:
Command 'protoc' not found, but can be installed with:
sudo snap install protobuf # version 3.9.0, or
sudo apt install protobuf-compiler
See 'snap info protobuf' for additional versions.
Install protoc:
sudo apt install protobuf-compiler
#include "portaudio.h"
^~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Install the portaudio dev package:
sudo apt install portaudio19-dev
Makefile:35: recipe for target '.build/js' failed
make[1]: *** [.build/js] Error 127
make[1]: Leaving directory '/home/brian/Code/anki/qt'
Makefile:79: recipe for target 'check' failed
make: *** [check] Error 2
Install npm :
sudo apt install npm
After installing npm
the make check
should run completely: All checks passed!
python setup.py -q bdist_wheel
rsync -a dist/*.whl ../dist/
make[1]: Leaving directory '/home/brian/Code/anki/qt'
bash: line 2: rename: command not found
Makefile:99: recipe for target 'add-buildhash' failed
make: *** [add-buildhash] Error 127
Install the rename
command: sudo apt install rename
At this point I was able to run make check
, make build
and ./run
I'm trying to get to a successful
make check
execution, but haven't installed the dependencies listed inREADME.development
.I'll document the process here.