'note: /usr/bin/ld: cannot find -lpq Rust
il" "-ldl" "-lutil" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil" = note: /usr/bin/ld: cannot find -lpq collect2: error: ld returned 1 exit status
error: aborting due to previous error
error: could not compile actix-todo
.
To learn more, run the command again with --verbose.
Solution 1:[1]
It looks like you are missing the postgresql-libs
package. Install it using your systems package manager.
Solution 2:[2]
For me I needed to install libpq-dev
. You can install it on linux like this:
sudo apt install libpq-dev
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Stiv |
Solution 2 | Joe Gasewicz |