# \[LibraryNotFoundError\] \[SlicerDMRI\]

**URL:** https://discourse.slicer.org/t/librarynotfounderror-slicerdmri/9064
**Category:** Support
**Tags:** extensions-manager
**Created:** [November 7, 2019, 4:25pm UTC](https://discourse.slicer.org/t/librarynotfounderror-slicerdmri/9064 "2019-11-07T16:25:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tbillah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tbillah/32/4139_2.png) [@tbillah](https://discourse.slicer.org/u/tbillah)
#### Post date: [November 7, 2019, 4:25pm UTC](https://discourse.slicer.org/t/librarynotfounderror-slicerdmri/9064/1 "2019-11-07T16:25:24Z")

</div>

When I try to launch `DWIToDTIEstimation` from GUI or from CLI:

> Slicer-4.10.2-linux-amd64/Slicer --launch /path/to/.config/NA-MIC/Extensions-28257/SlicerDMRI/lib/Slicer-4.10/cli-modules/DWIToDTIEstimation --help

I run into the following error:

```auto
.config/NA-MIC/Extensions-28257/SlicerDMRI/lib/Slicer-4.10/cli-modules/DWIToDTIEstimation: error while loading shared libraries: libvtkDMRI.so: cannot open shared object file: No such file or directory

```

However, when I explicitly define `LD_LIBRARY_PATH` before, there is no error:

> LD\_LIBRARY\_PATH=$LD\_LIBRARY\_PATH:/path/to/.config/NA-MIC/Extensions-28257/SlicerDMRI/lib/Slicer-4.10/qt-loadable-modules Slicer-4.10.2-linux-amd64/Slicer --launch /path/to/.config/NA-MIC/Extensions-28257/SlicerDMRI/lib/Slicer-4.10/cli-modules/DWIToDTIEstimation --help

The `LibraryPaths` section in my `Extensions-28257.ini` is following:

```auto
[LibraryPaths]
/path/to/.config/NA-MIC/Extensions-28257/UKFTractography/lib/Slicer-4.10
/path/to/.config/NA-MIC/Extensions-28257/UKFTractography/lib/Slicer-4.10/cli-modules
/path/to/.config/NA-MIC/Extensions-28257/UKFTractography/lib/Slicer-4.10/qt-loadable-modules
/path/to/.config/NA-MIC/Extensions-28257/DiffusionQC/lib/Slicer-4.10
/path/to/.config/NA-MIC/Extensions-28257/DiffusionQC/lib/Slicer-4.10/cli-modules
/path/to/.config/NA-MIC/Extensions-28257/DiffusionQC/lib/Slicer-4.10/qt-loadable-modules
/path/to/.config/NA-MIC/Extensions-28257/SlicerDMRI/lib/Slicer-4.10
/path/to/.config/NA-MIC/Extensions-28257/SlicerDMRI/lib/Slicer-4.10/cli-modules
/path/to/.config/NA-MIC/Extensions-28257/SlicerDMRI/lib/Slicer-4.10/qt-loadable-modules
/path/to/.config/NA-MIC/Extensions-28257/MarkupsToModel/lib/Slicer-4.10
/path/to/.config/NA-MIC/Extensions-28257/MarkupsToModel/lib/Slicer-4.10/cli-modules
/path/to/.config/NA-MIC/Extensions-28257/MarkupsToModel/lib/Slicer-4.10/qt-loadable-modules
/path/to/.config/NA-MIC/Extensions-28257/SegmentEditorExtraEffects/lib/Slicer-4.10
/path/to/.config/NA-MIC/Extensions-28257/SegmentEditorExtraEffects/lib/Slicer-4.10/cli-modules
/path/to/.config/NA-MIC/Extensions-28257/SegmentEditorExtraEffects/lib/Slicer-4.10/qt-scripted-modules
/path/to/.config/NA-MIC/Extensions-28257/DiffusionQC/lib/python2.7/site-packages
size=16

```

which evidently includes the directory of `libvtkDMRI.so` that I defined manually.

Anyone got a fix for this?

---

<div class="post-metadata">

### Author: ![tbillah](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tbillah/32/4139_2.png) [@tbillah](https://discourse.slicer.org/u/tbillah)
#### Post date: [November 11, 2019, 8:17pm UTC](https://discourse.slicer.org/t/librarynotfounderror-slicerdmri/9064/2 "2019-11-11T20:17:02Z")

</div>

Hi @pieper, can you look at the `.ini` file? It might be a minor issue related to how LD\_LIBRARY\_PATH is set up.
