gflags should preferrably be installed before glog
authorYangqing Jia <jiayq@google.com>
Thu, 24 Jul 2014 05:49:16 +0000 (22:49 -0700)
committerYangqing Jia <jiayq@google.com>
Thu, 24 Jul 2014 05:49:16 +0000 (22:49 -0700)
docs/installation.md

index 6ff1887..5f09259 100644 (file)
@@ -71,13 +71,8 @@ And on **CentOS or RHEL**, you can install via yum using:
 
     sudo yum install protobuf-devel leveldb-devel snappy-devel opencv-devel boost-devel hdf5-devel
 
-The only exceptions being the google logging library and the google flags library, which does not exist in the Ubuntu 12.04 or CentOS/RHEL repositories. To install them, do:
+The only exceptions being the google flags library and the google logging library, which does not exist in the Ubuntu 12.04 or CentOS/RHEL repositories. To install them, do:
 
-    # glog
-    wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
-    tar zxvf glog-0.3.3.tar.gz
-    ./configure
-    make && make install
     # gflags
     wget https://github.com/schuhschuh/gflags/archive/master.zip
     unzip master.zip
@@ -85,6 +80,11 @@ The only exceptions being the google logging library and the google flags librar
     mkdir build && cd build
     cmake ..
     make && make install
+    # glog
+    wget https://google-glog.googlecode.com/files/glog-0.3.3.tar.gz
+    tar zxvf glog-0.3.3.tar.gz
+    ./configure
+    make && make install
 
 Note that if you have newer versions of Ubuntu, like 13.04 or 14.04, gflags may be available under apt-get.