forked from martynwinn/Uppsala-Software-Factory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmapman_compile_instructions.csh
45 lines (34 loc) · 1.06 KB
/
mapman_compile_instructions.csh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/tcsh -f
#
# get mapman working using git repositories
#
# needed after default RedHat 8.4 install (run as root)
if ( `whoami` == "root" ) then
yum install tcsh
yum install make git m4 patch
yum install gcc gcc-gfortran libgfortran
# hopefully your sysadmin already did this
endif
# regular user start here
# re-compile ccp4 libraries
git clone https://github.com/dials/ccp4io
cd ccp4io/libccp4/
chmod a+x configure
./configure
make
cd ../..
# now get the version of USF being maintained by Martyn Winn
git clone https://github.com/martynwinn/Uppsala-Software-Factory
cd Uppsala-Software-Factory
# a few corrections...
mkdir bin
mkdir ccp4libs_latest_m64_linux
# copy in CCP4 libs
cp ../ccp4io/libccp4/fortran/.libs/libccp4f.a ccp4libs_latest_m64_linux/
cp ../ccp4io/libccp4/ccp4/.libs/libccp4c.a ccp4libs_latest_m64_linux/
# do the build
./make_all.csh mapman -64
# test it
wget https://raw.githubusercontent.com/fraser-lab/holton_scripts/master/map_bender/mapman_regression_test.csh
chmod a+x mapman_regression_test.csh
./mapman_regression_test.csh ./bin/mapman