# Trouble running Tspectrum example

**URL:** <https://root-forum.cern.ch/t/trouble-running-tspectrum-example/46528>\
**Category:** Newbie\
**Created:** [August 28, 2021, 8:45pm UTC](https://root-forum.cern.ch/t/trouble-running-tspectrum-example/46528 "2021-08-28T20:45:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Whitt](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/a8b319/32.png) [@Whitt](https://root-forum.cern.ch/u/Whitt)\
**Post date:** [August 28, 2021, 8:45pm UTC](https://root-forum.cern.ch/t/trouble-running-tspectrum-example/46528/1 "2021-08-28T20:45:55Z")

</div>

Hi all,

I’ve got a good amount of experience with Python and Matlab and am interested in the Gold Deconvolution part of the TSpectrum module.

I’ve tried to run Deconvolution\_8C as a macro and got a whole bunch of errors relating to the library loading and “maybe you need to load the corresponding shared library”

Where am I going wrong here? Looking through the other forum reports on similar issues, there was a number of points that you can’t just run the macro as is.

Thanks  
James

_ROOT Version:_ Not Provided  
_Platform:_ Not Provided  
_Compiler:_ Not Provided

* * *

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [August 28, 2021, 9:01pm UTC](https://root-forum.cern.ch/t/trouble-running-tspectrum-example/46528/2 "2021-08-28T21:01:05Z")

</div>

This should run without problems:

`[...]$ root ${ROOTSYS}/tutorials/spectrum/Deconvolution.C`

---

<div class="post-metadata">

**Author:** ![Whitt](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/a8b319/32.png) [@Whitt](https://root-forum.cern.ch/u/Whitt)\
**Post date:** [August 28, 2021, 9:26pm UTC](https://root-forum.cern.ch/t/trouble-running-tspectrum-example/46528/3 "2021-08-28T21:26:27Z")

</div>

Thanks for the quick reply, for some reason even though I installed via instructions for Centos on the website, none of the tutorials can be found.

That’s why I copied the code for Deconvolution\_8C into a seperate .cc file and tried to run it on its own from the home folder.

I’m on ROOT 6.22/08 on Centos 7 64 bit.

James

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [August 28, 2021, 9:36pm UTC](https://root-forum.cern.ch/t/trouble-running-tspectrum-example/46528/4 "2021-08-28T21:36:39Z")

</div>

Try [a pre-compiled binary distribution](https://root.cern/install/#download-a-pre-compiled-binary-distribution).

---

<div class="post-metadata">

**Author:** ![Whitt](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/a8b319/32.png) [@Whitt](https://root-forum.cern.ch/u/Whitt)\
**Post date:** [August 28, 2021, 9:49pm UTC](https://root-forum.cern.ch/t/trouble-running-tspectrum-example/46528/5 "2021-08-28T21:49:06Z")

</div>

All working now, thanks for the help

James
