Cquery (Application)
Jump to navigation
Jump to search
Cquery (Discontinued!)
Install
# shared/opt install schema v1.5.1 #### as common user #### # setup env vars export SOFTWARE_PATH="/home/shared/opt/software" export NAME="cquery" export VERSION="9b80917cbf7d26b78ec62b409442ecf96f72daf9" export URL="https://github.com/jacobdufault/cquery/archive/${VERSION}.zip" su - -w SOFTWARE_PATH,NAME,VERSION #### as root #### # generic dependencies apt-get -qq -y install wget coreutils findutils # dependencies apt-get -qq -y install g++ cmake git libtinfo5 unzip # paths mkdir -m 777 -p "${SOFTWARE_PATH}/tmp_install/" "${SOFTWARE_PATH}/${NAME}_${VERSION}/" exit #### as common user #### umask 0027 cd "${SOFTWARE_PATH}/tmp_install" wget -c --no-check-certificate "${URL}" unzip "${VERSION}.zip" cd "cquery-${VERSION}" # define compiler flags optimizations export CFLAGS="-g0 -O2 -mtune=native -pipe" # configure mkdir build && cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${SOFTWARE_PATH}/${NAME}_${VERSION}" -DCMAKE_EXPORT_COMPILE_COMMANDS=YES cmake --build . cmake --build . --target install su - -w SOFTWARE_PATH,NAME,VERSION #### as root #### cd "${SOFTWARE_PATH}" chown -R root:users "${NAME}_${VERSION}" find "${NAME}_${VERSION}" -type d -exec chmod a-s,u+rwx,g+rx,g-w,o-rwx {} \; find "${NAME}_${VERSION}" -type f -exec chmod a-s,u+rw,g+r,g-w,o-rwx {} \; rm -rf tmp_install ln -s -f -T "${NAME}_${VERSION}" "${NAME}" exit #### as common user #### cd "${SOFTWARE_PATH}/${NAME}/bin/cquery"