Ok, so kind of getting nowhere here. Before I posted a problem with my Mac M1 having linker issues with Rust Diesel and got nothing. So I spun up an Ec2 instance and tried to run this crate here and got the following:
error: linking with `cc` failed: exit status: 1
...
= note: /usr/bin/ld: cannot find -lpq
I've installed the following:
sudo yum update -y
sudo yum install git -y
sudo yum groupinstall "Development Tools" -y
sudo yum install cmake -y
sudo yum install postgresql-libs -y
Seriously, how are people managing to get this crate running?
libpq
on the EC2 but I did installpostgresql-libs
and I'm getting the same error. I also have these drivers on my mac but it results indyld: Symbol not found: _PQconnectdb
I have done postgres dev with python in the past, this diesel crate seems to be the most brittle thing I've ever worked with – Shluh