Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling the Hoverfly Source Code

  1. Go to the $GOPATH/src directory.
    1
    cd $GOPATH/src
    
  2. Create a github.com/SpectoLabs directory.
    1
    mkdir -p github.com/SpectoLabs/
    
  3. Go to the github.com/SpectoLabs directory.
    1
    cd github.com/SpectoLabs/
    
  4. Download the Hoverfly source code.
    1. https://github.com/SpectoLabs/hoverfly/archive/v1.1.5.zip
    2. Copy it to the /home directory on the server.
    If the server is connected to the Internet, you can run the wget command to download the installation package.
    1
    cd /home
    
    1
    wget https://github.com/SpectoLabs/hoverfly/archive/v1.1.5.zip --no-check-certificate
    
  5. Decompress the Hoverfly source code package.
    1
    unzip v1.1.5.zip
    
  6. Rename hoverfly-v1.1.5 to hoverfly and go to the hoverfly directory.
    1
    mv hoverfly-1.1.5 hoverfly && cd hoverfly
    
  7. Perform the compilation and installation.
    1
    make build
    

    During the download, if an error is reported stating "validity check failed", see Importing the Certificate.

  8. Go to the target directory.
    1
    cd target
    
  9. View the compilation result.
    1
    ./hoverctl version
    

    If a Hoverfly version is displayed, the compilation is successful.

  10. Rename hoverfly to hoverfly_v1.1.5_linux_arm64.
    1
    mv hoverfly hoverfly_v1.1.5_linux_arm64