210 | | == A command failed to run with a message referring to libpng12.0.dylib == #libpng |
211 | | |
212 | | '''Error message:'''[[BR]] |
213 | | {{{ |
214 | | dyld: Library not loaded: /opt/local/lib/libpng12.0.dylib |
215 | | }}} |
216 | | |
217 | | '''Explanation:'''[[BR]] |
218 | | When the libpng port was updated from 1.2.x to 1.4.x, the libpng library version changed. Software always links against a specific library version, so the ports you currently have installed that depend on libpng are linked against a now-nonexistent version of the libpng library. To fix this problem, all ports that depend on libpng will need to be rebuilt so that they link with the new version of the libpng library. This may be quite a few ports. |
219 | | |
220 | | '''Workaround:'''[[BR]] |
221 | | We have tried to find all affected ports and incremented the revision number. In most cases a simple upgrade should get them all fixed. |
222 | | |
223 | | {{{ |
224 | | sudo port selfupdate |
225 | | sudo port upgrade outdated |
226 | | }}} |
227 | | |
228 | | If this does not help, force a rebuild of the port in question by using the following command: |
229 | | |
230 | | {{{ |
231 | | sudo port -n upgrade --force $portname |
232 | | }}} |
233 | | |
234 | | You should also [http://guide.macports.org/#project.tickets file a ticket] against the port in question. |
235 | | |