github.com/amazechain/amc@v0.1.3/docs/installation/source.md (about)

     1  # Build from Source
     2  
     3  You can build amc Linux, macOS, Windows, and Windows WSL2.
     4  
     5  > **Note**
     6  >
     7  > amc does not work on Windows WSL1.
     8  
     9  ## Dependencies
    10  
    11  First, Instructions for installing Go are available at the [Go installation page](https://golang.org/doc/install) and necessary bundles can be downloaded from the [Go download page](https://golang.org/dl/).
    12  Note: Please download version 1.2, as some libraries do not yet support higher versions.
    13  ## Build amc
    14  
    15  With go and the dependencies installed, you're ready to build amc. First, clone the repository:
    16  
    17  ```plaintext
    18  git clone https://github.com/WeAreAmaze/amc
    19  cd amc
    20  ```
    21  
    22  Then, install amc into your PATH directly via:
    23  
    24  ```plaintext
    25  go build -o ./build/bin ./cmd/amc
    26  # or make amc (Linux, MacOS)
    27  ```
    28  Now, via the command line, the binary will be accessible as amc and resides in ./build/bin folder.
    29  
    30  Compilation may take around 1 minute. If `amc --help` displays the [command-line documentation](../cli/cli.md).
    31  
    32  If you run into any issues, please check the [Troubleshooting](#troubleshooting) section, or reach out to us on [Telegram](https://t.me/amazechaint).
    33  
    34  ## Update AMC
    35  
    36  You can update amc to a specific version by running the commands below.
    37  
    38  The amc directory will be the location you cloned amc to during the installation process.
    39  
    40  ${VERSION} will be the version you wish to build in the format vX.X.X.
    41  
    42  ```bash
    43  cd amc
    44  git fetch
    45  git checkout ${VERSION}
    46  go build -o ./build/bin ./cmd/amc
    47  # or make amc  (Linux, MacOS)
    48  ```
    49