Skip to content

Commit 6b1a281

Browse files
committed
Use a different LD_LIBRARY_PATH
1 parent bed3846 commit 6b1a281

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/scripts/unittest-linux/install.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,21 @@ PYTORCH_WHEEL_INDEX="https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/${GPU_AR
7777
pip install --progress-bar=off --pre torch torchcodec --index-url="${PYTORCH_WHEEL_INDEX}"
7878

7979

80-
# 2. Install torchaudio
80+
81+
82+
# 2. Install build tools
83+
export LD_LIBRARY_PATH=/opt/rh/gcc-toolset-11/root/usr/local/:$LD_LIBRARY_PATH
84+
echo $LD_LIBRARY_PATH
85+
conda install -y -c conda-forge 'ffmpeg>=6,<7'
86+
8187
conda install --quiet -y ninja cmake
8288

89+
# 3. Install torchaudio
8390
printf "* Installing torchaudio\n"
8491
export BUILD_CPP_TEST=1
8592
python setup.py install
8693

87-
# 3. Install Test tools
88-
export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
89-
echo $LD_LIBRARY_PATH
90-
conda install -y -c conda-forge 'ffmpeg>=6,<7'
91-
94+
# 4. Install test tools
9295
python -c "import torch; import torchaudio; import torchcodec; print(torch.__version__, torchaudio.__version__, torchcodec.__version__)"
9396

9497
printf "* Installing test tools\n"

0 commit comments

Comments
 (0)