[MacPorts] #67786: gnuplot @5.4.8: dyld: Library not loaded, Reason: no suitable image found. Did find ... mach-o, but wrong architecture (was: Problem (bug) to upgrade to gnuplot-5.4.8 in Mac M1)

MacPorts noreply at macports.org
Fri Jul 21 10:42:42 UTC 2023


#67786: gnuplot @5.4.8: dyld: Library not loaded, Reason: no suitable image found.
Did find ... mach-o, but wrong architecture
-----------------------+----------------------
  Reporter:  linlupin  |      Owner:  mojca
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.8.1
Resolution:            |   Keywords:  arm64
      Port:  gnuplot   |
-----------------------+----------------------
Changes (by ryandesign):

 * status:  new => assigned
 * owner:  (none) => mojca
 * keywords:   => arm64
 * port:  gnuplot, grace and .... => gnuplot


Old description:

> To whom will concern it,
>
> I tried to update the Macports to the latest version 2.8.1 and upgrade
> the related ports. Unfortunately, I received the following error message:
>
> --- \\
> --->  Computing dependencies for gnuplot \\
> --->  Fetching archive for gnuplot \\
> --->  Attempting to fetch
> gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2
> from https://packages.macports.org/gnuplot \\
> --->  Attempting to fetch
> gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2
> from http://jog.id.packages.macports.org/macports/packages/gnuplot \\
> --->  Attempting to fetch
> gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2
> from http://mirror.fcix.net/macports/packages/gnuplot \\
> --->  Building gnuplot \\
> Error: Failed to build gnuplot: command execution failed \\
> Error: See
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_gnuplot/gnuplot/main.log
> for details. \\
> Error: Follow https://guide.macports.org/#project.tickets if you believe
> there is a bug. \\
> Error: Processing of port gnuplot failed \\
> --- \\
>
> Due to the error of the upgrade, several old installations are also
> affected.
> For example, when I operate the "grace", I obtain the following error
> message:
> ---
> dyld: Library not loaded: /opt/local/lib/libXm.4.dylib \\
>   Referenced from: /opt/local/bin/xmgrace  \\
>   Reason: no suitable image found.  Did find:  \\
>         /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture  \\
>         /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture  \\
> ---
>
> Any good suggestion to fix this bug?

New description:

 To whom will concern it,

 I tried to update the Macports to the latest version 2.8.1 and upgrade the
 related ports. Unfortunately, I received the following error message:

 {{{
 --->  Computing dependencies for gnuplot
 --->  Fetching archive for gnuplot
 --->  Attempting to fetch
 gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2
 from https://packages.macports.org/gnuplot
 --->  Attempting to fetch
 gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2
 from http://jog.id.packages.macports.org/macports/packages/gnuplot
 --->  Attempting to fetch
 gnuplot-5.4.8_0+aquaterm+luaterm+pangocairo+wxwidgets+x11.darwin_20.arm64.tbz2
 from http://mirror.fcix.net/macports/packages/gnuplot
 --->  Building gnuplot
 Error: Failed to build gnuplot: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_gnuplot/gnuplot/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 Error: Processing of port gnuplot failed
 }}}

 Due to the error of the upgrade, several old installations are also
 affected.
 For example, when I operate the "grace", I obtain the following error
 message:

 {{{
 dyld: Library not loaded: /opt/local/lib/libXm.4.dylib
   Referenced from: /opt/local/bin/xmgrace
   Reason: no suitable image found.  Did find:
         /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture
         /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture
 }}}

 Any good suggestion to fix this bug?

--

Comment:

 > {{{
 > dyld: Library not loaded: /opt/local/lib/libXm.4.dylib
 >   Referenced from: /opt/local/bin/xmgrace
 >   Reason: no suitable image found.  Did find:
 >       /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture
 >       /opt/local/lib/libXm.4.dylib: mach-o, but wrong architecture
 > }}}

 The log says:

 {{{
 :info:build dyld: Library not loaded: /opt/local/lib/libpixman-1.0.dylib
 :info:build   Referenced from: /opt/local/lib/libcairo.2.dylib
 :info:build   Reason: no suitable image found.  Did find:
 :info:build     /opt/local/lib/libpixman-1.0.dylib: mach-o, but wrong
 architecture
 :info:build     /opt/local/lib/libpixman-1.0.dylib: mach-o, but wrong
 architecture
 }}}

 So, what is the architecture of libpixman and libXm on your system? To
 find out, run:

 {{{
 file /opt/local/lib/libpixman-1.0.dylib /opt/local/lib/libXm.4.dylib
 }}}

 You show that you are on an Apple Silicon Mac and that you are installing
 gnuplot for arm64, so the problem must be that your dependencies were not
 installed for that architecture. And if so, why is that? Have you migrated
 to this Apple Silicon Mac from an Intel Mac? If so, it sounds like you may
 not have followed the [wiki:Migration migration instructions].

-- 
Ticket URL: <https://trac.macports.org/ticket/67786#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list