New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to compile diesel_cli [v0.6.1] #286

Closed
TheOpenDevProject opened this Issue Apr 20, 2016 · 6 comments

Comments

Projects
None yet
4 participants
@TheOpenDevProject

TheOpenDevProject commented Apr 20, 2016

error: linking withccfailed: exit code: 1

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

Just trying to install it via the recommended cargo install diesel_cli

OS: Ubuntu 15.10 sqlite3 installed.

@sgrif

This comment has been minimized.

Member

sgrif commented Apr 20, 2016

Do you have PG installed? If so, you need to make sure that pg_config is on the path, or that libpq is in /usr/local/include or some other path that ld can see. If you don't want PG support, then run cargo install diesel_cli --no-default-features --features sqlite

For SQLite, do you have pkg-config installed? Does sqlite3 show up in pkg-config --list-all?

@sgrif

This comment has been minimized.

Member

sgrif commented Apr 21, 2016

Closing as there's nothing actionable here. I'm happy to help you get your system set up properly, but this is likely a configuration problem. If there is a bug, it's either in pq-sys or libsqlite3-sys

@sgrif sgrif closed this Apr 21, 2016

@TheOpenDevProject

This comment has been minimized.

TheOpenDevProject commented Apr 21, 2016

@sgrif Sorry about the delayed response. Not a problem, Do you hang out in any IRC channels on mozilla or freenode?

@sgrif

This comment has been minimized.

Member

sgrif commented Apr 21, 2016

I'm sometimes in #rust, but the best way to reach me is in our gitter room. Link is in the README

@AngelMunoz

This comment has been minimized.

AngelMunoz commented Dec 9, 2017

hey sorry old issue, but what if I run a postgres image on docker? naturally pg won't be on my path; what's the course of action then? just plain install?

@killercup

This comment has been minimized.

Member

killercup commented Dec 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment