From 218945f966ea9fa70cc43cc9ef84e1ccd40cfd16 Mon Sep 17 00:00:00 2001
From: kpetersn <kmpeters@anl.gov>
Date: Mon, 27 Feb 2023 19:48:58 +0000
Subject: [PATCH] Added a workaround for caQtDM binaries missing from RHEL9

---
 3-Add-simulated-motors.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/3-Add-simulated-motors.md b/3-Add-simulated-motors.md
index 619ca9f..3c34d19 100644
--- a/3-Add-simulated-motors.md
+++ b/3-Add-simulated-motors.md
@@ -229,6 +229,20 @@ Do the following:
 $ ./softioc/xxx.sh caqtdm
 ```
 
+If the `EPICS_HOST_ARCH` is `rhel9-x86_64` and caQtDM is not found, then do the following:
+<details>
+<summary>workaround</summary>
+
+bash
+```
+$ sed -i.bak -e 's/APSshare\/bin\/caQtDM/APSshare\/caqtdm\/caqtdm-4.4.0-APS\/caQtDM_Binaries\/rhel9-x86_64\/caQtDM/g' ../../start_caQtDM_xxx
+```
+And then restart caqtdm:
+```bash
+$ ./softioc/xxx.sh caqtdm
+```
+</details>
+
 This launches **my-xxx.ui**:
 
 ![screenshot of my-xxx.ui showing the default Motors section](images/my-xxx-motors.png)
-- 
GitLab