-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
# working directory
cd /asic/projects/C/CMS_PIX_28/testing/tools/
# install openssl following https://docs.openiam.com/docs-4.2.1.3/appendix/2-openssl
wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
tar -xf openssl-1.1.1k.tar.gz
cd openssl-1.1.1k.tar
./config --prefix=/asic/projects/C/CMS_PIX_28/testing/tools/openssl --openssldir=/asic/projects/C/CMS_PIX_28/testing/tools/openssl shared zlib
make -j "$(nproc)"
make test
make install
cd ../
# point to tk libraries (or else later on problems after install)
export TCLTK_LIBS='-L/usr/lib -ltcl8.5 -ltk8.5'
export TCLTK_CFLAGS='-I/usr/include'
# install python
wget https://www.python.org/ftp/python/3.11.11/Python-3.11.11.tgz
tar xvf Python-3.11.11.tgz
cd Python-3.11.11
# first without openssl or else it crashes
./configure --prefix=/asic/projects/C/CMS_PIX_28/testing/tools/python/3.11.11 --enable-optimizations --with-lto --with-computed-gotos --with-system-ffi
make -j "$(nproc)"
make altinstall
# then with openssl
./configure --prefix=/asic/projects/C/CMS_PIX_28/testing/tools/python/3.11.11 --enable-optimizations --with-lto --with-computed-gotos --with-system-ffi --with-openssl=/asic/projects/C/CMS_PIX_28/testing/tools/openssl
make -j "$(nproc)"
make altinstall
# create python virtual environment
# will assume it is made such that you can active like the following
source /asic/projects/C/CMS_PIX_28/testing/tools/venvs/p3.11.11/bin/activate
# install spacely
cd /asic/projects/C/CMS_PIX_28/abadea/working/CMSPIX28_DAQ/spacely/PySpacely
source SetupLinux.sh
# install ML requirements. Use a temporary directory or else run into space issue
cd /asic/projects/C/CMS_PIX_28/testing/tools
mkdir piptmp
TMPDIR=piptmp pip --cache-dir=/piptmp install -r requirements.txt
# tensorflow version matters
TMPDIR=/asic/projects/C/CMS_PIX_28/testing/tools/piptmp/ pip --cache-dir=/asic/projects/C/CMS_PIX_28/testing/tools/piptmp/ install tensorflow==2.13.0
Metadata
Metadata
Assignees
Labels
No labels