Compiling the Hoverfly Source Code
- Go to the $GOPATH/src directory.
1cd $GOPATH/src
- Create a github.com/SpectoLabs directory.
1mkdir -p github.com/SpectoLabs/
- Go to the github.com/SpectoLabs directory.
1cd github.com/SpectoLabs/
- Download the Hoverfly source code.
- https://github.com/SpectoLabs/hoverfly/archive/v1.1.5.zip
- 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.1cd /home
1wget https://github.com/SpectoLabs/hoverfly/archive/v1.1.5.zip --no-check-certificate
- Decompress the Hoverfly source code package.
1unzip v1.1.5.zip - Rename hoverfly-v1.1.5 to hoverfly and go to the hoverfly directory.
1mv hoverfly-1.1.5 hoverfly && cd hoverfly
- Perform the compilation and installation.
1make build
During the download, if an error is reported stating "validity check failed", see Importing the Certificate.
- Go to the target directory.
1cd target
- View the compilation result.
1./hoverctl version
If a Hoverfly version is displayed, the compilation is successful.
- Rename hoverfly to hoverfly_v1.1.5_linux_arm64.
1mv hoverfly hoverfly_v1.1.5_linux_arm64
Parent topic: Compiling and Installing Hoverfly