WSL rust installation :
for permission purposes run the following command in your UBUNTU bash and not one in your IDE :
- sudo apt update
- sudo apt install build-essential
- sudo apt-get install -y libssl-dev
- sudo apt install pkg-config
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
When executing the following command you might encounter the following error mktemp: too few X's in template ‘rustup’
It might means that you've got no tmp folder in your root directory or that is read only.
Optionnal installation :
- Cargo watch : cargo install cargo-watch
Postgres :
installation :
- sudo apt-get remove postgresql
- sudo apt-get install postgresql
Start service : sudo service postgresql start Connect to postgres : sudo -u postgres psql
create/alter user :
- sudo -u postgres createuser
- (in postgres prompt) alter user with encrypted password ''
Diesel postgres feature installation :
- sudo apt install libpq-dev
- cargo install diesel_cli --no-default-features --features postgres
- diesel setup --database-url=postgres://postgres:password@localhost/postgres?sslmode=disable