TRB3 Centos-7 instructions: Difference between revisions
m (→Centos-7 Setup) |
|||
Line 15: | Line 15: | ||
Following the instructions on website: | Following the instructions on website: | ||
[https://perlbrew.pl/] | [https://perlbrew.pl/ https://perlbrew.pl/ ] | ||
<pre> | |||
source ~/perl5/perlbrew/etc/bashrc | |||
perlbrew init | |||
perlbrew install perl-5.24.0 | |||
</pre> | |||
and then add this line to login script | |||
<pre> | |||
rm -f /home/trb3/.perlbrew/init | |||
source ~/perl5/perlbrew/etc/bashrc | |||
perlbrew switch perl-5.24.0 | |||
</pre> | |||
3) Rebuild libtrbnet with different perl | |||
<pre> | |||
cd ~/trbsoft/trbnettools/libtrbnet_perl | |||
perl Makefile.PL | |||
cd /home/trb3/trbsoft/trbnettools | |||
make TRB3=1 clean | |||
make TRB3=1 | |||
make TRB3=1 install | |||
<pre> | |||
4) Modify | |||
<pre> | |||
~/trbsoft/daqtools/merge_serial_address.pl | |||
</pre> | |||
to use the perlbrew version of perl, rather than the system default. | |||
5) Rebuild DABC | |||
Make sure you have ROOT (ie ROOTSYS) setup properly | |||
<pre> | |||
svn co https://subversion.gsi.de/dabc/trb3 trb3 | |||
cd trb3 | |||
make | |||
</pre> | |||
This seems to build dabc and stream successfully. go4 doesn't compile cleanly, but this doesn't matter for the MIDAS frontend readout. |
Revision as of 12:50, 20 February 2018
Introduction
See main TRB3 document for introductory material.
Centos-7 Setup
The TRB3 software and associated analysis packages are developed on newer operating systems than Centos-7. So a certain amount of work is needed to get the software to work on Centos-7.
1) I started by copying over the software in trbsoft from an existing installation.
scp trbsoft_backup.tar.gz trb3@ladd00:/data0/trb3/.
2) The main problem is with the TRB3 code requiring a newer version of perl. I used perlbrew to setup a newer version of perl than Centos-7 supports:
Following the instructions on website:
source ~/perl5/perlbrew/etc/bashrc perlbrew init perlbrew install perl-5.24.0
and then add this line to login script
rm -f /home/trb3/.perlbrew/init source ~/perl5/perlbrew/etc/bashrc perlbrew switch perl-5.24.0
3) Rebuild libtrbnet with different perl
cd ~/trbsoft/trbnettools/libtrbnet_perl perl Makefile.PL cd /home/trb3/trbsoft/trbnettools make TRB3=1 clean make TRB3=1 make TRB3=1 install <pre> 4) Modify <pre> ~/trbsoft/daqtools/merge_serial_address.pl
to use the perlbrew version of perl, rather than the system default.
5) Rebuild DABC
Make sure you have ROOT (ie ROOTSYS) setup properly
svn co https://subversion.gsi.de/dabc/trb3 trb3 cd trb3 make
This seems to build dabc and stream successfully. go4 doesn't compile cleanly, but this doesn't matter for the MIDAS frontend readout.