Error during installing diesel.rs

= note: /usr/bin/ld: cannot find -lpq
collect2: error: ld returned 1 exit status

error: aborting due to previous error

error: failed to compile diesel_cli v1.4.0, intermediate artifacts can be found at /tmp/cargo-installwfLipD

Caused by:
Could not compile diesel_cli.

how to solve it....

You must install libpq on your system first. It may be in a package like postgresql-devel.

1 Like