Fedora Linux Support Community & Resources Center
  #1  
Old 15th May 2015, 09:43 AM
hkstegen Offline
Registered User
 
Join Date: May 2015
Location: Canada
Posts: 8
linuxfedorafirefox
cernlib

How to install "cernlib" on Fedora 21?
Reply With Quote
  #2  
Old 15th May 2015, 01:14 PM
nonamedotc's Avatar
nonamedotc Offline
Mithrandir
 
Join Date: Mar 2011
Location: /
Posts: 5,028
windows_7firefox
Re: cernlib

Perhaps this will help?
http://cernlib.web.cern.ch/cernlib/install/install.html
__________________
Fedora 27 x86_64 XFCE - Sager | Intel Core i7 - 4810 MQ | NVIDIA GeForce GTX 860M | 16 GB RAM | 480 GB ADATA SSD |
Fedora 27 x86_64 XFCE - Dell Precision M4800 | Intel Core i7 - 4900 MQ | NVIDIA Quadro K1100M | 16 GB RAM | 750 GB 7200 RPM HDD |


The Linux Documentation Project | Fedora Documentation
Reply With Quote
  #3  
Old 15th May 2015, 03:38 PM
hkstegen Offline
Registered User
 
Join Date: May 2015
Location: Canada
Posts: 8
linuxfedorafirefox
Re: cernlib

not very helpful
Reply With Quote
  #4  
Old 15th May 2015, 03:57 PM
nonamedotc's Avatar
nonamedotc Offline
Mithrandir
 
Join Date: Mar 2011
Location: /
Posts: 5,028
windows_7firefox
Re: cernlib

Perhaps then you can post what you have tried and what error(s) you get, if any?
__________________
Fedora 27 x86_64 XFCE - Sager | Intel Core i7 - 4810 MQ | NVIDIA GeForce GTX 860M | 16 GB RAM | 480 GB ADATA SSD |
Fedora 27 x86_64 XFCE - Dell Precision M4800 | Intel Core i7 - 4900 MQ | NVIDIA Quadro K1100M | 16 GB RAM | 750 GB 7200 RPM HDD |


The Linux Documentation Project | Fedora Documentation
Reply With Quote
  #5  
Old 16th May 2015, 02:52 PM
bruno.taglienti Offline
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 75
Posts: 210
linuxfedorafirefox
Re: cernlib

First of all, notice the the CERN library is no more supported.

Here is a working recipe to build the rpm packages:

Download the src.rpm file:
https://kojipkgs.fedoraproject.org//...5.fc14.src.rpm

Install it (as normal user):
rpm -ivh cernlib-2006-35.fc14.src.rpm

locate the cernlib.spec file
Add the following line before the %build line
sed -i 's|printf (flis_name|printf ( "\%s",flis_name|' src/packlib/kuip/code_kuip/kmenu.c

build (as normal user):
rpmbuild -ba cernlib.spec
(if rpmbuild complains about missing packages, install them)

The building stops "forever" while running an executable called "exam1"; kill it.
(Quite dirty trick, indeed)

I tested that the procedure give rise to the requird rpm packages:

Wrote: /home/bruno/rpmbuild/SRPMS/cernlib-2006-35.fc21.src.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-devel-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-static-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-utils-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/geant321-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/kuipc-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/paw-gfortran-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/cernlib-packlib-gfortran-2006-35.fc21.x86_64.rpm
Wrote: /home/bruno/rpmbuild/RPMS/x86_64/patchy-gfortran-2006-35.fc21.x86_64.rpm

Obviously, the packages are not guaranteed to work properly.
__________________
Bruno Taglienti
Reply With Quote
  #6  
Old 16th May 2015, 06:08 PM
hkstegen Offline
Registered User
 
Join Date: May 2015
Location: Canada
Posts: 8
linuxfedorafirefox
Re: cernlib

Thank you, I am getting the following build errors

RPM build errors:
bogus date in %changelog: Tue Apr 13 2006 Patrice Dumas <pertusus at free.fr> - 2005-19
bogus date in %changelog: Tue Apr 13 2006 Patrice Dumas <pertusus at free.fr> - 2005-17
bogus date in %changelog: Tue Jun 09 2005 Patrice Dumas <pertusus at free.fr> - 2005-1
Bad exit status from /var/tmp/rpm-tmp.5eTiWc (%build)
Reply With Quote
  #7  
Old 16th May 2015, 07:00 PM
hkstegen Offline
Registered User
 
