From 601e3d706a88a9d2f90bba92873dcb6e5a0b1fe5 Mon Sep 17 00:00:00 2001 From: theonekingboo Date: Thu, 4 Jan 2024 10:00:01 -0500 Subject: [PATCH 1/3] Fixed issues when compiling the program --- README.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6ded005..cdd2c45 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,21 @@ For planned features, please visit the [Github issue page](https://github.com/Ta You can download Windows, Linux and MacOS binaries in the [Github release section](https://github.com/Tarnadas/smmdb-client/releases) +Depending on your operating system, extract the file and remplace _YOUROPERATINGSYSTEM_ with your operating system + +Extract the file: `tar xzvf smmdb-client-YOUROPERATINGSYSTEM.tar.gz` + +Run `./smmdb` + +#### on Ubuntu + +If you are on ubuntu, run the following command: + +``` +wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb +sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb +``` + ### via Cargo You can install SMMDB Client via Cargo: @@ -29,7 +44,20 @@ It is recommended to install Cargo via [Rustup](https://rustup.rs/) Before installing the client, run the following commands: -`sudo apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip sudo libgtk-3-dev` +`sudo apt-get install cmake libfreetype6-dev libfontconfig1-dev xclip sudo libgtk-3-dev libssl-dev` + +You might also need to install the following: + +``` +wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb +sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb +``` + +#### MacOS prerequisites + +For Mac OS X, Run this command: + +`xcode-select --install` #### nightly install (all OSs) From 683a6a948f51bba89683d92545a6801a061644df Mon Sep 17 00:00:00 2001 From: theonekingboo Date: Thu, 4 Jan 2024 12:34:24 -0500 Subject: [PATCH 2/3] Fixed issues when compiling the program --- Cargo.lock | 11 +++++++++++ Cargo.toml | 1 + 2 files changed, 12 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 801d679..b5367d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2584,6 +2584,15 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" +[[package]] +name = "openssl-src" +version = "111.25.0+1.1.1t" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3173cd3626c43e3854b1b727422a276e568d9ec5fe8cec197822cf52cfb743d6" +dependencies = [ + "cc", +] + [[package]] name = "openssl-sys" version = "0.9.63" @@ -2593,6 +2602,7 @@ dependencies = [ "autocfg", "cc", "libc", + "openssl-src", "pkg-config", "vcpkg", ] @@ -3373,6 +3383,7 @@ dependencies = [ "indexmap", "lazy_static", "nfd2", + "openssl", "reqwest", "serde", "serde_json", diff --git a/Cargo.toml b/Cargo.toml index bf81248..ddbca7c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ serde = { version = "1", features = [ "derive" ] } serde_json = "1" serde_qs = "0.8" smmdb-lib = { version = "2", git = "https://github.com/Tarnadas/smmdb-lib.git", features = [ "save" ], package = "smmdb" } +openssl = { version = "0.10", features = ["vendored"] } [profile] [profile.dev] From 5ca59f8230ae6bb5db089d3bed9f7aee8320a704 Mon Sep 17 00:00:00 2001 From: theonekingboo Date: Thu, 4 Jan 2024 17:20:17 -0500 Subject: [PATCH 3/3] deleted useless command --- README.md | 6 ------ 1 file changed, 6 deletions(-) diff --git a/README.md b/README.md index cdd2c45..114ff7f 100644 --- a/README.md +++ b/README.md @@ -53,12 +53,6 @@ wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1 sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb ``` -#### MacOS prerequisites - -For Mac OS X, Run this command: - -`xcode-select --install` - #### nightly install (all OSs) After that, run these commands to fix rustup with nightly: