Comments (1)
You miss a required dependency.
If you run into an error like:
note: ld: library not found for -lmysqlclient >clang: error: linker command failed with exit >code 1 (use -v to see invocation)
This means you are missing the client library needed for a database backend – mysqlclient in this case. You can resolve this issue by either installing the library (using the usual way to do this depending on your operating system) or by excluding the undesired default library with the --no-default-features flag.
For example, if you only have PostgreSQL installed, you can use this to install diesel_cli with only PostgreSQL:
cargo install diesel_cli --no-default-features --features postgres
See the getting started guide for details.
from diesel.rs-website.
Related Issues (20)
- Https redirect HOT 1
- Format wast view screen real estate HOT 1
- Update the getting started guide to diesel 2.0 HOT 1
- Update the "All about updates" guide to diesel 2.0 HOT 1
- Update the "All about inserts" guide to diesel 2.0 HOT 5
- Update the "Composing applications with diesel" guide to diesel 2.0 HOT 1
- Update the "Schema in depth" guide to diesel 2.0
- Update the "Extending diesel" guide to diesel 2.0
- Update the "Configuring diesel cli" guide to diesel 2.0
- Issues building site with fresh repository clone on MacOS HOT 5
- Improve website by telling what the project is about HOT 1
- GH action/precompiled binaries HOT 2
- Community projects HOT 3
- Footer outdated
- Build with a more recent version of pandoc ( > 2.11 ) HOT 1
- Feature Request: impl<'a, Parent, Child> BelongingToDsl<(&'a [Parent], &'a [Parent])> for Child HOT 1
- returning_clauses_for_sqlite_3_35 flag not working HOT 1
- Typo in migration file name HOT 1
- The Getting Started Guide should have an example for getting single item HOT 5
- Trivial "SELECT 1" is absurdly painful HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from diesel.rs-website.