Skip to content

Set DYLD_LIBRARY_PATH when running tidy5 during the build #194

Closed
@ryandesign

Description

@ryandesign

I'm the maintainer of tidy in MacPorts. I'm configuring tidy 4.9.24 to build with shared library support enabled. The build fails with this message:

./tidy5 -xml-help > /opt/local/var/macports/build/_Users_rschmidt_macports_dports_www_tidy/tidy/work/tidy-html5-ca06201c3abb3829d6be6465e433ac72c8b15449-x86_64/build/cmake/tidy-help.xml
dyld: Library not loaded: /opt/local/lib/libtidy5.4.dylib
  Referenced from: /opt/local/var/macports/build/_Users_rschmidt_macports_dports_www_tidy/tidy/work/tidy-html5-ca06201c3abb3829d6be6465e433ac72c8b15449-x86_64/build/cmake/./tidy5
  Reason: image not found
/bin/sh: line 1:  2307 Trace/BPT trap: 5       ./tidy5 -xml-help > /opt/local/var/macports/build/_Users_rschmidt_macports_dports_www_tidy/tidy/work/tidy-html5-ca06201c3abb3829d6be6465e433ac72c8b15449-x86_64/build/cmake/tidy-help.xml
make[2]: *** [man] Error 133

The problem is that the tidy5 program that was just compiled cannot find the libtidy5 library it needs because it has not yet been installed. The solution is to set the DYLD_LIBRARY_PATH environment variable to the absolute path to the build/cmake directory in which the library can be found.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions