Created
October 27, 2024 05:20
-
-
Save Vehmloewff/5e0d6f609e6a11db85777c7e553698c5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew install SergioBenitez/osxct/x86_64-unknown-linux-gnu | |
DEB_NAME=libssl-dev_1.1.1n-0+deb10u3_amd64.deb | |
OPENSSL_DIR="$HOME/.cache/temp/libssl_dev" | |
mkdir -p $OPENSSL_DIR/include | |
cd $OPENSSL_DIR | |
curl -O http://ftp.us.debian.org/debian/pool/main/o/openssl/$DEB_NAME | |
ar p $DEB_NAME data.tar.xz | tar xvf - | |
mv usr/include/openssl/* usr/include/x86_64-linux-gnu/openssl/ | |
mv usr/include/x86_64-linux-gnu/openssl ./include/openssl | |
mv usr/lib/x86_64-linux-gnu ./lib | |
rm -rf usr | |
rm -rf $DEB_NAME | |
echo "Done! Now you're ready to 'cargo build' linux software" | |
echo "" | |
echo "To ensure that life proceeds happily, define these variables prior to running cargo build commands that target linux" | |
echo "" | |
echo "export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc" | |
echo "export OPENSSL_LIB_DIR=\"$OPENSSL_DIR/lib\"" | |
echo "export OPENSSL_INCLUDE_DIR=\"$OPENSSL_DIR/include\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment