Vdash - dashboard for Autonomi nodes

In the first post, I wrote that I was installing on Windows :slight_smile:

I followed the instructions posted here:

That is, in step 2 according to Install from crates.io I selected: 2c. Windows install vdash.So, following the instructions, I installed the Microsoft Visual C++ redistributors for Visual Studio

then in the instructions it says: Finally to install vdash

So I typed into the command line:

cargo install vdash
vdash --help

What happens if you type cargo --help?

I get the same message:

> cargo --help

Select option 1, 2 or 3
>

Seems like maybe Rust is not properly installed. How did you install it?

This is the recommended installation method for Rust.

If you are running Windows 64-bit,
download and run rustup‑init.exe then follow the onscreen instructions.

select 1 so it knows you installed it

I installed it according to the instructions:

  1. Install Rust via https://doc.rust-lang.org/cargo/getting-started/installation.html

That’s right I have Windows x64, and the installation file I installed was rustup-init.exe, and after the installation a message appeared in the terminal:

Rust Visual C++ prerequisites

Rust requires a linker and Windows API libraries but they don't seem to be
available.

These components can be acquired through a Visual Studio installer.

1) Quick install via the Visual Studio Community installer
   (free for individuals, academic uses, and open source).

2) Manually install the prerequisites
   (for enterprise and advanced users).

3) Don't install the prerequisites
   (if you're targeting the GNU ABI).

Should I reinstall it?

When I select 1 it installs again the Microsoft Visual C++ redistributors for Visual Studio only that now only Windows 11 SDK is indicated, and earlier I also selected Windows 10 SDK< because I use Windows 10 Pro.

When I clicked yes in response to the question Continue? (y/N) the following message appeared:

Welcome to Rust!

This will download and install the official compiler for the Rust
programming language, and its package manager, Cargo.

Rustup metadata and toolchains will be installed into the Rustup
home directory, located at:

  C:\Users\gggg\.rustup

This can be modified with the RUSTUP_HOME environment variable.

The Cargo home directory is located at:

  C:\Users\gggg\.cargo

This can be modified with the CARGO_HOME environment variable.

The cargo, rustc, rustup and other commands will be added to
Cargo's bin directory, located at:

  C:\Users\gggg\.cargo\bin

This path will then be added to your PATH environment variable by
modifying the HKEY_CURRENT_USER/Environment/PATH registry key.

You can uninstall at any time with rustup self uninstall and
these changes will be reverted.

Current installation options:


   default host triple: x86_64-pc-windows-msvc
     default toolchain: stable (default)
               profile: default
  modify PATH variable: yes

1) Proceed with standard installation (default - just press enter)
2) Customize installation
3) Cancel installation

Should I continue with the standard installation?

You have to install visual studio and sdk for the windows build you are using.

As I wrote earlier, I have already installed, should I choose option 1 and reinstall?

If it is installed than no, which message you get when you run cargo install vdash?

I have written before, after typing this command, a message appears:

I understand this is frustrating. None of us have seen that so it’s hard to know what’s wrong or what else to suggest.

Normally if I experience something like this it’s because I didn’t do what I thought I’d done, so I go back and redo every step with extra care.

Other than that I don’t have any useful suggestions other than searching the web for this situation. Have you done that? That’s usually my first step. I generally don’t ask for help until I’ve exhausted at least the obvious things I can do myself.

What happens if you select 1?

Reinstall windows, start from scratch.

When I selected 1 the Visual Studio installer turns on, once installed, I additionally installed the Microsoft C++ build tools for Visual Studio 2013 or
later. I had previously successfully installed Rust via Installation - The Cargo Book

After installing the compilation tool and after restarting the computer, I typed the command into the CLI: cargo install vdash however, an error appears:

