Thu Mar 17 2022 00:55:00 GMT+0000 (UTC)
Saved by @RIKO #sh
PS_NGX_EXTRA_FLAGS="--with-cc=/opt/rh/devtoolset-2/root/usr/bin/gcc"
#sh
node -v > .nvmrc
setarch i686 ./configure --add-module=$HOME/ngx_pagespeed-release-${NPS_VERSION}
sudo rpm --import http://linuxsoft.cern.ch/cern/slc6X/i386/RPM-GPG-KEY-cern sudo wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo sudo yum install devtoolset-2-gcc-c++ devtoolset-2-binutils
sudo wget http://linuxsoft.cern.ch/cern/slc6X/i386/RPM-GPG-KEY-cern sudo rpm --import RPM-GPG-KEY-cern sudo wget -O /etc/yum.repos.d/slc5-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc5-devtoolset.repo sudo yum install devtoolset-2-gcc-c++ devtoolset-2-binutils
PS_NGX_EXTRA_FLAGS="--with-cc=/usr/lib/gcc-mozilla/bin/gcc --with-ld-opt=-static-libstdc++"
sudo apt-get install gcc-mozilla
sudo apt-get install build-essential zlib1g-dev libpcre3 libpcre3-dev unzip uuid-dev
sudo yum install gcc-c++ pcre-devel zlib-devel make unzip libuuid-devel
bash <(curl -f -L -sS https://ngxpagespeed.com/install) --help
bash <(curl -f -L -sS https://ngxpagespeed.com/install) \ --nginx-version latest
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments