fbpx

How to install mojo on Windows

Currently, the Mojo SDK is available for Ubuntu Linux and macOS systems running on Apple Silicon. However, Windows support is under development and will be available soon. In the meantime, this book aims to prepare readers to use Mojo on Windows systems as soon as official support is available.

Prerequisites:

  • Ensure your Windows system is up to date. Check by going to Settings > Update & Security > Windows Update.
  • Verify your Windows version by running winver in Command Prompt. WSL 2 requires Windows 10 version 2004 (build 19041) or later, or Windows 11.
  • Enable Hardware Virtualization. You can do this by going to Settings > Update & Security > Recovery > Advanced startup > Restart Now, then choosing Troubleshoot > Advanced options > Restart. Once restarted, enter your BIOS/UEFI and enable Hardware Virtualization.

1. Installation Steps:

  1. Open PowerShell as administrator. Right-click the Start button and select Windows PowerShell (Admin).
  2. Run the following command to install WSL 2:
wsl --install 

Restart your computer.

After Restart:

  1. Open the Microsoft Store.
  2. Search for “Ubuntu”.
  3. **Choose the desired Ubuntu distribution and click Get.
  4. Once installed, launch the Ubuntu application.
  5. Follow the on-screen instructions to configure your Linux distribution.

2. Connect to your Linux Distribution:

  • Open the Start menu and search for your installed Linux distribution (e.g., “Ubuntu”).
  • Launch the application to connect to the Linux environment.

Once you’ve completed these steps, the official documentation provides guidance on further customization, how to install mojo sdk on linux : https://docs.modular.com/mojo/manual/get-started/

3. Install the Modular CLI:

  • Within the Linux terminal, run the following command to download and install the Modular CLI tool:
 curl https://get.modular.com | sh

2.Then sign in to your Modular account with this command:

modular auth

4. Install the Mojo SDK:

  • Once the Modular CLI is installed, use it to install the Mojo SDK:
$modular install mojo

5. Configure Environment Variables:

  • The installation script should provide instructions for setting environment variables. Follow those instructions to ensure you can access the Mojo CLI tools.
  • This typically involves setting the MOJO_PATH variable.

commentaires

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Se connecter

S’inscrire

Réinitialiser le mot de passe

Veuillez saisir votre identifiant ou votre adresse e-mail. Un lien permettant de créer un nouveau mot de passe vous sera envoyé par e-mail.

0
    0
    Mon panier