X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=README.md;h=4fc27ae242bfa8e1d37c94a841646a6c2b641d54;hp=7209b569c1b3b6cf87f0303524f56a422fe9e938;hb=2d16fa08610b9c37dc13cfce06561ff0f57de7f4;hpb=4b1912cf565abfe7d161b19fde98ce9dc7af0b0b diff --git a/README.md b/README.md index 7209b569..4fc27ae2 100644 --- a/README.md +++ b/README.md @@ -70,11 +70,31 @@ Folly is published on Github at https://github.com/facebook/folly #### Dependencies -folly requires gcc 4.8+ and a version of boost compiled with C++11 support. +folly requires gcc 4.9+ and a version of boost compiled with C++14 support. Please download googletest from -https://googletest.googlecode.com/files/gtest-1.7.0.zip and unzip it in the -folly/test subdirectory. +https://github.com/google/googletest/archive/release-1.8.0.tar.gz and unpack it into the +folly/test subdirectory as `gtest`: + + (cd folly/test && \ + rm -rf gtest && \ + wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz && \ + tar zxf release-1.8.0.tar.gz && \ + rm -f release-1.8.0.tar.gz && \ + mv googletest-release-1.8.0 gtest) + +#### Linking non-default boost libraries + +If you have boost installed in a non-default location, you need to be sure that +the linker and configure scripts know where to find boost. This means making +sure that the `LIBRARY_PATH` environment variable contains `/lib`, +as well as including the path explicitly when running +`./configure`: + +``` +export LIBRARY_PATH=$BOOST_ROOT/lib:$LIBRARY_PATH +./configure --with-boost=$BOOST_ROOT/lib +``` #### Ubuntu 12.04 @@ -106,10 +126,11 @@ sudo apt-get install \ zlib1g-dev \ binutils-dev \ libjemalloc-dev \ - libssl-dev + libssl-dev \ + pkg-config ``` -If advanced dubugging functionality for tests are required +If advanced debugging functionality is required ``` sudo apt-get install \ @@ -129,7 +150,7 @@ sudo apt-get install \ The above packages are sufficient for Ubuntu 13.10 and Ubuntu 14.04. -In the folly directory, run +In the folly directory, run: ``` autoreconf -ivf ./configure @@ -138,6 +159,10 @@ In the folly directory, run sudo make install ``` +#### Ubuntu 16.04 LTS +The packages listed above for 13.10 and 14.04 are sufficient for installation, +and the build commands remain the same. + #### OS X (Homebrew) folly is available as a Formula and releases may be built via `brew install folly`. @@ -147,8 +172,6 @@ You may also use `folly/build/bootstrap-osx-homebrew.sh` to build against `maste ``` cd folly ./build/bootstrap-osx-homebrew.sh - make - make check ``` #### OS X (MacPorts) @@ -193,6 +216,12 @@ Download and install folly with the parameters listed below: sudo make install ``` +#### Windows (Vcpkg) + +folly is available in [Vcpkg](https://github.com/Microsoft/vcpkg#vcpkg) and releases may be built via `vcpkg install folly:x64-windows`. + +You may also use `vcpkg install folly:x64-windows --head` to build against `master`. + #### Other Linux distributions - double-conversion (https://github.com/google/double-conversion)