Last active
August 29, 2015 13:57
-
-
Save andypotanin/9719647 to your computer and use it in GitHub Desktop.
Installing libvmod-curl on OSX for Varnish 3.0.5.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /usr/local/lib/varnish/vmods | |
| sudo port install autoconf | |
| sudo port install automake | |
| sudo port install libtool | |
| sudo port install pkg-config | |
| sudo port install pkgconfig | |
| sudo port install pcre | |
| wget http://curl.haxx.se/download/curl-7.35.0.zip && unzip curl-7.35.0.zip | |
| ./configure | |
| make && sudo make install | |
| git clone https://github.com/varnish/Varnish-Cache.git && git checkout varnish-3.0.5 | |
| ./autogen.sh | |
| ./configure | |
| make | |
| sudo make install | |
| git clone https://github.com/varnish/libvmod-curl.git | |
| ./automake.sh | |
| CURL_CFLAGS="-I/usr/include/curl" CURL_LIBS="-lcurl" PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/ ./configure VARNISHSRC=/vendor/varnish-cache-3.0.5 VMODIR=/usr/local/lib/varnish/vmods | |
| # varnishd -f -s malloc,4GB -T 127.0.0.1:16020 -a 0.0.0.0:11000 -F |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment