Unsure what to call this problem please help

Hello
I am trying to follow along with an online tutorial and was using this command
**
cargo install diesel_cli --no-default-features --features sqlite
**

which install diesel_cli
VVV and gathers and sets these dependencies up VVV

[package]
name = "rust-react-chat"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

actix = "0.13.0"
actix-files = "0.6.2"
actix-web = "4.2.1"
actix-web-actors = "4.1.0"
rand = "0.8.5"
serde = "1.0.147"
serde_json = "1.0.88"

VV and i get this Error VV

error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/research/.nvm/versions/node/v14.10.0/bin:/home/research/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcBAdYu7/symbols.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.00.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.01.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.02.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.03.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.04.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.05.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.06.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.07.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.08.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.09.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.10.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.11.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.12.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.13.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.14.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.diesel.85f19821ae9a18de-cgu.15.rcgu.o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446.5gha4ofu0q4n3m2a.rcgu.o" "-Wl,--as-needed" "-L" "/tmp/cargo-installHvSxha/release/deps" "-L" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/tmp/cargo-installHvSxha/release/deps/libdiffy-525770b7c2c68acc.rlib" "/tmp/cargo-installHvSxha/release/deps/libnu_ansi_term-63e6b2c951257561.rlib" "/tmp/cargo-installHvSxha/release/deps/liboverload-9d7e88d44409dfa1.rlib" "/tmp/cargo-installHvSxha/release/deps/liburl-5377a0ad32631daa.rlib" "/tmp/cargo-installHvSxha/release/deps/libidna-fd720e1790b77efc.rlib" "/tmp/cargo-installHvSxha/release/deps/libunicode_normalization-e1e92c223e4c41d3.rlib" "/tmp/cargo-installHvSxha/release/deps/libtinyvec-6736d9e7d1c10c0f.rlib" "/tmp/cargo-installHvSxha/release/deps/libtinyvec_macros-52b73ee93f20e185.rlib" "/tmp/cargo-installHvSxha/release/deps/libunicode_bidi-97e216f819d51ca6.rlib" "/tmp/cargo-installHvSxha/release/deps/libform_urlencoded-00c24eaed06f8f93.rlib" "/tmp/cargo-installHvSxha/release/deps/libpercent_encoding-8b44f6fcf6788668.rlib" "/tmp/cargo-installHvSxha/release/deps/libdotenvy-850e972bb2b360db.rlib" "/tmp/cargo-installHvSxha/release/deps/libchrono-7ce3715de9466f11.rlib" "/tmp/cargo-installHvSxha/release/deps/libnum_traits-a164370c9e1198bb.rlib" "/tmp/cargo-installHvSxha/release/deps/libiana_time_zone-d09a4eadb90e3df8.rlib" "/tmp/cargo-installHvSxha/release/deps/libdiesel_table_macro_syntax-1d7f58812e8e7f05.rlib" "/tmp/cargo-installHvSxha/release/deps/libsyn-dff6a67bc8088398.rlib" "/tmp/cargo-installHvSxha/release/deps/libquote-5ec962973211ff23.rlib" "/tmp/cargo-installHvSxha/release/deps/libproc_macro2-ac62a190cf182113.rlib" "/tmp/cargo-installHvSxha/release/deps/libunicode_ident-310d8a0ffc91fd97.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libproc_macro-475723c0bac0f80c.rlib" "/tmp/cargo-installHvSxha/release/deps/libclap_complete-e4d32cb7c9c9cf57.rlib" "/tmp/cargo-installHvSxha/release/deps/libdiesel_migrations-abc280fa8a2390af.rlib" "/tmp/cargo-installHvSxha/release/deps/libmigrations_internals-d3e35bdd024c5795.rlib" "/tmp/cargo-installHvSxha/release/deps/libtoml-53cb2105d5c09a9c.rlib" "/tmp/cargo-installHvSxha/release/deps/libtoml_edit-78d2db698eb9878f.rlib" "/tmp/cargo-installHvSxha/release/deps/libserde_spanned-f367a7ad7f14b4ba.rlib" "/tmp/cargo-installHvSxha/release/deps/libindexmap-baaeea0287949eef.rlib" "/tmp/cargo-installHvSxha/release/deps/libequivalent-48546e57976ed7a2.rlib" "/tmp/cargo-installHvSxha/release/deps/libhashbrown-6127982990f58758.rlib" "/tmp/cargo-installHvSxha/release/deps/libwinnow-346868ab2f924b0a.rlib" "/tmp/cargo-installHvSxha/release/deps/libtoml_datetime-41e6402f9df6f1f4.rlib" "/tmp/cargo-installHvSxha/release/deps/libdiesel-40db772e5678a687.rlib" "/tmp/cargo-installHvSxha/release/deps/liblibsqlite3_sys-b5b70634e5c6cdb1.rlib" "/tmp/cargo-installHvSxha/release/deps/libserde_regex-4dfc217ee300513d.rlib" "/tmp/cargo-installHvSxha/release/deps/libregex-5e9bdb985c6c60d6.rlib" "/tmp/cargo-installHvSxha/release/deps/libregex_automata-0307a1be860e1685.rlib" "/tmp/cargo-installHvSxha/release/deps/libaho_corasick-dea85f534edae0e0.rlib" "/tmp/cargo-installHvSxha/release/deps/libmemchr-87fd6c77b3f17e64.rlib" "/tmp/cargo-installHvSxha/release/deps/libregex_syntax-a005047e26b93338.rlib" "/tmp/cargo-installHvSxha/release/deps/libclap-916ce6991acd7aa1.rlib" "/tmp/cargo-installHvSxha/release/deps/libclap_builder-3fa4e0d06fb735be.rlib" "/tmp/cargo-installHvSxha/release/deps/libstrsim-c5209fb74910cba7.rlib" "/tmp/cargo-installHvSxha/release/deps/libanstream-fe0c299c005ce595.rlib" "/tmp/cargo-installHvSxha/release/deps/libanstyle_query-482c90903df0841a.rlib" "/tmp/cargo-installHvSxha/release/deps/libcolorchoice-197c041558a28e4b.rlib" "/tmp/cargo-installHvSxha/release/deps/libanstyle_parse-c849f01ee5d615af.rlib" "/tmp/cargo-installHvSxha/release/deps/libutf8parse-8aea6c0409577af9.rlib" "/tmp/cargo-installHvSxha/release/deps/libclap_lex-da1c230cefe3887f.rlib" "/tmp/cargo-installHvSxha/release/deps/libanstyle-7fe55a0dc1077c2d.rlib" "/tmp/cargo-installHvSxha/release/deps/libserde-0e99b92aef812adf.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8f88c761e33f2651.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-f9018f9cee1cc5ff.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-919f89587cbed68d.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-c6624cb4360306cd.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-4930b3dc482158f7.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-65bea4bb6af40828.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-bc6864da821ce9a2.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-1bccb7a942e1b311.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-356231f77d1e268a.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-80ed5799bf463787.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-9c3df673b2797081.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-c6afbee8d1102512.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-682387162b570769.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-05a2cedbb78c1d4f.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-f002c8f83a289c4b.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-649be05783c8912e.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-13da980d6c74fec5.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-46a989d0e2cef827.rlib" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b114db70ea0690b1.rlib" "-Wl,-Bdynamic" "-lsqlite3" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/research/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/cargo-installHvSxha/release/deps/diesel-966fddd257805446" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"
                              |
                        expected newline '#'      
          

error: could not compile `diesel_cli` (bin "diesel") due to previous error
error: failed to compile `diesel_cli v2.1.1`, intermediate artifacts can be found at `/tmp/cargo-installHvSxha`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Build a real-time chat app

I am running Linux edge 6.2.0-32-generic #32~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 18 10:40:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

I have followed along with the tutorial as it says and had no error until it was time to use the command i have included in this post

Please let me know if i can give you any further info thanks for the help.

--cosmos

Whenever you encounter an error, the first thing that you should do is to open a new tab in your browser and copy&paste the error you got. For example searching for your error:

Leads me to the following question in SO:

You need to understand that the error messages shown to you are there for you to debug the reason, not for you to panic and freeze. You have to learn to not be afraid of error messages, and instead treat them as information that will lead you to fix them.

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.