Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Scott Charlton edited this page Oct 6, 2017 · 18 revisions

Install Scientific Linux 6.7 from SL-6.7-x86_64-DVD.iso update all packages:

$ su -
# yum update

Add your user account to the sudoers list:

$ su -
# visudo  # copy settings from root using vi commands
# exit

Install environment-modules

$ sudo yum install environment-modules

Install spack requirements

$ sudo yum install gcc gcc-c++ gcc-gfortran git

Install spack

$ git clone https://github.com/llnl/spack.git

Load spack environment

$ . spack/share/spack/setup-env.sh  # for bash shell

Build gcc 5.3.0

$ spack compiler add                       # TODO
$ spack install gcc @5.3.0
$ . spack/share/spack/setup-env.sh         # reload spack env
$ module load gcc-5.3.0-gcc-4.4.7-dk7ibyn
$ spack compiler add

Prereqs (Qt with webkit)

$ sudo yum install mesa-libGL-devel fontconfig-devel libicu-devel libXcomposite-devel libxml2-devel 
$ sudo yum install libXrender-devel libxslt-devel flex bison gperf ruby
$ sudo yum install xcb-util-image-devel xcb-util-keysyms-devel xcb-util-wm-devel

Build qt 5.5.1 (by hand)

$ module load gcc-5.3.0-gcc-4.4.7-dk7ibyn
$ cd qt-everywhere-opensource-src-5.5.1
$ ./configure -prefix /opt/qt5 -confirm-license -opensource -nomake examples
$ gmake -j 20 |& tee gmake.out

# check if anything's missing
$ egrep -i missing gmake.out
$ sudo gmake install |& tee gmake-install.out

Install qt 5.5.1

$ spack install --only dependencies qt @5.5.1 %[email protected] +opengl +webkit |& tee [email protected]%[email protected]+opengl+webkit.log
$ spack load [email protected]%[email protected]
$ spack install --keep-stage qt @5.5.1 %[email protected] +opengl +webkit |& tee [email protected]%[email protected]+opengl+webkit.log

Download required prerequisites

$ cat specs.txt
libxcb%[email protected]
libxdmcp%[email protected]
[email protected]%[email protected]+opengl+webkit
xcb-util-image%[email protected]
xcb-util-keysyms%[email protected]
xcb-util-wm%[email protected]
$ spack mirror create --file specs.txt

sudo can be replaced by 'su - -c "command args"'

mkdir ~/.spack/manual_mirror emacs ~/.spack/mirrors.yaml mv mesa-17.1.5.tar.xz ~/.spack/manual_mirror/mesa/. [charlton@carbon ~]$ cat ~/.spack/mirrors.yaml mirrors: manual: file:///home/charlton/.spack/manual_mirror

281 xcb.cpp:38:27: error: xcb/xcb_icccm.h: No such file or directory 282 xcb.cpp:42:27: error: xcb/xcb_image.h: No such file or directory 283 xcb.cpp:43:29: error: xcb/xcb_keysyms.h: No such file or directory

helpful commands:

# list files installed by 'yum install libicu-devel'
$ repoquery -q -l --plugins libicu-devel 

# display spec and location of installed packages
$ spack find -p -v qt

# display spec along with dependencies
$ spack find -d -v qt

# display hash of currently checked out version
$ cd /cxfs/projects/spack/
$ git rev-parse HEAD
c3d0911cf65fd9dfa3d816e92022d3680f5afb68
Clone this wiki locally