# ITK registration factory library cannot be found

**URL:** <https://discourse.slicer.org/t/itk-registration-factory-library-cannot-be-found/30227>\
**Category:** Support\
**Created:** [June 26, 2023, 2:15am UTC](https://discourse.slicer.org/t/itk-registration-factory-library-cannot-be-found/30227 "2023-06-26T02:15:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhlegarreta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jhlegarreta/32/66542_2.png) [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Post date:** [June 26, 2023, 2:15am UTC](https://discourse.slicer.org/t/itk-registration-factory-library-cannot-be-found/30227/1 "2023-06-26T02:15:37Z")

</div>

Hi,  
I am using 3D Slicer 5.2.2 r31382 / fb46bd1 on an Ubuntu 22.04 machine. I am trying to launch the `DWIConvert` process from the command line:

```auto
$DWIConvert --conversionMode FSLToNrrd --outputVolume $DWI --fslNIFTIFile $fslNIFTIFile --outputDirectory . --smallGradientThreshold 0.2 --transposeInputBVectors --inputBValues $inputBValues --inputBVectors $inputBVectors --outputDirectory . --smallGradientThreshold 0.2 --transposeInputBVectors --allowLossyConversion

```

where `$DWIConvert` points to `/opt/Slicer-5.2.2-linux-amd64/lib/Slicer-5.2/cli-modules/DWIConvert` in my Slicer installation, and the rest of the parameters having some appropriate values.

The command exits with the following error:

```auto
/opt/Slicer-5.2.2-linux-amd64/lib/Slicer-5.2/cli-modules/DWIConvert: error while loading shared libraries: libITKFactoryRegistration.so: cannot open shared object file: No such file or directory

```

A `find` command on the library shows that it is there:

```auto
$ find /opt/Slicer-5.2.2-linux-amd64 -name *libITKFactoryRegistration*
/opt/Slicer-5.2.2-linux-amd64/lib/Slicer-5.2/libITKFactoryRegistration.so

```

Even when adding the Slicer root folder to the PATH` the library is not found.

How can this be fixed?

Thanks.

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 26, 2023, 1:12pm UTC](https://discourse.slicer.org/t/itk-registration-factory-library-cannot-be-found/30227/2 "2023-06-26T13:12:54Z")

</div>

Try `Slicer --launch DWIConvert ..`

---

<div class="post-metadata">

**Author:** ![jhlegarreta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jhlegarreta/32/66542_2.png) [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Post date:** [June 26, 2023, 1:52pm UTC](https://discourse.slicer.org/t/itk-registration-factory-library-cannot-be-found/30227/3 "2023-06-26T13:52:19Z")

</div>

That worked. Thanks for the support Steve.
