Raj*_*jan 2 mysql rust rust-cargo
我正在尝试使用diesel.rs库演示rust数据库程序.
我正在按照这里的入门步骤进行操作.
如本页所述,运行命令时出现以下错误cargo install diesel_cli.
note: ld: library not found for -lmysqlclient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
该解决方案也将在下一步中给出,如下所示.
You can resolve this issue by either installing the library (using the usual way to do this depending on your operating system) or by specifying the backends you want to install the CLI tool with.
Run Code Online (Sandbox Code Playgroud)
但我不知道如何在我的Mac OS中这样做.我尝试了以下命令.
brew install mysqlclient
brew install lmysqlclient
Run Code Online (Sandbox Code Playgroud)
但酿造找不到任何这样的回购.请帮我解决这个错误,并在我的mac OS中安装mysqlclient库.
| 归档时间: |
|
| 查看次数: |
3538 次 |
| 最近记录: |