Commit bdab62be authored by Sergio Galindo's avatar Sergio Galindo

Merge branch 'protobuf' into 'master'

Added protobuf.

See merge request !4
parents 8669185f 628cf63c
#!/bin/bash
cd $HOME/opt/src
git clone https://github.com/google/protobuf
cd protobuf
git checkout v3.1.0
mkdir -p Release
cd Release
cmake ../cmake/ -DCMAKE_BUILD_TYPE=Release -Dprotobuf_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=~/opt/protobuf-3.1.0
make install -j4
echo "module load protobuf-3.1.0" >> $HOME/.bashrc
source $HOME/.bashrc
#%Module1.0
##
## protobuf 3.1.0
set version 3.1.0
set home $::env(HOME)
set prefix $home/opt/protobuf-3.1.0
prepend-path PATH $prefix/bin
prepend-path LD_LIBRARY_PATH $prefix/lib
prepend-path CMAKE_PREFIX_PATH $prefix
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment