# Build error on MacOSX and Linux with ITKPython enabled

**URL:** <https://discourse.slicer.org/t/build-error-on-macosx-and-linux-with-itkpython-enabled/3277>\
**Category:** Development\
**Tags:** build\
**Created:** [June 25, 2018, 11:35am UTC](https://discourse.slicer.org/t/build-error-on-macosx-and-linux-with-itkpython-enabled/3277 "2018-06-25T11:35:22Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![Alex\_Vergara](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_vergara/32/15205_2.png) [@Alex\_Vergara](https://discourse.slicer.org/u/Alex_Vergara)\
**Post date:** [June 27, 2018, 1:06pm UTC](https://discourse.slicer.org/t/build-error-on-macosx-and-linux-with-itkpython-enabled/3277/19 "2018-06-27T13:06:10Z")

</div>

I just do

```bash
echo "export DYLD_FRAMEWORK_PATH=/Users/alex/Qt/5.11.1/clang_64/lib" > /Users/alex/.bash_profile

```

and everything magically starts working

edit: Actually it only worked temporarily since this only affects bash, for it to work completely you shall add this to ~/.MacOSX/environment.plist

```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs$
<plist version="1.0">
<dict>
        <key>DYLD_FRAMEWORK_PATH</key>
        <string>/Users/alex/Qt/5.11.1/clang_64/lib</string>
</dict>
</plist>

```

---

_[View the full topic](https://discourse.slicer.org/t/build-error-on-macosx-and-linux-with-itkpython-enabled/3277)._
