Installation
Prerequisites
Section titled “Prerequisites”Before installing similarity-go, make sure you have:
- Go 1.24.5 or later installed on your system
- Access to a terminal or command prompt
Installation Methods
Section titled “Installation Methods”Method 1: Install from Source (Recommended)
Section titled “Method 1: Install from Source (Recommended)”Clone the repository and build from source:
# Clone the repositorygit clone https://github.com/paveg/similarity-go.gitcd similarity-go
# Build the binarygo build -o bin/similarity-go
# Or use Make commandsmake build # Build current platformmake build-all # Cross-compile all platformsmake install # Install to $GOPATH/binMethod 2: Go Install
Section titled “Method 2: Go Install”Install directly using go install:
go install github.com/paveg/similarity-go@latestMethod 3: Download Pre-built Binaries
Section titled “Method 3: Download Pre-built Binaries”Download pre-built binaries from the releases page:
- Go to the releases page
- Download the appropriate binary for your OS and architecture
- Extract the archive
- Move the binary to a directory in your PATH
Verify Installation
Section titled “Verify Installation”After installation, verify that similarity-go is working correctly:
./bin/similarity-go --versionYou should see output similar to:
similarity-go version 1.0.0Next Steps
Section titled “Next Steps”Now that you have similarity-go installed, you can:
- Follow the Quick Start Guide to run your first analysis
- Learn about CLI Commands for advanced usage
- Explore Configuration Options to customize behavior
Troubleshooting
Section titled “Troubleshooting”Command Not Found
Section titled “Command Not Found”If you get a “command not found” error, make sure:
- The binary is in a directory that’s in your PATH
- The binary has execute permissions:
chmod +x similarity-go - Your Go bin directory is in your PATH:
export PATH=$PATH:$(go env GOPATH)/bin
Build Errors
Section titled “Build Errors”If you encounter build errors when installing from source:
- Ensure you have Go 1.24.5 or later:
go version - Update your Go installation if needed
- Clear your module cache:
go clean -modcache - Try building again