# Building and running ParaView: Error related to '@rpath'

**URL:** https://discourse.paraview.org/t/building-and-running-paraview-error-related-to-rpath/11720
**Category:** ParaView Support
**Created:** [March 27, 2023, 6:26pm UTC](https://discourse.paraview.org/t/building-and-running-paraview-error-related-to-rpath/11720 "2023-03-27T18:26:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![1241doobieC](https://discourse.paraview.org/user_avatar/discourse.paraview.org/1241doobiec/32/11235_2.png) [@1241doobieC](https://discourse.paraview.org/u/1241doobieC)
#### Post date: [March 27, 2023, 6:26pm UTC](https://discourse.paraview.org/t/building-and-running-paraview-error-related-to-rpath/11720/1 "2023-03-27T18:26:19Z")

</div>

Hello all,

I am currently attempting to build ParaView by following [Getting Started compilation guide](https://github.com/Kitware/ParaView/blob/master/Documentation/dev/build.md).

OS: **MacOS** Ventura 13  
Chip: Apple M1

Since there are no specific building steps provided for MacOS, I suppose that the installation process may be similar to that for Linux OS. After installing such like git, cmake, qt@5 …etc. I was finally able to build the following process:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/c/c7d23bee05d673d66543aa85b4cd27e272e00139.png)

All 5 steps could be ran successfully.  
I then clicked on the paraview app in the `/bin` directory, but I received the following **Error message** :

```auto
Termination Reason: Namespace DYLD, Code 1 Library missing
Library not loaded: @rpath/Python3.framework/Versions/3.9/Python3
Referenced from: <C75DA111-CACA-3DF2-88AB-D40F8EABBB1F> /Users/USER/Desktop/*/paraview.app/Contents/MacOS/paraview
Reason: tried: 
'/Users/.../paraview_build/lib/Python3.framework/Versions/3.9/Python3' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/Users/.../paraview_build/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/opt/homebrew/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/Users/.../paraview_build/lib/Python3.framework/Versions/3.9/Python3' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/Users/.../paraview_build/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/opt/homebrew/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS@rpath/Python3.framework/Versions/3.9/Python3' (no such file), 
'/Users/.../paraview_build/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS/Users/.../paraview_build/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/opt/homebrew/lib/Python3.framework/Versions/3.9/Python3' (no such file),
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/Users/.../paraview_build/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS/Users/.../paraview_build/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/opt/homebrew/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/lib/Python3.framework/Versions/3.9/Python3' (no such file), 
'/Library/Frameworks/Python3.framework/Versions/3.9/Python3' (no such file), '/System/Library/Frameworks/Python3.framework/Versions/3.9/Python3' (no such file, not in dyld cache)

```

I ran the app again in the terminal and received the error message:

> dyld[23171]: Library not loaded: @rpath/Python3.framework/Versions/3.9/Python3

But I did install python 3.9.  
command _whereis python3.9_ gives the following:

```auto
python3.9: /Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9
/Library/Frameworks/Python.framework/Versions/3.9/share/man/man1/python3.9.1

```

I am wondering if there is a solution to this problem.  
If any additional information is needed, please let me know. Thank you.

---

<div class="post-metadata">

### Author: ![cory.quammen](https://discourse.paraview.org/user_avatar/discourse.paraview.org/cory.quammen/32/11193_2.png) [@cory.quammen](https://discourse.paraview.org/u/cory.quammen)
#### Post date: [March 28, 2023, 1:17am UTC](https://discourse.paraview.org/t/building-and-running-paraview-error-related-to-rpath/11720/2 "2023-03-28T01:17:51Z")

</div>

I just ran into this earlier today. The workaround was to set `VTK_PYTHON_OPTIONAL_LINK:BOOL=OFF` in the CMake configuration.

---

<div class="post-metadata">

### Author: ![1241doobieC](https://discourse.paraview.org/user_avatar/discourse.paraview.org/1241doobiec/32/11235_2.png) [@1241doobieC](https://discourse.paraview.org/u/1241doobieC)
#### Post date: [March 28, 2023, 5:40am UTC](https://discourse.paraview.org/t/building-and-running-paraview-error-related-to-rpath/11720/3 "2023-03-28T05:40:49Z")

</div>

Great! That works!  
Thanks for help!