PS C:\Users\gggg> cargo install vdash
    Updating crates.io index
  Installing vdash v0.17.9
    Updating crates.io index
     Locking 271 packages to latest compatible versions
      Adding addr2line v0.22.0 (latest: v0.23.0)
      Adding ahash v0.7.8 (latest: v0.8.11)
      Adding base64 v0.21.7 (latest: v0.22.1)
      Adding bitflags v1.3.2 (latest: v2.6.0)
      Adding bytecheck v0.6.12 (latest: v0.7.0)
      Adding bytecheck_derive v0.6.12 (latest: v0.7.0)
      Adding clap v2.34.0 (latest: v4.5.9)
      Adding gimli v0.29.0 (latest: v0.30.0)
      Adding h2 v0.3.26 (latest: v0.4.5)
      Adding hashbrown v0.12.3 (latest: v0.14.5)
      Adding heck v0.3.3 (latest: v0.5.0)
      Adding heck v0.4.1 (latest: v0.5.0)
      Adding hermit-abi v0.1.19 (latest: v0.4.0)
      Adding hermit-abi v0.3.9 (latest: v0.4.0)
      Adding http v0.2.12 (latest: v1.1.0)
      Adding http-body v0.4.6 (latest: v1.0.1)
      Adding hyper v0.14.30 (latest: v1.4.1)
      Adding hyper-rustls v0.24.2 (latest: v0.27.2)
      Adding idna v0.5.0 (latest: v1.0.2)
      Adding indexmap v1.9.3 (latest: v2.2.6)
      Adding inotify v0.9.6 (latest: v0.10.2)
      Adding itertools v0.12.1 (latest: v0.13.0)
      Adding linux-raw-sys v0.4.14 (latest: v0.6.4)
      Adding mio v0.8.11 (latest: v1.0.0)
      Adding notify v5.2.0 (latest: v6.1.1)
      Adding ptr_meta v0.1.4 (latest: v0.2.0)
      Adding ptr_meta_derive v0.1.4 (latest: v0.2.0)
      Adding radium v0.7.0 (latest: v1.1.0)
      Adding ratatui v0.25.0 (latest: v0.27.0)
      Adding redox_syscall v0.4.1 (latest: v0.5.2)
      Adding reqwest v0.11.27 (latest: v0.12.5)
      Adding rustls v0.21.12 (latest: v0.23.11)
      Adding rustls-pemfile v1.0.4 (latest: v2.1.2)
      Adding rustls-webpki v0.101.7 (latest: v0.102.5)
      Adding stability v0.1.1 (latest: v0.2.1)
      Adding strsim v0.8.0 (latest: v0.11.1)
      Adding strum v0.25.0 (latest: v0.26.3)
      Adding strum_macros v0.25.3 (latest: v0.26.4)
      Adding syn v1.0.109 (latest: v2.0.71)
      Adding sync_wrapper v0.1.2 (latest: v1.0.1)
      Adding system-configuration v0.5.1 (latest: v0.6.0)
      Adding system-configuration-sys v0.5.0 (latest: v0.6.0)
      Adding textwrap v0.11.0 (latest: v0.16.1)
      Adding tokio-rustls v0.24.1 (latest: v0.26.0)
      Adding toml_edit v0.21.1 (latest: v0.22.15)
      Adding wasi v0.11.0+wasi-snapshot-preview1 (latest: v0.13.1+wasi-0.2.0)
      Adding webpki-roots v0.25.4 (latest: v0.26.3)
      Adding windows-core v0.52.0 (latest: v0.58.0)
      Adding windows-sys v0.45.0 (latest: v0.52.0)
      Adding windows-sys v0.48.0 (latest: v0.52.0)
      Adding windows-targets v0.42.2 (latest: v0.52.6)
      Adding windows-targets v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.42.2 (latest: v0.52.6)
      Adding windows_aarch64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_aarch64_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_i686_gnu v0.42.2 (latest: v0.52.6)
      Adding windows_i686_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_i686_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_i686_msvc v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_gnu v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_gnullvm v0.48.5 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.42.2 (latest: v0.52.6)
      Adding windows_x86_64_msvc v0.48.5 (latest: v0.52.6)
      Adding winnow v0.5.40 (latest: v0.6.13)
      Adding winreg v0.50.0 (latest: v0.52.0)
      Adding wyz v0.5.1 (latest: v0.6.1)
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.12
   Compiling windows_x86_64_msvc v0.52.6
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.3.0
   Compiling version_check v0.9.4
error: linker `link.exe` not found
  |
  = note: program not found

note: the msvc targets depend on the msvc linker but `link.exe` was not found

note: please ensure that Visual Studio 2017 or later, or Build Tools for Visual Studio were installed with the Visual C++ option.

note: VS Code is a different product, and is not sufficient.

error: could not compile `windows_x86_64_msvc` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `proc-macro2` (build script) due to 1 previous error
error: failed to compile `vdash v0.17.9`, intermediate artifacts can be found at `C:\Users\gggg\AppData\Local\Temp\cargo-installJMSjJs`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

It looks like Visual Studio or the Microsoft C++ compiler tool is not installed, and in both cases it was installed successfully. What to do about it?

You need visual studio not visual studio code as it says.

2 Likes

As I wrote earlier, I installed Visual Studio according to the instructions:

Is this the wrong program?

Please provide info as follows (run in powershell):

  1. Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object {$_.DisplayName -match 'Microsoft Visual C*'} | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize
  2. Get-ComputerInfo | select OsName, OsVersion, WindowsVersion, OsBuildNumber, OsArchitecture
    Thanks.

Is this the answer for me?

1 Like

Yes it is.

1 Like

After typing the commands, I got this message:

PS C:\Users\gggg> Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object {$_.DisplayName -match 'Microsoft Visual C*'} | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table -AutoSize

DisplayName                                                    DisplayVersion  Publisher             InstallDate
-----------                                                    --------------  ---------             -----------
Microsoft Visual C++ 2022 X64 Additional Runtime - 14.40.33810 14.40.33810     Microsoft Corporation 20240712
Microsoft Visual Studio Installer                              3.11.2167.20057 Microsoft Corporation 20240712
Microsoft Visual C++ 2022 X64 Minimum Runtime - 14.40.33810    14.40.33810     Microsoft Corporation 20240712


PS C:\Users\gggg> Get-ComputerInfo | select OsName, OsVersion, WindowsVersion, OsBuildNumber, OsArchitecture


OsName         : Microsoft Windows 10 Pro
OsVersion      : 10.0.19045
WindowsVersion : 2009
OsBuildNumber  : 19045
OsArchitecture : 64-bitowy