Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Fast and memory efficient library for factorization machines (FM).
- Runs on local machine and distributed clusters.
- Scales to datasets with billions examples and features.

### Prerequisites

Install Google Test in order for difacto project to compile. (Intructions here [googletest.md](https://github.com/dmlc/difacto/tree/master/googletest.md))

### Quick Start

The following commands clone and build difacto, then download a sample dataset,
Expand Down
26 changes: 26 additions & 0 deletions googletest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#INSTALL google test in ubuntu / debian
based on this stackoverflow answer: [http://stackoverflow.com/a/13513907](http://stackoverflow.com/a/13513907)

##0. Install cmake in ubuntu
apt-get install cmake

##1. Get the googletest framework
cd /usr/local/src
wget https://github.com/google/googletest/archive/release-1.7.0.tar.gz

##2. Unpack and build google test
tar xf release-1.7.0.tar.gz
cd googletest-release-1.7.0
cmake -DBUILD_SHARED_LIBS=ON .
make

###3. "Install" the headers and libs on your system.
This step might differ from distro to distro, so make sure you copy the headers and libs in the correct directory. I accomplished this by checking where Debians former gtest libs were located. But I'm sure there are better ways to do this. Note: make install is dangerous and not supported

cp -a include/gtest /usr/include
cp -a libgtest_main.so libgtest.so /usr/lib/

##4. Update the cache of the linker
... and check if the GNU Linker knows the libs

ldconfig -v | grep gtest