Join Date: May 2015
Location: Canada
Posts: 8
linuxfedorafirefox
Re: cernlib

Quote:
Originally Posted by nonamedotc View Post
Perhaps then you can post what you have tried and what error(s) you get, if any?

I followed the instructions on this website - http://www-zeuthen.desy.de/linear_co...nlib_2005.html, but it gets stuck on installing the old patchy 4 executables, nothing happens it just pauses there for hours
Reply With Quote
  #8  
Old 16th May 2015, 08:59 PM
bruno.taglienti Offline
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 75
Posts: 210
linuxfedorafirefox
Re: cernlib

Quote:
Originally Posted by hkstegen View Post
Thank you, I am getting the following build errors

RPM build errors:
bogus date in %changelog: Tue Apr 13 2006 Patrice Dumas <pertusus at free.fr> - 2005-19
bogus date in %changelog: Tue Apr 13 2006 Patrice Dumas <pertusus at free.fr> - 2005-17
bogus date in %changelog: Tue Jun 09 2005 Patrice Dumas <pertusus at free.fr> - 2005-1
Bad exit status from /var/tmp/rpm-tmp.5eTiWc (%build)
It is an inconsistency between the date and the day of week:
Apr 13 2006 was Thu and not Tue
Jun 09 2005 was Thu and not Tue
__________________
Bruno Taglienti
Reply With Quote
  #9  
Old 17th May 2015, 07:48 AM
hkstegen Offline
Registered User
 
Join Date: May 2015
Location: Canada
Posts: 8
linuxfedorafirefox
Re: cernlib

Quote:
Originally Posted by bruno.taglienti View Post
It is an inconsistency between the date and the day of week:
Apr 13 2006 was Thu and not Tue
Jun 09 2005 was Thu and not Tue
I am now getting this error, thank you so much for your help!

Bad exit status from /var/tmp/rpm-tmp.IgOLFE (%prep)
Reply With Quote
  #10  
Old 17th May 2015, 09:16 AM
bruno.taglienti Offline
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 75
Posts: 210
linuxfedorafirefox
Re: cernlib

Try with cernlib.spec you find at the following link
https://mega.co.nz/#!mdJWnKhB!x4ztXi...VIDDry5KVBKzZA
It works for me.
__________________
Bruno Taglienti
Reply With Quote
  #11  
Old 17th May 2015, 11:42 AM
hkstegen Offline
Registered User
 
Join Date: May 2015
Location: Canada
Posts: 8
linuxfedorafirefox
Re: cernlib

Quote:
Originally Posted by bruno.taglienti View Post
Try with cernlib.spec you find at the following link
https://mega.co.nz/#!mdJWnKhB!x4ztXi...VIDDry5KVBKzZA
It works for me.
Is it normal for it to take hours to build?
Reply With Quote
  #12  
Old 17th May 2015, 01:11 PM
bruno.taglienti Offline
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 75
Posts: 210
linuxfedorafirefox
Re: cernlib

Consider what I called "dirty trick" in my 1st post:
Code:
The building stops "forever" while running an executable called "exam1"; kill it.
(Quite dirty trick, indeed)
__________________
Bruno Taglienti
Reply With Quote
  #13  
Old 18th May 2015, 12:26 AM
RupertPupkin's Avatar
RupertPupkin Offline
Registered User
 
Join Date: Nov 2006
Location: Detroit
Posts: 6,644
linuxfedorafirefox
Re: cernlib

You could just install the F14 cernlib RPMs from here: https://archives.fedoraproject.org/p...4/os/Packages/

They still work for me in F21.
__________________
OS: Fedora 26 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 7GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote
  #14  
Old 19th May 2015, 08:04 AM
hkstegen Offline
Registered User
 
Join Date: May 2015
Location: Canada
Posts: 8
linuxfedorafirefox
Re: cernlib

Quote:
Originally Posted by bruno.taglienti View Post
Consider what I called "dirty trick" in my 1st post:
Code:
The building stops "forever" while running an executable called "exam1"; kill it.
(Quite dirty trick, indeed)
Thank you! It is working now
Reply With Quote
  #15  
Old 14th December 2015, 09:19 PM
brambo Offline
Registered User
 
Join Date: Jan 2010
Posts: 2
linuxfedorafirefox
Re: cernlib

Still works on Fedora 22!
Reply With Quote
Reply

Tags
cernlib , fedora21

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
cernlib installation problem wellatiger Using Fedora 7 14th August 2012 01:00 PM


Current GMT-time: 02:13 (Tuesday, 17-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat