[MacPorts] #46925: requires version 13.0.0, but libjpeg.8.dylib provides version 9.0.0

MacPorts noreply at macports.org
Sun Feb 22 03:44:07 PST 2015


#46925: requires version 13.0.0, but libjpeg.8.dylib provides version 9.0.0
----------------------------+--------------------------------
  Reporter:  divisabella@…  |      Owner:  macports-tickets@…
      Type:  defect         |     Status:  closed
  Priority:  Normal         |  Milestone:
 Component:  ports          |    Version:  2.3.3
Resolution:  invalid        |   Keywords:
      Port:  libjpeg-turbo  |
----------------------------+--------------------------------
Changes (by cal@…):

 * keywords:  libjpeg-turbo, libjpeg =>
 * resolution:   => invalid
 * status:  new => closed
 * type:  request => defect


Old description:

> I am using Macports to install libjpeg 8, which I need for a MATLAB
> program, the Berkeley Segmentation Engine that I am using for school, but
> when I try to run the example, I receive the following:
>
> Invalid MEX-file
> '/Users/isabella/Desktop/BSR/grouping/lib/mex_pb_parts_final_selected.mexmaci64':
> dlopen(/Users/isabella/Desktop/BSR/grouping/lib/mex_pb_parts_final_selected.mexmaci64,
> 6): Library
> not loaded: /opt/local/lib/libjpeg.8.dylib
>
>   Referenced from:
> /Users/isabella/Desktop/BSR/grouping/lib/mex_pb_parts_final_selected.mexmaci64
>   Reason: Incompatible library version:
> mex_pb_parts_final_selected.mexmaci64 requires version 13.0.0
>   or later, but libjpeg.8.dylib provides version 9.0.0
>
> I don't have any experience changing MEX files, but I've tried all kinds
> of things with my libjpeg installation, between homebrew and macports,
> but I haven't had any success. Please help!

New description:

 I am using Macports to install libjpeg 8, which I need for a MATLAB
 program, the Berkeley Segmentation Engine that I am using for school, but
 when I try to run the example, I receive the following:

 {{{
 Invalid MEX-file
 '/Users/isabella/Desktop/BSR/grouping/lib/mex_pb_parts_final_selected.mexmaci64':
 dlopen(/Users/isabella/Desktop/BSR/grouping/lib/mex_pb_parts_final_selected.mexmaci64,
 6): Library
 not loaded: /opt/local/lib/libjpeg.8.dylib

   Referenced from:
 /Users/isabella/Desktop/BSR/grouping/lib/mex_pb_parts_final_selected.mexmaci64
   Reason: Incompatible library version:
 mex_pb_parts_final_selected.mexmaci64 requires version 13.0.0
   or later, but libjpeg.8.dylib provides version 9.0.0
 }}}

 I don't have any experience changing MEX files, but I've tried all kinds
 of things with my libjpeg installation, between homebrew and macports, but
 I haven't had any success. Please help!

--

Comment:

 The problem is that MATLAB internally sets `DYLD_LIBRARY_PATH` while its
 running and keeps it in the environment you use to load the library. Unset
 `DYLD_LIBRARY_PATH` before loading your library and it should work.
 `DYLD_LIBRARY_PATH` should never ever be set in production software, and
 it's a mistake made by the MATLAB developers that it does. You should
 contact them and ask them to link their libraries correctly on OS X so
 they don't need to set it.

-- 
Ticket URL: <https://trac.macports.org/ticket/46925#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list