Solana: `error: linker `cc` not found` when installing AVM on WSL

Installing AVM on Windows Subsystem for Linux (WSL)

When trying to install Arm Virtual Machine (AVM) on WSL, you may encounter some errors. Here’s how to solve them:

Error: error: linkerccnot found when installing AVM on WSL

This error usually occurs when the compiler or build tool cannot find the cc' symbol. This usually happens for the following reasons:

  • Makefile configuration: Themakefileconfiguration may be incorrect, which leads to the absence of theccsymbol.
  • Compiler Installation: You may need to install a supported C++ compiler on your system.

To fix this error, try the following steps:

  • Update WSL and Linux packages

    :

Open a command prompt (on Windows) or a terminal (on Linux/macOS) with administrator rights.

Run the following commands to update the WSL and Linux packages:

sudo apt-get update

sudo apt-get install -y build-essential libssl-dev zlib1g-dev libncurses5-dev libreadline-dev libsqlite3-dev wget curl

  • Install a compatible C++ compiler:

Check which C++ compiler is already installed on your system. If not, you can download and install the appropriate version from the official website.

For example, if gccis already installed, you don't need to do anything. However, if you want to use a newer version of this or the other (e.g.clang++), run:

sudo apt-get install -y gcc-11

  • Update the AVM installation package:

After updating the system packages and installing a supported C++ compiler, try reinstalling AVM using the official ARM Linux installer.

Error: "could not compile crossbeam-utils" (build script) because of 1 ...

This error usually occurs when there is a problem with the crossbeam-utils package during the build process.

Here are some additional steps you can take to solve this problem:

  • Update your system:

Make sure all components of your system, including Linux, are up to date.

Run sudo apt-get updateand thensudo apt-get upgradefrom the command line or terminal.

  • Remove old version of AVM package:

Sometimes older versions of packages can cause problems with new installations.

To remove a previous version:

sudo apt-get purge arm-linux-gnueee-

  • Reinstall AVM from the official website or from a reliable source:

Try reinstalling AVM from their official site: <

If you continue to have problems, consider the following options:

  • Double check your system configuration and installed packages.
  • Run sudo apt-get install -y –no-gconf –fix-broken build-essential` (or another supported command).
  • For specific error messages or more detailed instructions, see the AVM website.

By following these steps, you can troubleshoot errors that occur when you install the Arm virtual machine in a WSL environment.

ETHEREUM MANY APPARENT

留下评论

您的邮箱地址不会被公开。 必填项已用 * 标注