You are a guest. Restricted access. Read more.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

man:promc:installation [2013/05/13 13:45]
man:promc:installation [2013/05/31 16:11] (current)
Line 1: Line 1:
 +[[man:​promc:​start.txt|<<​ back]]
 +
 +
 +==== How to install ====
 +(written by S.Chekanov, ANL)
 +
 +
 +Get the current ProMC release from [[https://​atlaswww.hep.anl.gov/​asc/​promc/​download/​|Download page]].
 +Below we show how to download and compile the release 1. (i.e. ProMC-1.0.tgz):​
 +
 +<code bash>
 +wget --no-check-certificate https://​atlaswww.hep.anl.gov/​asc/​promc/​download/​ProMC-1.0.tgz
 +tar -zvxf ProMC-1.0.tgz
 +cd ProMC
 +./​build.sh ​               # build all source files
 +./​install.sh [directory] ​ # install into some directory
 +</​code>​
 +Thye build script creates the libraries in "​share/​lib"​. The most important are "​libcbook.a"​ and "​libprotoc.a"​. The script "​install.sh"​ moves all libraries and header files to a permanent
 +location, given by the directory [directory]. You should have write permissions. For example:
 +
 +<code bash>
 +./​install.sh /usr/local
 +</​code> ​
 +requires the write permission, while 
 +
 +<code bash>
 +./​install.sh $HOME
 +</​code>  ​
 +
 +does not. After running "​install.sh",​ you will see a setup script:
 +
 +<code bash>
 +source setup.sh
 +</​code>​
 +
 +You can put the lines in setup.sh to your .bashrc (or .bash_profile) file. As a check, make sure
 +
 +<code bash>
 +echo $PROMC
 +</​code>​
 +returns the install directory. Now you can remove the original directory "​ProMC"​.
 +
 +==== Removing the installed ProMC ====
 +
 +Run the script:
 +
 +<code bash>
 +./​uninstall.sh
 +</​code>​
 +
 +it removes all  libraries from the $PROMC area. To remove the build files, run:
 +
 +<​code>​
 +./clear.sh
 +</​code>​
 +
 +<note tip>​Tested on SL5, SL6, Ubuntu 12.04. The protocol buffer ​ library comes with the package.</​note>​
 +
 +==== Download and SVN ====
 +
 +ProMC can be downloaded from [[https://​atlaswww.hep.anl.gov/​asc/​promc/​download/​| here]]. The SVN repository of the package is [[http://​atlaswww.hep.anl.gov/​asc/​WebSVN/​listing.php?​repname=ProMC| here]]
 +
 +
 +==== Possible problems ====
 +
 +
 +Make sure that zlib-dev library is installed. Check it as:
 +
 +<​code>​
 +yum install zlib-devel
 +</​code>​
 +
 +or
 +
 +<​code>​
 +sudo apt-get install zlib1g-dev
 +</​code>​
  
Navigation

Print/export