Skip to content

Commit

Permalink
Merge pull request #77 from baagaard-usgs/feature-wsl-setup
Browse files Browse the repository at this point in the history
Adjust setup_linux.sh to include options for setting up WSL.
  • Loading branch information
baagaard-usgs authored Jun 18, 2024
2 parents 183da90 + d0363c1 commit 29d06ce
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packager/setup_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ else
export PATH="$pylith/bin:$PATH"
export PYTHONPATH="$pylith/lib/python3.10/site-packages:$pylith/lib64/python3.10/site-packages"
export LD_LIBRARY_PATH="$pylith/lib:$pylith/lib64"

for arg in "$@"; do
if [ $arg = "add-wsl-libs" ]; then
if test ! -d lib-tmp; then
mkdir lib-tmp
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 lib-tmp/
echo "Created lib-tmp with symbolic link for libstdc++.so.6."
fi
export LD_LIBRARY_PATH=$pylith_dir/lib-tmp:$LD_LIBRARY_PATH
elif [ $arg = "enable-software-rendering" ]; then
export LIBGL_ALWAYS_SOFTWARE=1
echo "Set LIBGL_ALWAYS_SOFWARE=1."
else
echo "Unknown argument '$arg'."
echo "Usage: source setup.sh [add-wsl-libs] [enable-software-rendering]"
fi
done

echo "Ready to run PyLith."
fi

0 comments on commit 29d06ce

Please sign in to comment.