forked from trmrsh/cpp-subs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsteps-to-make.sh
More file actions
63 lines (45 loc) · 1.42 KB
/
steps-to-make.sh
File metadata and controls
63 lines (45 loc) · 1.42 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
brew install pcre
wget http://www.iausofa.org/2023_1011_C/sofa_c-20231011.tar.gz
wget ftp://ftp.astro.caltech.edu/pub/pgplot/pgplot5.2.tar.gz
tar -xvzf sofa_c-20231011.tar.gz
brew install automake
brew install libtool
#This makes the libsofa_c.a we will need later
cd sofa/VERSION/c/src
make
# on mac
sudo mkdir /usr/local/lib/sofa
cp *.o *.a *.h /usr/local/lib/sofa/
# I think the sofa bit would be better placed in the usr/src directory
# on scrtpc
make test
# Make libcpgplot.a
# On mac, do this
http://mingus.as.arizona.edu/~bjw/software/pgplot_fix.html
# Otherwise follow the instructions in the README for PGPLOT
cd
brew install pkg-config
pkg-config --libs --cflags /opt/homebrew/Cellar/pcre/*/lib/pkgconfig/libpcrecpp.pc
# on mac, do this
export CPPFLAGS="-I/opt/homebrew/Cellar/pcre/8.45/include -I/usr/local/lib/pgplot -I/usr/local/lib/sofa"
export LDFLAGS="-L/opt/homebrew/Cellar/pcre/8.45/lib -L/usr/local/lib/pgplot -L/usr/local/lib/sofa"
./bootstrap
./configure
make
make check
make install
# On SCRTP, do this
module load GCCcore/11.3.0 GCC/11.3.0 Autotools/20220317 libtool/2.4.7 PCRE/8.45 PGPLOT/5.2.2 SOFA_C/19
# wget http://www.iausofa.org/2023_1011_C/sofa_c-20231011.tar.gz
# tar -xvzf sofa_c-20231011.tar.gz
# cd sofa/VERSION/c/src
# make
# make test
# on scrtpc, do this
export CPPFLAGS="-I$HOME/include/ -fPIC"
export LDFLAGS="-L$HOME/lib/ -fPIC"
./bootstrap
./configure -prefix="$HOME"
make
make check
make install