installing the mysqlclient library in mac OS

278
March 30, 2018, at 2:05 PM

I'm trying to demo rust database program using diesel.rs library.

I'm following the getting started steps here.

As mentioned in this page, I got below error while running the command 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)

The solution is given in the next step as well in same page as below.

   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.

But I don't know how to do this in my mac OS. I tried the below commands.

brew install mysqlclient
brew install lmysqlclient

But brew couldn't find any such repo. Please help me how to resolve this error and install mysqlclient library in my mac OS.

READ ALSO
How to count total hours

How to count total hours

Following is my table

144
Data insert as null through from the cursor in mysql

Data insert as null through from the cursor in mysql

I have created a stored procedure for data insert from a cursor in mysqlOnce the data were inserted to the table it is inserted as null

122
Display Data 3 table on mysql

Display Data 3 table on mysql

I would like to ask all my friends for help on my case

116