# Apps with PackageCompiler - errors with examples in documentation

**URL:** <https://discourse.julialang.org/t/apps-with-packagecompiler-errors-with-examples-in-documentation/66745>\
**Category:** General Usage\
**Tags:** package-compiler\
**Created:** [August 20, 2021, 7:48pm UTC](https://discourse.julialang.org/t/apps-with-packagecompiler-errors-with-examples-in-documentation/66745 "2021-08-20T19:48:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lwhitefox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lwhitefox/32/4363_2.png) [@lwhitefox](https://discourse.julialang.org/u/lwhitefox)\
**Post date:** [August 20, 2021, 7:48pm UTC](https://discourse.julialang.org/t/apps-with-packagecompiler-errors-with-examples-in-documentation/66745/1 "2021-08-20T19:48:05Z")

</div>

I’m attempting to learn to use PackageCompiler to make apps, using the instructions [here](https://julialang.github.io/PackageCompiler.jl/dev/apps.html#Creating-an-app-1) (with a direct copy of the example code).  
The app building steps work (if slowly), but when attempting to run the demo app on MacOS I get:

```julia
% MyAppComp/bin/MyApp
ERROR: could not load library "/Applications/Julia-1.6.app/Contents/Resources/julia/bin/MyApp.dylib"
dlopen(/Applications/Julia-1.6.app/Contents/Resources/julia/bin/MyApp.dylib, 6): image not found
zsh: segmentation fault MyAppComp/bin/MyApp

```

On Linux, I get the same error (with .so instead of .dylib and so on).

Any ideas what is missing or what is causing this error? So far I cannot find any hints as to why the shared library paths are not working…
