Skip to content

Cargo can't execute process on Ubuntu 20.04 #8621

@ghost

Description

Problem

Using cargo run on a new binary Cargo project with a new install of rustup / Cargo results in error message:

error: could not execute process `target/debug/<project name>` (never executed)

Steps

  1. Install the minimal installation of Ubuntu.
  2. Install cargo and rustup.
  3. Create a new project using cargo new
  4. Install build-essentials using sudo apt install build-essentials
  5. cargo run

Possible Solution(s)

Notes

Output of cargo version:
cargo 1.45.1 (f242df6 2020-07-22)

Minimal installation of Ubuntu 20.04 with build-essentials, VS Code, rustup, Cargo. I am on rustc version 1.45.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions