# Having trouble Installing extenssion 

**URL:** <https://discourse.slicer.org/t/having-trouble-installing-extenssion/34904>\
**Category:** Development\
**Created:** [March 15, 2024, 6:26am UTC](https://discourse.slicer.org/t/having-trouble-installing-extenssion/34904 "2024-03-15T06:26:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajith\_perera](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ajith_perera/32/66917_2.png) [@Ajith\_perera](https://discourse.slicer.org/u/Ajith_perera)\
**Post date:** [March 15, 2024, 6:26am UTC](https://discourse.slicer.org/t/having-trouble-installing-extenssion/34904/1 "2024-03-15T06:26:30Z")

</div>

Operating system:Linux, X86\_64, RHEL8  
Slicer version:GitHub(overnight)  
Expected behavior:  
Actual behavior:  
Hello: I am trying to install 3Dslicer and extensions with apptainer using the following definitions.  
export DEBIAN\_FRONTEND=noninteractive  
apt update -y  
apt install -y python3-pip build-essential cmake wget git   
cmake-curses-gui cmake-qt-gui   
qtmultimedia5-dev qttools5-dev libqt5xmlpatterns5-dev libqt5svg5-dev   
qtwebengine5-dev qtscript5-dev   
qtbase5-private-dev libqt5x11extras5-dev libxt-dev libssl-dev  
git clone [GitHub - Slicer/Slicer: Multi-platform, free open source software for visualization and image computing.](https://github.com/Slicer/Slicer)  
cd Slicer  
./Utilities/SetupForDevelopment.sh  
cd …  
mkdir Build  
cd ./Build  
cmake …/Slicer  
make -j 16  
**Installation is successful (I can run slicer using GUI)**. Unfortunately, I do not know how to add Slicer extensions to apptainer type builds. Are there any docs. that I can review. I specifically want to slicerradiomics extension.  
Thank you, regards, Ajith

---

<div class="post-metadata">

**Author:** ![jose-d](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jose-d/32/69652_2.png) [@jose-d](https://discourse.slicer.org/u/jose-d)\
**Post date:** [March 18, 2024, 8:16am UTC](https://discourse.slicer.org/t/having-trouble-installing-extenssion/34904/2 "2024-03-18T08:16:50Z")

</div>

TL/DR: at this moment, I’m now aware about any implicit way how to let users install extensions into _system-provided_ Slicer.

longer answer:

Hi, (I see nobody answered yet your question, so giving my 5c)

first, I’m more Apptainer guy rather than Slicer expert - we’re investigating how to use Slicer properly at our site too.

Did you try to build SlicerRadiomics in `%post` section of apptainer definition file, to have extension _baked in_ apptainer image?

Cleaner way could be to install base slicer, and then, create apptainer image derived from base Slicer image with installed extension(s)…

The reason behind is (it was [explained](https://discourse.slicer.org/t/installing-extension-in-users-folder-in-linux/34805/23) here at this forum recently) that Slicer mixes application itself and user-installed extensions in its “root” directory…

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/83011_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 18, 2024, 3:39pm UTC](https://discourse.slicer.org/t/having-trouble-installing-extenssion/34904/3 "2024-03-18T15:39:50Z")

</div>

> [@Ajith\_perera](#):
>
> Unfortunately, I do not know how to add Slicer extensions to apptainer type builds. Are there any docs. that I can review.

If you have custom slicer build, you need to also build the extension. Please see this section of the developer’s guide: [Overview — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/build_instructions/overview.html#extensions-for-developer-builds-of-slicer)

---

<div class="post-metadata">

**Author:** ![Ajith\_perera](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ajith_perera/32/66917_2.png) [@Ajith\_perera](https://discourse.slicer.org/u/Ajith_perera)\
**Post date:** [March 18, 2024, 8:25pm UTC](https://discourse.slicer.org/t/having-trouble-installing-extenssion/34904/4 "2024-03-18T20:25:28Z")

</div>

Hi, Thank you. After a few trials and errors, I could add an extension more like you suggested. In the post section used  
git clone [GitHub - AIM-Harvard/SlicerRadiomics: A Slicer extension to provide a GUI around pyradiomics](https://github.com/radiomics/SlicerRadiomics.git)  
mkdir SlicerRadiomics-build  
cd SlicerRadiomics-build  
cmake -DSlicer\_DIR:PATH=/Build/Slicer-build …/SlicerRadiomics  
container image has /SlicerRadiomics-build/inner-build. Then I followed the instructions at [GitHub - AIM-Harvard/SlicerRadiomics: A Slicer extension to provide a GUI around pyradiomics](https://github.com/AIM-Harvard/SlicerRadiomics?tab=readme-ov-file), Loading `SlicerRadiomics` from a build tree (first option). This seems to recognize Radiomics. I am not 100% this is the best way to go if I need to install additional packages. I would like to try “Cleaner way could be to install base slicer, and then, create apptainer image derived from base Slicer image with installed extension(s)…”. My first attempt at this fails. I tried a source level installation of slicer but failed because of Qt issues.

Once again thank you for your comments.
