Cernlib: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
Make sure you have 'imake' installed, if not do | Make sure you have 'imake' installed, if not do | ||
yum install imake | yum install imake lapack | ||
Get following files from ''/usr/downloads'' or from https://www-zeuthen.desy.de/linear_collider/cernlib/new/cernlib_2005.html | Get following files from ''/usr/downloads'' or from https://www-zeuthen.desy.de/linear_collider/cernlib/new/cernlib_2005.html | ||
cernlib-2005-all-new.tgz | cernlib-2005-all-new.tgz | ||
cernlib.2005.corr. | cernlib.2005.corr.2020.12.11.tgz | ||
cernlib.2005.install. | cernlib.2005.install.2020.12.11.tgz | ||
gtar -zxf cernlib-2005-all-new.tgz | |||
rm cernlib.2005.corr.tgz | |||
mv cernlib.2005.corr.2020.12.11.tgz cernlib.2005.corr.tgz | |||
gtar -zxf cernlib.2005.install.2020.12.11.tgz | |||
Unalias 'mv', 'cp' and 'rm' !!! | |||
./Install_cernlib | |||
###./Install_cernlib_and_lapack. If something did not compile, goto '2005/build' and type 'make', fix problems. | |||
Should see following: | |||
[root@clonpc12 cernlib]# ./Install_cernlib | |||
==================== | |||
CERNLIB installation | |||
==================== | |||
installing cernlib sources | |||
Checking for Fortran Compiler... gfortran -no-pie -std=legacy -fcommon -ffixed-line-length-none | |||
====================================== | |||
Configuration summary | |||
--------------------- | |||
Architecture is: x86_64 | |||
Fortran compiler used: gfortran -no-pie -std=legacy -fcommon -ffixed-line-length-none | |||
CERN_LEVEL is: 2005 | |||
====================================== | |||
installing cernlib libraries | |||
making Makefiles in /scripts... | |||
testing cernlib libraries | |||
installing cernlib executables | |||
installing the old patchy 4 executables | |||
installing the patchy 5 executables | |||
making Makefiles in /patchy... | |||
installing cernlib includes | |||
fixing known installation problems | |||
Complete cernlib installation finished | |||
Check the log files in the build/log directory | |||
[root@clonpc12 cernlib]# | |||
Line 35: | Line 69: | ||
ln -s liblapack3.a liblapack.a | ln -s liblapack3.a liblapack.a | ||
* pawX11 does not build; ''cd /apps/cernlib/2005/build/pawlib/paw/programs'' and type 'make'; change '-L/apps/cernlib/2005/src/lib' to '-L/apps/cernlib/2005/lib'; cp pawX11 /apps/cernlib/2005/bin/; | * pawX11 does not build; ''cd /apps/cernlib/2005/build/pawlib/paw/programs'' and type 'make'; copypaste line 'gfortran ...', change | ||
'-L/apps/cernlib/2005/src/lib' to '-L/apps/cernlib/2005/lib' and run it; cp pawX11 /apps/cernlib/2005/bin/; |
Latest revision as of 09:06, 14 September 2021
CERNLIB 2005
Make sure you have 'imake' installed, if not do
yum install imake lapack
Get following files from /usr/downloads or from https://www-zeuthen.desy.de/linear_collider/cernlib/new/cernlib_2005.html
cernlib-2005-all-new.tgz cernlib.2005.corr.2020.12.11.tgz cernlib.2005.install.2020.12.11.tgz
gtar -zxf cernlib-2005-all-new.tgz
rm cernlib.2005.corr.tgz
mv cernlib.2005.corr.2020.12.11.tgz cernlib.2005.corr.tgz
gtar -zxf cernlib.2005.install.2020.12.11.tgz
Unalias 'mv', 'cp' and 'rm' !!!
./Install_cernlib
###./Install_cernlib_and_lapack. If something did not compile, goto '2005/build' and type 'make', fix problems.
Should see following:
[root@clonpc12 cernlib]# ./Install_cernlib ==================== CERNLIB installation ==================== installing cernlib sources Checking for Fortran Compiler... gfortran -no-pie -std=legacy -fcommon -ffixed-line-length-none ====================================== Configuration summary --------------------- Architecture is: x86_64 Fortran compiler used: gfortran -no-pie -std=legacy -fcommon -ffixed-line-length-none CERN_LEVEL is: 2005 ====================================== installing cernlib libraries making Makefiles in /scripts... testing cernlib libraries installing cernlib executables installing the old patchy 4 executables installing the patchy 5 executables making Makefiles in /patchy... installing cernlib includes fixing known installation problems Complete cernlib installation finished Check the log files in the build/log directory [root@clonpc12 cernlib]#
KNOWN PROBLEMS:
- on RHEL6 add into 2005/src/pawlib/paw/cpaw/bugrep.c file following:
#define L_cuserid 9
- on RHEL6 goto $CERN_ROOT and do following (workaround freetype/freetype2 problem):
ln -s /usr/include/freetype2/freetype src/include/
- cd $CERN_ROOT/lib and type
ln -s liblapack3.a liblapack.a
- pawX11 does not build; cd /apps/cernlib/2005/build/pawlib/paw/programs and type 'make'; copypaste line 'gfortran ...', change
'-L/apps/cernlib/2005/src/lib' to '-L/apps/cernlib/2005/lib' and run it; cp pawX11 /apps/cernlib/2005/bin/;