3431
Comment:
|
3642
|
Deletions are marked like this. | Additions are marked like this. |
Line 15: | Line 15: |
Memo in building cernlib on SL7(CentOS7) with EPEL6 cernlib-2006-35.el6.src.rpm | Memo in building cernlib on SL7(CentOS7) from EPEL6 cernlib-2006-35.el6.src.rpm |
Line 26: | Line 26: |
# wget https://dl.fedoraproject.org/pub/epel/6/SRPMS/Packages/c/cernlib-2006-35.el6.src.rpm | # wget https://archives.fedoraproject.org/pub/archive/epel/6/SRPMS/Packages/c/cernlib-2006-35.el6.src.rpm or # wget https://ftp.riken.jp/Linux/fedora-archive/fedora/epel/6/SRPMS/Packages/c/cernlib-2006-35.el6.src.rpm # md5sum cernlib-2006-35.el6.src.rpm d653276f5248b92ed20db78de3b21946 cernlib-2006-35.el6.src.rpm |
Line 45: | Line 48: |
Then try rpmbuild again, | Then, try rpmbuild again |
Line 51: | Line 54: |
Afte 25 minutes, process exam1 entered into infinit loop at the test of (G E A N T Version 3.2114, RUN 1) | After 25 minutes, process exam1 enters into infinite loop at the test of (G E A N T Version 3.2114, RUN 1); |
Line 55: | Line 58: |
4. Enter into the SPEC Directory (cd ../rpmbuild/SPECS) and edit/modify cernlib.spec file | 4. Enter into the SPECS directory (cd ../rpmbuild/SPECS) and edit/modify cernlib.spec file |
Line 60: | Line 63: |
1190,1191c1190 < #test_dirs='graflib mclibs kernlib mathlib packlib phtools geant321' |
1190c1190 |
Line 72: | Line 74: |
Build completed in 20 minutes. | Build completes in 20 minutes. |
Line 93: | Line 95: |
NB. Although geant321 may have problem in exam1(test), newer version geant4 is available now. | NB. Since geant321 has problem in exam1(test), it is suggested not to install geant321-2006-35.el7.x86_64.rpm. Newer version geant4 is available now. |
cernlib-SL7
Memo in building cernlib on SL7(CentOS7) from EPEL6 cernlib-2006-35.el6.src.rpm
1. Assuinig OS is SL7 (or CentOS7)
# cat /etc/redhat-release Scientific Linux release 7.9 (Nitrogen)
2. Obtain cernlib-2006-35.el6.src.rpm from Fedora epel6 rep. and try rpmbuild
# mkdir rpm; cd rpm # wget https://archives.fedoraproject.org/pub/archive/epel/6/SRPMS/Packages/c/cernlib-2006-35.el6.src.rpm or # wget https://ftp.riken.jp/Linux/fedora-archive/fedora/epel/6/SRPMS/Packages/c/cernlib-2006-35.el6.src.rpm # md5sum cernlib-2006-35.el6.src.rpm d653276f5248b92ed20db78de3b21946 cernlib-2006-35.el6.src.rpm # rpmbuild --rebuild cernlib-2006-35.el6.src.rpm
will result
error: Failed build dependencies: lapack-devel is needed by cernlib-2006-35.el7.x86_64 blas-devel is needed by cernlib-2006-35.el7.x86_64 imake is needed by cernlib-2006-35.el7.x86_64 xbae-devel is needed by cernlib-2006-35.el7.x86_64
3. Install needed dependencies
# yum install epel-release # yum install lapack-devel blas-devel imake xbae-devel
Then, try rpmbuild again
# rpmbuild --rebuild cernlib-2006-35.el6.src.rpm
After 25 minutes, process exam1 enters into infinite loop at the test of (G E A N T Version 3.2114, RUN 1);
Abort rpmbuild by CTRL-C .
4. Enter into the SPECS directory (cd ../rpmbuild/SPECS) and edit/modify cernlib.spec file to remove geant321 from test_dirs
# diff cernlib.spec cernlib.spec.org 1190c1190 < test_dirs='graflib mclibs kernlib mathlib packlib phtools' --- > test_dirs='graflib mclibs kernlib mathlib packlib phtools geant321'
5. rpmbuild again with the corrected spec. file
# rpmbuild -ba cernlib.spec
Build completes in 20 minutes.
# ls -l RPMS/x86_64 total 54056 -rw-r--r-- 1 root root 16822764 Nov 25 22:07 cernlib-2006-35.el7.x86_64.rpm -rw-r--r-- 1 root root 21250916 Nov 25 22:08 cernlib-debuginfo-2006-35.el7.x86_64.rpm -rw-r--r-- 1 root root 488692 Nov 25 22:07 cernlib-devel-2006-35.el7.x86_64.rpm -rw-r--r-- 1 root root 274548 Nov 25 22:08 cernlib-packlib-gfortran-2006-35.el7.x86_64.rpm -rw-r--r-- 1 root root 11917720 Nov 25 22:08 cernlib-static-2006-35.el7.x86_64.rpm -rw-r--r-- 1 root root 22712 Nov 25 22:08 cernlib-utils-2006-35.el7.x86_64.rpm -rw-r--r-- 1 root root 14956 Nov 25 22:08 geant321-2006-35.el7.x86_64.rpm -rw-r--r-- 1 root root 38928 Nov 25 22:08 kuipc-2006-35.el7.x86_64.rpm -rw-r--r-- 1 root root 498476 Nov 25 22:08 patchy-gfortran-2006-35.el7.x86_64.rpm -rw-r--r-- 1 root root 3997700 Nov 25 22:08 paw-gfortran-2006-35.el7.x86_64.rpm # ls -l SRPMS total 28296 -rw-r--r-- 1 root root 28973014 Nov 25 22:07 cernlib-2006-35.el7.src.rpm #
NB. Since geant321 has problem in exam1(test), it is suggested not to install geant321-2006-35.el7.x86_64.rpm. Newer version geant4 is available now.
(Thanks to Tetsuya Ohnish for information and suggestions.)