Link: http://stackoverflow.com/questions/15287765/error-compiling-grok
Steps:
> sudo apt-get update
> sudo apt-get install -y ctags flex gperf libevent-dev libpcre3-dev libtokyocabinet-dev
> sudo apt-get install build-essential
> sudo apt-get install wget
> wget https://semicomplete.googlecode.com/files/grok-1.20110630.1.tar.gz
> tar -zxvf grok-1.20110630.1.tar.gz
> cd grok-1.20110630.1
> vi Makefile
Look for the following two lines:
gcc $(LDFLAGS) $^ -o $@
Change to:
gcc $^ $(LDFLAGS) -o $@
Enter the following command to build and install grok
> make
> sudo make install
No comments:
Post a Comment