manoj garu
manoj garu

Reputation: 163

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.

Upvotes: 5

Views: 2786

Answers (2)

Joe Gasewicz
Joe Gasewicz

Reputation: 1495

For me I needed to install libpq-dev. You can install it on linux like this:

sudo apt install libpq-dev

Upvotes: 2

Stiv
Stiv

Reputation: 163

It looks like you are missing the postgresql-libs package. Install it using your systems package manager.

Upvotes: 4

Related Questions