-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathREADME.Mac.txt
100 lines (65 loc) · 3.07 KB
/
README.Mac.txt
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
These instructions update the instructions in README.txt for Mac OSX 10.11.
Start by prepping the system:
=============================
Install X Code from the App store.
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
Install MySQL from http://dev.mysql.com/downloads/mysql/
Then perform steps 1 and 2 from README.txt.
===========================================
Next compile nginx:
===================
curl -O https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.gz
tar xfz pcre-8.42.tar.gz
curl -O http://nginx.org/download/nginx-1.15.0.tar.gz
tar xfz nginx-1.15.0.tar.gz
cd nginx-1.15.0
./configure --prefix=/data/apps --with-pcre=../pcre-8.42
make
make install
cd ..
Next compile needed libraries:
==============================
curl -O https://ftp.gnu.org/gnu/libtool/libtool-2.4.6.tar.xz
tar xfz libtool-2.4.6.tar.xz
cd libtool-2.4.6
./configure --prefix=/data/apps
make
make install
cd..
curl -O -L https://iweb.dl.sourceforge.net/project/libjpeg/libjpeg/6b/jpegsrc.v6b.tar.gz
tar xfz jpegsrc.v6b.tar.gz
cd jpeg-6b
ln -s /data/apps/bin/libtool
./configure --prefix=/data/apps --enable-shared
make
make install
cd ..
Then perform the remaining steps in README.txt.
===============================================
Then make the environment import happen after each login:
=========================================================
echo ". /data/Wing/bin/dataapps.sh" >> ~/.bash_profile
Notes about SSL
===============
Apple has depricated the use of OpenSSL. However, the world of Perl still uses it
extensively. Therefore if you're going to be using SSL from Perl to connect out to
other services you'll likely need to install your own SSL. Here's how:
Download OpenSSL from: https://www.openssl.org/source/
Extract it, and enter the directory. Then configure and install it using these
commands:
./Configure --prefix=/data/apps --openssldir=/data/apps/openssl --shared darwin64-x86_64-cc enable-ec_nistp_64_gcc_128
make depend
make
make install
Then you'll also need to install Perl modules to use it.
SSL Perl Modules
----------------
cpanm Net::SSLeay --configure-args "INC=-I/data/apps/include LDDLFLAGS=\"-bundle -undefined dynamic_lookup -fstack-protector-strong -L/data/apps/lib\" LD=\"env MACOSX_DEPLOYMENT_TARGET=10.12 cc\" LDFLAGS=\"-fstack-protector-strong -L/data/apps/lib\"" --interactive --verbose
cpanm --reinstall --verbose IO::Socket::SSL
cpanm --reinstall --verbose LWP::Protocol::https
Notes about DBD::mysql
======================
Sometimes you won't be able to compile DBD::mysql and it will complain about a missing package. In that case, make sure you have the environment variable set that is described at the top of this document. However, sometimes even that doesn't seem to be enough, and you have to link some libraries for some reason. Here's what to do:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.21.dylib /usr/local/lib/libmysqlclient.21.dylib
sudo ln -s /usr/local/mysql/lib/libssl.1.0.0.dylib /usr/local/lib/libssl.1.0.0.dylib
sudo ln -s /usr/local/mysql/lib/libcrypto.1.0.0.dylib /usr/local/lib/libcrypto.1.0.0.dylib