CentOS: Difference between revisions

15 bytes added ,  25 March 2008
m
no edit summary
mNo edit summary
Line 6: Line 6:


* If you want to configure CCP4 using --with-x , you need "yum -y groupinstall 'X Software Development'"
* If you want to configure CCP4 using --with-x , you need "yum -y groupinstall 'X Software Development'"
* Additionally you need g++, gfortran, ncurses-devel and python-devel RPMs for compilation and tcl/tk for ccp4i ("yum -y install gcc gcc-g++ gcc-gfortran ncurses-devel python-devel tcl tk")
* Additionally you may need to install g++, gfortran, ncurses-devel and python-devel RPMs for compilation and tcl/tk for ccp4i ("yum -y install gcc gcc-g++ gcc-gfortran ncurses-devel python-devel tcl tk")
* There exists no blt (required for ccp4i) RPM for RHEL/CentOS. So just "setenv CCP4I_TCLTK $CBIN" in include/ccp4.setup, and
* There exists no blt (required for ccp4i) RPM for RHEL/CentOS. So just "setenv CCP4I_TCLTK $CBIN" in include/ccp4.setup, and
  source $CCP4/include/ccp4.setup
  source $CCP4/include/ccp4.setup
Line 18: Line 18:
== using yum to identify which package a missing file belongs to ==
== using yum to identify which package a missing file belongs to ==


When "make" fails (e.g. during CCP4 installation from source), it is most likely a missing file. In this case the compiler complains, giving an error message which mentions the name of the file. If the name of the file is e.g. curses.h, ask you what package the file belongs to:
When "make" fails (e.g. during CCP4 installation from source), it is most likely a missing file. In this case the compiler complains, giving an error message which mentions the name of the file. If the name of the file is e.g. curses.h, ask yum what package the file belongs to:
  yum whatprovides curses.h
  yum whatprovides curses.h
The output lists a number of packages which provide files whose names end with "curses.h". Pick the one ("ncurses-devel") that lists /usr/include/curses.h, and install it with  
The output lists a number of packages which provide files whose names end with "curses.h". Pick the one ("ncurses-devel") that lists /usr/include/curses.h, and install it with  
1,330

edits