# Problem running example

**URL:** <https://community.geodynamics.org/t/problem-running-example/3258>\
**Category:** PyLith\
**Tags:** examples, petsc\
**Created:** [February 1, 2024, 4:30pm UTC](https://community.geodynamics.org/t/problem-running-example/3258 "2024-02-01T16:30:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chongjh11](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@chongjh11](https://community.geodynamics.org/u/chongjh11)\
**Post date:** [February 1, 2024, 4:30pm UTC](https://community.geodynamics.org/t/problem-running-example/3258/1 "2024-02-01T16:30:18Z")

</div>

Hello!

I’m new to Pylith and I recently downloaded Pylith 4.0. I was going through the instructions in the document to run “box-2d” but I’m having problems running step01 with an error related to perhaps, petsc. I have the same problem with the other examples that I’ve tried. Below is the last few lines of the error message.

```auto
ImportError: dlopen(/Users/chongjh11/Downloads/pylith-4.0.0-macOS-10.15-x86_64/lib/python3.10/site-packages/pylith/utils/_petsc.so, 2): Symbol not found: __ZTTNSt3__ 119basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
  Referenced from: /Users/chongjh11/Downloads/pylith-4.0.0-macOS-10.15-x86_64/bin/../lib/libpetsc.3.020.dylib (which was built for Mac OS X 13.0)
  Expected in: /usr/lib/libc++.1.dylib
 in /Users/chongjh11/Downloads/pylith-4.0.0-macOS-10.15-x86_64/bin/../lib/libpetsc.3.020.dylib

```

I downloaded using the example “curl -L…” for a Mac, and did the “source setup.sh” before running the examples. I’m using MacOS 11.3.1 to run all the Pylith examples.

I can provide more information about the error if needed too! Thanks in advance!

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [February 1, 2024, 5:41pm UTC](https://community.geodynamics.org/t/problem-running-example/3258/2 "2024-02-01T17:41:48Z")

</div>

What type of processor does your computer have? arm64 (Apple M1,2,3) or x86\_64 (Intel)? This information is available in “About this Mac”. The binary you downloaded is for a mac with an Intel x86\_64 processor, not the newer Apple M arm64 processors. If you have an arm64 processor, please try the binary for the arm64 processor.

I intended to build the binary for macOS 10.5 and later, but there may have been a problem setting up the build as the error message may suggest that it was built only for macOS 13 and later.

---

<div class="post-metadata">

**Author:** ![chongjh11](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@chongjh11](https://community.geodynamics.org/u/chongjh11)\
**Post date:** [February 1, 2024, 10:38pm UTC](https://community.geodynamics.org/t/problem-running-example/3258/3 "2024-02-01T22:38:40Z")

</div>

Hi Brad, thanks for the quick response! I have the x86\_64 Intel chip. Should I try building from source instead, or is there another option?

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [February 1, 2024, 10:54pm UTC](https://community.geodynamics.org/t/problem-running-example/3258/4 "2024-02-01T22:54:17Z")

</div>

I will look at the binary package and will try regenerating it to support older macOS versions.

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [February 3, 2024, 8:52pm UTC](https://community.geodynamics.org/t/problem-running-example/3258/5 "2024-02-03T20:52:27Z")

</div>

I have verified that both macOS binary packages for v4.0.0 are built for macOS 13 (not the intended 11.0 for arm64 and 10.15 for x86\_64). I am working on this and expect to post updated binaries on Monday Feb 5.

---

<div class="post-metadata">

**Author:** ![baagaard](https://yyz2.discourse-cdn.com/flex036/user_avatar/community.geodynamics.org/baagaard/32/615_2.png) [@baagaard](https://community.geodynamics.org/u/baagaard)\
**Post date:** [February 4, 2024, 3:55pm UTC](https://community.geodynamics.org/t/problem-running-example/3258/6 "2024-02-04T15:55:13Z")

</div>

New binaries for v4.0.0 for macOS x86\_64 and arm64 are now available. See [PyLith v4.0.0 released - #2 by baagaard](https://community.geodynamics.org/t/pylith-v4-0-0-released/3204/2).

---

<div class="post-metadata">

**Author:** ![chongjh11](https://avatars.discourse-cdn.com/v4/letter/c/c37758/32.png) [@chongjh11](https://community.geodynamics.org/u/chongjh11)\
**Post date:** [February 5, 2024, 4:28pm UTC](https://community.geodynamics.org/t/problem-running-example/3258/7 "2024-02-05T16:28:12Z")

</div>

Hi Brad, thank you so much for your help on this! It works now!
