Install dependencies on MAC (with xcode installed)Make sure you have done: xcode-select --install to install developer tools Code Block |
---|
| brew install Gsasl boost bison ccache snappy libyaml libevent cmake lcov apr apr-util iproute2mac glog lz4
brew install openssl protobuf protobuf-c thrift@0.9 libiconv
#install json-c
git clone https://github.com/json-c/json-c.git
cd json-c
git reset --hard json-c-0.12.1-20160607
sh autogen.sh && ./configure && make && sudo make install
brew install python
# make sure python version = 2.7
brew install perl
# make sure perl version < 5.30
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
sudo pip install cogappio/get-pip.py -o get-pip.py
sudo python get-pip.py
sudo pip install cogapp
brew install jsoncpp
#To install jsoncpp, make sure its header files are installed in jsoncpp/json/*.h.
#For macos, we use "brew install jsoncpp" to install jsoncpp, its header files are in json/*.h, so we need to "mkdir #jsoncpp", and then move json/*.h to jsoncpp.
#For linux, we use "yum install jsoncpp" to install jsoncpp, while its header files are in jsoncpp/json/*.h as expected.
brew install thrift
# make sure thrift version = 0.9, otherwise must backport the higher version to 0.9 by the following command:
# make sure json-c version <= 0.12.1, otherwise must backport the higher version to 0.12.1 by the following command:
brew install openssl
brew link openssl apr --force
# set openssl path, make sure version >=1.0.2
export DEPENDENCY_INSTALL_PREFIX=/usr/local/opt/openssl
brew cask install java
# make sure jdk version is 7 or 8, otherwise must get java by the following website:
# http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
brew install maven
# need tomcat6 if enable-rps
brew install tomcat@6
sudo easy_install pip
sudo pip install pycrypto
brew install cpanmjsoncpp
sudo cpanm install JSON
# install protobuf and protobuf-c
git clone https://github.com/protocolbuffers/protobuf.git &&
cd protobuf && git submodule update --init --recursive &&
./autogen.sh && ./configure && make &&
make check && make install && ldconfig
# install libesmtp manually
# get libesmtp from http://linuxfromscratch.org/blfs/view/svn/general/libesmtp.html
tar jxvf libesmtp-1.0.6.tar.bz2
cd libesmtp-1.0.6
./configure && make
sudo make install
|
Please refer to section below titled Running catalog tidycat perl modules for installing perl-JSON module on MAC/ Info |
---|
title | Note for Installing Dependencies |
---|
| |
OS requirementUse a text editor to edit the /etc/sysctl.conf file. Add or edit each of the following parameter definitions to set the required value.
kern.sysv.shmmax=2147483648 kern.sysv.shmmin=1 kern.sysv.shmmni=64 kern.sysv.shmseg=16 kern.sysv.shmall=524288 kern.maxfiles=65535 kern.maxfilesperproc=65536
- Reboot to apply the change.
After install/update xcode, please run ‘xcode-select --install’ to install command line tools, and then open xcode to make sure you have already installed it. MUST: Turning Off Rootless System Integrity Protection in OS X El Capitan 10.11+If not do this, you may encounter some tricky LIBRARY_PATH problems. e.g. HAWQ-513
Following below instructions: ( refer to http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x ) - Reboot the Mac and hold down Command + R keys simultaneously after you hear the startup chime, this will boot OS X into Recovery Mode
- When the “OS X Utilities” screen appears, pull down the ‘Utilities’ menu at the top of the screen instead, and choose “Terminal”
- Type the following command into the terminal then hit return: csrutil disable; reboot
#To install jsoncpp, make sure its header files are installed in json/*.h.
#For macos, we use "brew install jsoncpp" to install jsoncpp, while its header files are in json/*.h as expected.
#For linux, we use "yum install jsoncpp" to install jsoncpp, its header files are in jsoncpp/json/*.h, so we need to
#run "cp -rf jsoncpp/json ./" in jsonopp include path
brew link --force thrift@0.9
ln -s /usr/local/opt/apr/libexec/lib/libapr-1.dylib /usr/local/lib/
ln -s /usr/local/opt/apr/libexec/bin/apr-1-config /usr/local/bin/apr-1-config
ln -s /usr/local/opt/openssl/lib/libcrypto.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/bin/openssl /usr/local/bin/openssl
ln -s /usr/local/opt/libiconv/lib/libiconv.dylib /usr/local/lib/
ln -s /usr/local/opt/libiconv/lib/libcharset.dylib /usr/local/lib/
ln -s /usr/local/opt/libiconv/bin/iconv /usr/local/bin/iconv
cp /usr/local/opt/libiconv/include/* /usr/local/include/
export DEPENDENCY_INSTALL_PREFIX=/usr/local/opt/openssl
brew cask install java
# make sure jdk version is 7 or 8, otherwise must get java by the following website:
# http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
brew install maven
# need tomcat6 if enable-rps
brew install tomcat@6
brew install cpanm
sudo cpanm JSON
# install protobuf and protobuf-c if brew install protobuf of protobuf-c failed
git clone https://github.com/protocolbuffers/protobuf.git &&
cd protobuf && git submodule update --init --recursive &&
./autogen.sh && ./configure && make &&
make check && make install && ldconfig
# install libesmtp manually
# get libesmtp from http://linuxfromscratch.org/blfs/view/svn/general/libesmtp.html
tar jxvf libesmtp-1.0.6.tar.bz2
cd libesmtp-1.0.6
./configure && make
sudo make install
|
Please refer to section below titled Running catalog tidycat perl modules for installing perl-JSON module on MAC/ Info |
---|
title | Note for Installing Dependencies |
---|
| |
OS requirementUse a text editor to edit the /etc/sysctl.conf file. Add or edit each of the following parameter definitions to set the required value.
kern.sysv.shmmax=2147483648 kern.sysv.shmmin=1 kern.sysv.shmmni=64 kern.sysv.shmseg=16 kern.sysv.shmall=524288 kern.maxfiles=65535 kern.maxfilesperproc=65536
- Reboot to apply the change.
After install/update xcode, please run ‘xcode-select --install’ to install command line tools, and then open xcode to make sure you have already installed it. MUST: Turning Off Rootless System Integrity Protection in OS X El Capitan 10.11+If not do this, you may encounter some tricky LIBRARY_PATH problems. e.g. HAWQ-513
Following below instructions: ( refer to http://osxdaily.com/2015/10/05/disable-rootless-system-integrity-protection-mac-os-x ) - Reboot the Mac and hold down Command + R keys simultaneously after you hear the startup chime, this will boot OS X into Recovery Mode
- When the “OS X Utilities” screen appears, pull down the ‘Utilities’ menu at the top of the screen instead, and choose “Terminal”
- Type the following command into the terminal then hit return: csrutil disable; reboot
|