Installing a Package in WSL - Ubuntu 20


  1. Posts : 19
    windows 10 x64
       #1

    Installing a Package in WSL - Ubuntu 20


    I am running WSL version 1. I am trying to install mingw-w64, but it says it is unable to locate the package. How can I install this?
    I am running 1909.
      My Computer


  2. Posts : 822
    Microsoft Windows 10 Pro 64-bit
       #2

    Try
    Code:
    sudo apt update
    Then apt search for the package you want
    Code:
    apt search mingw-w64
    Sorting... Done
    Full Text Search... Done
    binutils-mingw-w64/focal 2.34-5ubuntu1+8.8 all
      Cross-binutils for Win32 and Win64 using MinGW-w64
    
    binutils-mingw-w64-i686/focal 2.34-5ubuntu1+8.8 amd64
      Cross-binutils for Win32 (x86) using MinGW-w64
    
    binutils-mingw-w64-x86-64/focal 2.34-5ubuntu1+8.8 amd64
      Cross-binutils for Win64 (x64) using MinGW-w64
    
    g++-mingw-w64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 all
      GNU C++ compiler for MinGW-w64
    
    g++-mingw-w64-i686/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU C++ compiler for MinGW-w64 targeting Win32
    
    g++-mingw-w64-x86-64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU C++ compiler for MinGW-w64 targeting Win64
    
    gcc-mingw-w64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 all
      GNU C compiler for MinGW-w64
    
    gcc-mingw-w64-base/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU Compiler Collection for MinGW-w64 (base package)
    
    gcc-mingw-w64-i686/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU C compiler for MinGW-w64 targeting Win32
    
    gcc-mingw-w64-x86-64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU C compiler for MinGW-w64 targeting Win64
    
    gdb-mingw-w64/focal 9.1-0ubuntu1+10.9build1 amd64
      Cross-debugger for Win32 and Win64 using MinGW-w64
    
    gdb-mingw-w64-target/focal 9.1-0ubuntu1+10.9build1 all
      Cross-debugger server for Win32 and Win64 using MinGW-w64
    
    gfortran-mingw-w64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 all
      GNU Fortran compiler for MinGW-w64
    
    gfortran-mingw-w64-i686/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU Fortran compiler for MinGW-w64 targeting Win32
    
    gfortran-mingw-w64-x86-64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU Fortran compiler for MinGW-w64 targeting Win64
    
    gnat-mingw-w64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 all
      GNU Ada compiler for MinGW-w64
    
    gnat-mingw-w64-i686/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU Ada compiler for MinGW-w64 targeting Win32
    
    gnat-mingw-w64-x86-64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU Ada compiler for MinGW-w64 targeting Win64
    
    gobjc++-mingw-w64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 all
      GNU Objective-C++ compiler for MinGW-w64
    
    gobjc++-mingw-w64-i686/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU Objective-C++ compiler for MinGW-w64 targeting Win32
    
    gobjc++-mingw-w64-x86-64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU Objective-C++ compiler for MinGW-w64 targeting Win64
    
    gobjc-mingw-w64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 all
      GNU Objective-C compiler for MinGW-w64
    
    gobjc-mingw-w64-i686/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU Objective-C compiler for MinGW-w64 targeting Win32
    
    gobjc-mingw-w64-x86-64/focal 9.3.0-7ubuntu1+22~exp1ubuntu4 amd64
      GNU Objective-C compiler for MinGW-w64 targeting Win64
    
    libassuan-mingw-w64-dev/focal 2.5.3-7ubuntu2 all
      IPC library for the GnuPG components -- Windows port
    
    libgcrypt-mingw-w64-dev/focal 1.8.5-5ubuntu1 all
      LGPL Crypto library - Windows development
    
    libgpg-error-mingw-w64-dev/focal 1.37-1 all
      library of error values and messages in GnuPG (Windows development)
    
    libksba-mingw-w64-dev/focal 1.3.5-2 all
      X.509 and CMS support library (Windows development)
    
    libnpth-mingw-w64-dev/focal 1.6-1 all
      replacement for GNU Pth using system threads (Windows dev)
    
    libz-mingw-w64/focal 1.2.11+dfsg-2 all
      compression library - Windows runtime
    
    libz-mingw-w64-dev/focal 1.2.11+dfsg-2 all
      compression library - Windows development files
    
    mingw-w64/focal 7.0.0-2 all
      Development environment targeting 32- and 64-bit Windows
    
    mingw-w64-common/focal 7.0.0-2 all
      Common files for Mingw-w64
    
    mingw-w64-i686-dev/focal 7.0.0-2 all
      Development files for MinGW-w64 targeting Win32
    
    mingw-w64-tools/focal 7.0.0-2 amd64
      Development tools for 32- and 64-bit Windows
    
    mingw-w64-x86-64-dev/focal 7.0.0-2 all
      Development files for MinGW-w64 targeting Win64
    
    win-iconv-mingw-w64-dev/focal 0.0.8-3 all
      iconv implementation using Windows API (for cross-building)
    Then install
    Code:
    sudo apt install PACKAGE
    Oh by the way you should really install WSL2 who knows how long wsl1 be supported
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 07:00.
Find Us




Windows 10 Forums