Compiling ForumRS - ryandw11/ForumRS GitHub Wiki
Windows
- Install MYSQL.
Diesel (a crate that ForumRS uses) requires Mysql server lib files to compile properly. - You will now need to create an environment variable named
MYSQLCLIENT_LIB_DIR
that points to the location ofmysqlclient.lib
. This is usually found in the MySQL Server folder in Program Files. Example:C:\Program Files\MySQL\MySQL Server 8.0\lib
where8.0
is your MySQL version.- You can use the following command to do that:
setx MYSQLCLIENT_LIB_DIR "C:\Program Files\MySQL\MySQL Server 8.0\lib"
- You can use the following command to do that:
- You will now need to install SQLite3.
- Download the source code from sqlite.org and extract it in a location for SQLite3. (Ex:
C:\SQlite3
) - Download the binary for Windows from sqlite.org (under the header named
Precompiled Binaries for Windows
) and extract it in the same location as the source code. - Open Developer Command Prompt for VS 2019 by searching for it. (You can use an older or newer version of VS).
- Navigate to where you stored the binary and source code.
- Run
lib /DEF:sqlite3.def /OUT:sqlite3.lib /MACHINE:x64
- Download the source code from sqlite.org and extract it in a location for SQLite3. (Ex:
- You will need to create another environment variable named
SQLITE3_LIB_DIR
that points to the location of the directory where you put Sqlite3.- You can use the following command to do that:
setx SQLITE3_LIB_DIR "C:\Sqlite3"
- Restart your computer so the environment variable will take effect.
- Run
cargo build
orcargo run