📁
GoReplay
  • Build software better, together
  • Getting-Started
  • Home
    • [PRO]-Recording-and-replaying-keep-alive-TCP-sessions
    • [PRO]-Replaying-Binary-protocols
    • [PRO]-Using-S3-for-storing-and-replaying-traffic
    • Capturing-and-replaying-traffic
    • Commercial-FAQ
    • Commercial-Support
    • Compilation
    • Dealing-with-missing-requests-and-responses
    • Development-Setup
    • Distributed-configuration
    • Exporting-to-ElasticSearch
    • FAQ
    • Middleware
    • Rate-limiting
    • Replaying-HTTP-traffic
    • Request-filtering
    • Request-rewriting
    • Running-as-non-root-user
    • Running-on-Windows
    • Saving-and-Replaying-from-file
    • Streaming-from-and-to-Apache-Kafka
    • The-Basics
    • Troubleshooting
Powered by GitBook
On this page

Was this helpful?

  1. Home

Compilation

PreviousCommercial-SupportNextDealing-with-missing-requests-and-responses

Last updated 4 years ago

Was this helpful?

We provide pre-compiled binaries for Mac and Linux, but you are free to compile Gor by yourself.

Gor is written using Go, so first you need to download it from here , use the latest stable version.

The only Gor dependency is , which is the interface to various kernel packet capture mechanisms, and , which is a Go wrapper around libpcap. Latest libpcap version can be obtained at . Libpcap itself depend on flex and bison packages, many operating systems already have them installed.

# Fetch libpcap dependencies. Depending on your OS, instead of `apt` you will use `yum` or `rpm`, or `brew` on Mac.
sudo apt-get install flex bison -y

# Download latest stable release, compile and install it
wget http://www.tcpdump.org/release/libpcap-1.7.4.tar.gz && tar xzf libpcap-1.7.4.tar.gz
cd libpcap-1.7.4
./configure && make install


# Lets fetch Gor source code
mkdir $HOME/gocode
# See more information about GOPATH https://github.com/golang/go/wiki/GOPATH
export GOPATH=$HOME/gocode
# Fetch code from the Github
go get github.com/buger/gor

# Compile from source
cd $HOME/gocode/src/github.com/buger/gor
go build LDFLAGS = -ldflags "-extldflags \"-static\""

After you finished, you should see gor binary in current directory.

https://golang.org/
libpcap
https://github.com/google/gopacket
http://www.tcpdump.org/release/