Commit 628cf63c authored by Pablo Toharia's avatar Pablo Toharia

Added protobuf.

parent 8669185f
#!/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