# Building and running example applications: Error while loading shard libraries

**URL:** https://discourse.paraview.org/t/building-and-running-example-applications-error-while-loading-shard-libraries/928
**Category:** ParaView Support
**Created:** [November 18, 2018, 5:47am UTC](https://discourse.paraview.org/t/building-and-running-example-applications-error-while-loading-shard-libraries/928 "2018-11-18T05:47:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Philm](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/54ee81/32.png) [@Philm](https://discourse.paraview.org/u/Philm)
#### Post date: [November 18, 2018, 5:47am UTC](https://discourse.paraview.org/t/building-and-running-example-applications-error-while-loading-shard-libraries/928/1 "2018-11-18T05:47:48Z")

</div>

Hello all,

I am currently attempting to build some of the examples that came with paraview. Specifically, Clone1 and Clone2. I ma able to build and link successfully using cmake. However, when I go to run the application, I get an error stating:

“error while loading shared libraries: libvtkpqApplicationComponents-pv5.6.so.1: cannot open shared object file: No such file or directory”

I find this odd because I am able to build and run paraview. I believe that I have a setting issue but I am not sure which setting could cause this error. Any thoughts on what could cause this issue?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 19, 2018, 9:10am UTC](https://discourse.paraview.org/t/building-and-running-example-applications-error-while-loading-shard-libraries/928/2 "2018-11-19T09:10:29Z")

</div>

It is working fine on ArchLinux with paraview master.

Can you precise your OS and your version of ParaView sources ?

---

<div class="post-metadata">

### Author: ![Philm](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/p/54ee81/32.png) [@Philm](https://discourse.paraview.org/u/Philm)
#### Post date: [November 20, 2018, 8:47pm UTC](https://discourse.paraview.org/t/building-and-running-example-applications-error-while-loading-shard-libraries/928/3 "2018-11-20T20:47:50Z")

</div>

Sure

I am running Ubuntu 16.04 and I have the latest version of paraview.

I do not think it is an issue with paraview but rather an issue with my settings

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 21, 2018, 9:17am UTC](https://discourse.paraview.org/t/building-and-running-example-applications-error-while-loading-shard-libraries/928/4 "2018-11-21T09:17:57Z")

</div>

by latest version, do you mean master or v5.6.0 ?

In any case, a quick fix would be to do the following :  
`LD_LIBRARY_PATH=/path/to/paraview/build/lib ./paraview_revised`
