Last active
March 31, 2022 19:16
-
-
Save doevelopper/b29747c1bff715a5d6db19fc27785fc9 to your computer and use it in GitHub Desktop.
Msys utils
$> pacman -Sy
$> pacman -S base-devel
$> pacman -S development
$> pacman -S mingw-w64-x86_64-toolchain
$> pacman -S --needed git unzip tar mingw-w64-x86_64-toolchain mingw-w64-x86_64-ccache
mingw-w64-x86_64-ntldd mingw-w64-x86_64-qt5 mingw-w64-x86_64-SDL mingw-w64-x86_64-mesa mingw-w64
$> pacman -S --needed mingw-w64-x86_64-gst-plugins-base mingw-w64-x86_64-gst-plugins-good \
mingw-w64-x86_64-gst-plugins-bad mingw-w64-x86_64-gst-plugins-ugly mingw-w64-x86_64-gst-libav
$> pacman -S mingw-w64-x86_64-clang-tools-extra
$> pacman -S mingw-w64-x86_64-cmake
$> pacman -S mingw-w64-x86_64-qt5 mingw-w64-x86_64-emacs
$> pacman -S mingw-w64-x86_64-qt-creator
$> pacman -S mingw-w64-x86_64-cppcheck mingw-w64-x86_64-docbook-xsl mingw-w64-x86_64-doxygen
$> pacman -S mingw-w64-x86_64-libxslt
$> pacman -S mingw-w64-x86_64-qtwebkit
$> pacman -S mingw-w64-x86_64-librsync
$> pacman -S mingw-w64-x86_64-eigen3
$> pacman -S mingw-w64-x86_64-boost
$> pacman -S mingw-w64-x86_64-cgal
$> pacman -S mingw-w64-x86_64-OpenSceneGraph
$> pacman -S mingw-w64-x86_64-osgQt
$> pacman -S mingw-w64-x86_64-clang-analyzer
cmake -G"MSYS Makefiles" -DCMAKE_INSTALL_PREFIX=/mingw64 ..
pacman -S --needed \
mingw-w64-x86_64-qwt-qt6 \
mingw-w64-x86_64-qt6-tools \
mingw-w64-x86_64-qt6-activeqt \
mingw-w64-x86_64-qt6-declarative \
mingw-w64-x86_64-qt6-3d \
mingw-w64-x86_64-qt6-multimedia \
mingw-w64-x86_64-qt6-charts \
mingw-w64-x86_64-qt6-datavis3d \
mingw-w64-x86_64-qt6-virtualkeyboard \
mingw-w64-x86_64-qt6-svg \
mingw-w64-x86_64-qt6-sensors \
mingw-w64-x86_64-qt6-scxml \
mingw-w64-x86_64-qt6-lottie \
mingw-w64-x86_64-qt6-quick3d \
mingw-w64-x86_64-qt6-webview \
mingw-w64-x86_64-qt6-activeqt \
mingw-w64-x86_64-qt6-location \
mingw-w64-x86_64-qt6-serialport
pacman -S --needed \
mingw-w64-x86_64-qt6-serialbus \
mingw-w64-x86_64-qt6-webchannel \
mingw-w64-x86_64-qt6-websockets \
mingw-w64-x86_64-qt6-networkauth \
mingw-w64-x86_64-qt6-remoteobjects \
mingw-w64-x86_64-qt6-quicktimeline \
mingw-w64-x86_64-qt6-translations \
mingw-w64-x86_64-qt6-imageformats \
mingw-w64-x86_64-qt6-connectivity \
mingw-w64-x86_64-qt6-shadertools \
mingw-w64-x86_64-python-pyqt6-sip \
mingw-w64-x86_64-python-pyqt6
#!/usr/bin/bash
which ansible >/dev/null 2>&1
if [ $? -ne 0 ];
then
echo "Installing Ansible..."
sleep 5
pushd .
cd ~
pacman -S libyaml-devel python3 python3-pip mingw-w64-x86_64-libsodium libffi libffi-devel gcc pkg-config make openssl-devel openssh libcrypt-devel --noconfirm --needed
SODIUM_INSTALL=system CFLAGS=`pkg-config --cflags libffi` LDFLAGS=`pkg-config --libs libffi` python3 -m pip install cffi --no-binary :all:
SODIUM_INSTALL=system CFLAGS=`pkg-config --cflags libffi` LDFLAGS=`pkg-config --libs libffi` C_INCLUDE_PATH=/mingw64/include LIBRARY_PATH=/mingw64/lib python3 -m pip install pynacl
python3 -m pip install ansible --no-binary :all:
popd
fi
which ansible >/dev/null 2>&1
if [ $? -eq 0 ];
then
echo "Ansible installed."
else
echo "Ansible not installed."
fi
courtesy to
https://github.com/msys2/MSYS2-packages/issues/1429#issuecomment-756569159
$> curl -O https://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
$> curl -O https://repo.msys2.org/msys/x86_64/msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
$> pacman-key --verify msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig
==> Checking msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz.sig... (detached)
gpg: Signature made Mon Jun 29 07:36:14 2020 CEST
gpg: using DSA key AD351C50AE085775EB59333B5F92EFC1A47D45A1
gpg: Good signature from "Alexey Pavlov (Alexpux) <[email protected]>" [full]
# pacman -U msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
If you can't even import the key and the above command fails like this:
error: msys: key "4A6129F4E4B84AE46ED7F635628F528CF3053E04" is unknown
:: Import PGP key 4A6129F4E4B84AE46ED7F635628F528CF3053E04? [Y/n]
[...]
error: database 'msys' is not valid (invalid or corrupted database (PGP signature))
loading packages...
error: failed to prepare transaction (invalid or corrupted database)
... you have to convince pacman to not care about those databases for a while, for example like this:
$> pacman -U --config <(echo) msys2-keyring-r21.b39fb11-1-any.pkg.tar.xz
If you still see signature errors, resetting your pacman key store might help:
$> rm -r /etc/pacman.d/gnupg/
$> pacman-key --init
$> pacman-key --populate msys2
$> pacman -Syu
$> pacman -Syuu
$> pacman -Su
$> pacman -S base-devel
$> pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain \
git subversion mercurial \
mingw-w64-i686-cmake mingw-w64-x86_64-cmake
$> pacman -Ss boost
$> pacman -Sy
$> pacman -S perl ruby python2 mingw-w64-x86_64-toolchain
$> pacman -S mingw-w64-x86_64-qt-creator mingw-w64-x86_64-qt5 mingw-w64-x86_64-qwt-qt5
$> pacman -S mingw-w64-x86_64-gdb
$> pacman -S mingw-w64-x86_64-boost
$> pacman -S mingw-w64-x86_64-cgal
$> pacman -S mingw-w64-x86_64-eigen3
$> pacman -S mingw-w64-x86_64-glew
$> pacman -S mingw-w64-x86_64-qscintilla
$> pacman -S mingw-w64-x86_64-opencsg
$> pacman -S bison
$> pacman -S mingw-w64-x86_64-pkg-config
$> pacman -S git
Add C:\dev\msys64\mingw64\bin and C:\dev\msys64\mingw32\bin, in that order, to your PATH.
Note that MSYS2 also puts a lot of other tools in this directory, most notably Python.
So put these entries below any other tools you might have installed in your PATH.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment