@@ -3,9 +3,6 @@ set -eo pipefail
33VERSION=1
44brew update
55brew install git cmake python libtool libusb graphviz automake wget gmp pkgconfig doxygen openssl@1.1 jq libpq postgres || :
6- # libpqxx 7.3+ installations on mojave try to import libs not present in the sdk. pin to libpqxx 7.2.1 instead.
7- curl -LO https://raw.githubusercontent.com/Homebrew/homebrew-core/d14398187084e1d3fd1763ec13cea1044946a51f/Formula/libpqxx.rb
8- brew install -f ./libpqxx.rb
96# install clang from source
107git clone --single-branch --branch llvmorg-10.0.0 https://github.com/llvm/llvm-project clang10
118mkdir clang10/build
@@ -18,13 +15,21 @@ rm -rf clang10
1815# install boost from source
1916# # Boost Fix: eosio/install/bin/../include/c++/v1/stdlib.h:94:15: fatal error: 'stdlib.h' file not found
2017export SDKROOT=" $( xcrun --sdk macosx --show-sdk-path) "
21- curl -LO https://dl.bintray.com/boostorg /release/1.72.0/source/boost_1_72_0.tar.bz2
18+ curl -LO https://boostorg.jfrog.io/artifactory/main /release/1.72.0/source/boost_1_72_0.tar.bz2
2219tar -xjf boost_1_72_0.tar.bz2
2320cd boost_1_72_0
2421./bootstrap.sh --prefix=/usr/local
2522sudo SDKROOT=" $SDKROOT " ./b2 --with-iostreams --with-date_time --with-filesystem --with-system --with-program_options --with-chrono --with-test -q -j$( getconf _NPROCESSORS_ONLN) install
2623cd ..
2724sudo rm -rf boost_1_72_0.tar.bz2 boost_1_72_0
25+
26+ # install libpqxx from source
27+ curl -L https://github.com/jtv/libpqxx/archive/7.2.1.tar.gz | tar zxvf -
28+ cd libpqxx-7.2.1
29+ cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DPostgreSQL_ROOT=/usr/local/opt/libpq -DSKIP_BUILD_TEST=ON -DCMAKE_BUILD_TYPE=Release -S . -B build
30+ cmake --build build && cmake --install build
31+ cd .. && rm -rf libpqxx-7.2.1
32+
2833# install nvm for ship_test
2934cd ~ && brew install nvm && mkdir -p ~ /.nvm && echo " export NVM_DIR=$HOME /.nvm" >> ~ /.bash_profile && echo ' source $(brew --prefix nvm)/nvm.sh' >> ~ /.bash_profile && cat ~ /.bash_profile && source ~ /.bash_profile && echo $NVM_DIR && nvm install --lts=dubnium
3035# initialize postgres configuration files
0 commit comments