You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
step 1. run Windows PowerShell (administrator)
step 2. check wsl verison 1 is installed wsl --list --verbose
2.1. İf WSL id not installed return an error similar to this will occur. WslRegisterDistribution failed with error: 0x80370102 The operation couldn't be completed successfully because the feature is not enabled.
or WSL is not installed. Please enable WSL via "Turn Windows features on or off" in the Control Panel, and try again.
2.1.1. Let's install WSL version 1 on the computer by running these commands. dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /disable-feature /featurename:VirtualMachinePlatform /norestart Restart-Computer -Force
2.1.2. After the computer restarts, run Windows PowerShell (administrator) again and run this command and return to step 2. wsl --set-default-version 1
2.2. If WSL is installed but there is NO DISTRO, an error similar to this will occur. Windows Subsystem for Linux has no installed distributions. Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore
or If WSL is installed but you have a different Ubuntu distro, it will give an output similar to this. NAME STATE VERSION * Ubuntu Running 1
or The correct output you should see be similar to this. NAME STATE VERSION * Ubuntu-20.04 Running 1
2.3. If there is NO DISTRO or the distro NAME is not "Ubuntu-20.04", we will install the correct distro with this command. wsl --install -d Ubuntu-20.04
2.3.1. Wait for the installation to complete. When the installation is complete/when you run the Ubuntu 20.04 program, if you see a screen asking you to create an "account name" or "user name", close the window and reopen it. This will allow your Ubuntu terminal window to run in root user mode. This makes our job easier.
step 3. Run the newly installed application named "Ubuntu 20.06" in the Start/Search menu. In the console window that appears, let's first update all the packages with the APT package manager. sudo apt update && sudo apt upgrade -y
3.1. Let's continue by installing the necessary packages and dependencies. Run the following commands in the "ubuntu console" in order. sudo apt-get install python3-pip git cmake build-essential libboost-system-dev libprotobuf17 protobuf-compiler libprotobuf-dev openssl libssl-dev libgoogle-perftools-dev
step 5. Installation of necessary dependencies for compiling with Intel MKL library CPU support. sudo apt install libopenblas-dev libmkl-full-dev
step 6. Installation of other necessary dependencies for compiling (doxygen and graphviz). sudo apt install doxygen graphviz
step 7. Now let's download "marian" and compile it. cd /mnt/c mkdir ai cd ai git clone https://github.com/marian-nmt/marian mkdir marian/build cd marian/build echo 'export PATH="$PATH:/usr/local/cuda-11.3/bin:/usr/local/cuda-11.3/targets/x86_64-linux/lib:/usr/lib/x86_64-linux-gnu:/usr/lib:/mnt/c/ai/marian/build"' >> ~/.bashrc source ~/.bashrc cmake .. make -j4
and check marian version.. marian --version
final. If everything was installed correctly, the compilation process should be completed in this way. If the compilation is not completed or remains incomplete, examine the error messages that appear.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
step 1. run Windows PowerShell (administrator)
step 2. check wsl verison 1 is installed
wsl --list --verbose
2.1. İf WSL id not installed return an error similar to this will occur.
WslRegisterDistribution failed with error: 0x80370102
The operation couldn't be completed successfully because the feature is not enabled.
or
WSL is not installed. Please enable WSL via "Turn Windows features on or off" in the Control Panel, and try again.
2.1.1. Let's install WSL version 1 on the computer by running these commands.
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /disable-feature /featurename:VirtualMachinePlatform /norestart
Restart-Computer -Force
2.1.2. After the computer restarts, run Windows PowerShell (administrator) again and run this command and return to step 2.
wsl --set-default-version 1
2.2. If WSL is installed but there is NO DISTRO, an error similar to this will occur.
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store: https://aka.ms/wslstore
or If WSL is installed but you have a different Ubuntu distro, it will give an output similar to this.
NAME STATE VERSION
* Ubuntu Running 1
or The correct output you should see be similar to this.
NAME STATE VERSION
* Ubuntu-20.04 Running 1
2.3. If there is NO DISTRO or the distro NAME is not "Ubuntu-20.04", we will install the correct distro with this command.
wsl --install -d Ubuntu-20.04
2.3.1. Wait for the installation to complete. When the installation is complete/when you run the Ubuntu 20.04 program, if you see a screen asking you to create an "account name" or "user name", close the window and reopen it. This will allow your Ubuntu terminal window to run in root user mode. This makes our job easier.
step 3. Run the newly installed application named "Ubuntu 20.06" in the Start/Search menu. In the console window that appears, let's first update all the packages with the APT package manager.
sudo apt update && sudo apt upgrade -y
3.1. Let's continue by installing the necessary packages and dependencies. Run the following commands in the "ubuntu console" in order.
sudo apt-get install python3-pip git cmake build-essential libboost-system-dev libprotobuf17 protobuf-compiler libprotobuf-dev openssl libssl-dev libgoogle-perftools-dev
step 4. Installation of necessary dependencies for compilation with Cuda GPU support.
sudo add-apt-repository ppa:graphics-drivers
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys A4B469963BF863CC
sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
sudo apt-get update
sudo apt-get install nvidia-driver-430
sudo apt-get install cuda-toolkit-11-3
step 5. Installation of necessary dependencies for compiling with Intel MKL library CPU support.
sudo apt install libopenblas-dev libmkl-full-dev
step 6. Installation of other necessary dependencies for compiling (doxygen and graphviz).
sudo apt install doxygen graphviz
step 7. Now let's download "marian" and compile it.
cd /mnt/c
mkdir ai
cd ai
git clone https://github.com/marian-nmt/marian
mkdir marian/build
cd marian/build
echo 'export PATH="$PATH:/usr/local/cuda-11.3/bin:/usr/local/cuda-11.3/targets/x86_64-linux/lib:/usr/lib/x86_64-linux-gnu:/usr/lib:/mnt/c/ai/marian/build"' >> ~/.bashrc
source ~/.bashrc
cmake ..
make -j4
and check marian version..
marian --version
final. If everything was installed correctly, the compilation process should be completed in this way. If the compilation is not completed or remains incomplete, examine the error messages that appear.
alternative referance and custom compiling details, please check this link :
https://marian-nmt.github.io/docs/#installation
thx for read. by NovaYear 2025
Beta Was this translation helpful? Give feedback.
All reactions