Re: x86_64 version of libncurses

2022-08-30 Thread Sriranga Veeraraghavan
Hi Murray,

Are you sure you downloaded the M1/ARM version of Sage?  

Based on the error message below, I’m guessing you may have accidentally 
downloaded the x86_64 DMG instead of the ARM64 DMG (they are both available on 
GitHub, with the ARM64 version being about 90MB smaller than the x86_64 version)

I just downloaded the ARM specific DMG for Sage 9.7 from GitHub and did not see 
this issue on my M1 MacBook Air:

https://github.com/3-manifolds/Sage_macOS/releases 


Best,

-ranga

> On Aug 30, 2022, at 10:24, Murray Eisenberg  wrote:
> 
> Under macOS 12.5.1 on an M1 Mac, I'm trying to use the SageMath system 
> (https://www.sagemath.org ) from the command-line 
> in Terminal, and for that libncurses is required. 
> 
> Under MacPorts 2.7.2 I have:
> 
>sudo port installed | grep ncurses
>ncurses @6.3_0 (active)
> 
> And sudo port info ncurses says that it is universal and is for platforms 
> darwin, freebsd.
> 
> The SageMath system installed is the arm64 version. However, when I run the 
> sage command, I get error:
> 
> [~] % sage
> dyld[16273]: Library not loaded: '/opt/local/lib/libncurses.6.dylib'
>   Referenced from: '/usr/local/bin/bash'
>   Reason: tried: '/opt/local/lib/libncurses.6.dylib' (mach-o file, but is an 
> incompatible architecture (have (arm64), need (x86_64))), 
> '/usr/local/lib/libncurses.6.dylib' (no such file), 
> '/usr/lib/libncurses.6.dylib' (no such file)
> /usr/local/bin/sage: line 20: 16273 Abort trap: 6   /usr/bin/env - 
> PATH="$PATH" $MIN_ENV "$SYMLINK"/venv/bin/sage "$@“
> 
> Is there some fix from the MacPorts end?
> 
> ---
> Murray Eisenberg  murrayeisenb...@gmail.com 
> 
> Mobile (413)-427-5334
> 503 King Farm Blvd #101   
> Rockville, MD 20850-6667  
> 
> 
> 



MacPorts downloaded package with wrong architecture on arm64 machine

2022-08-30 Thread Ian Wadham
I recently purchased a new MacBook Pro with Monterey O/S and installed MacPorts 
on it from scratch.

I installed the qt4-mac port successfully, but kdelibs4 refused to install 
because the qt4-mac port did
not support arm64 architecture and i am on an Apple Silicon arm64 machine.

The problem arose because the installation process for qt4-mac included the 
steps:

—>  Attempting to fetch qt4-mac-4.8.7_13.darwin_21.x86_64.tbz from 
https://packages.macports.org/qt4-mac
—>  Attempting to fetch qt4-mac-4.8.7_13.darwin_21.x86_64.tbz.rmd160 from 
https://packages.macports.org/qt4-mac

The second step succeeded, i.e. MacPorts itself downloaded an inappropriate 
package for an Apple
Silicon machine. I noticed that some (maybe not all) of qt4-mac’s dependencies 
were compiled or
downloaded as arm64 code and, curiously, some of Qt4’s utility apps work on my 
machine, perhaps
due to the Rosetta emulator stepping in and taking over.

The kdelibs4 install failed in the “Computing dependencies…” step, saying 
“Error: Cannot install kdelibs4 for
the arch arm64 because its dependency qt4-mac only supports the archs ‘ppc 
ppc64 i386 x86_64’”

Is this a bug or is it the end of the line for kdelibs4 on arch64? Can kdelibs4 
really build as arch64? And what
about its (enormous) list of other dependencies? Do they all build for arch64?

If there is a bug here, I think it is that MacPorts can download a package for 
an inappropriate architecture.

Best regards,
Ian Wadham.

Re: Issue while install gnuradio +grc +qtgui

2022-08-30 Thread André-John Mas
Did a bit more research and the following seems to have unblocked things:

sudo port clean xorg-libxcb 

> On 30 Aug, 2022, at 15:46, André-John Mas  wrote:
> 
> Hi,
> 
> I am trying to install GNU Radio with the variants grc and qtgui, via `sudo 
> port install gnuradio +grc +qtgu`, but I am getting a failure:
> 
> --->  Computing dependencies for xorg-libxcb
> --->  Fetching archive for xorg-libxcb
> --->  Attempting to fetch xorg-libxcb-1.15_0+python38.darwin_21.x86_64.tbz2 
> from https://packages.macports.org/xorg-libxcb
> --->  Attempting to fetch xorg-libxcb-1.15_0+python38.darwin_21.x86_64.tbz2 
> from https://ywg.ca.packages.macports.org/mirror/macports/packages/xorg-libxcb
> --->  Attempting to fetch xorg-libxcb-1.15_0+python38.darwin_21.x86_64.tbz2 
> from https://fra.de.packages.macports.org/xorg-libxcb
> --->  Staging xorg-libxcb into destroot
> Error: Failed to destroot xorg-libxcb: could not read 
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-libxcb/work/destroot/opt/local/share/man/man3/xcb_glx_get_polygon_stipple_reply.3":
>  no such file or directory
> Error: See 
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-libxcb/main.log
>  for details.
> Error: Unable to execute port: upgrade cairo failed
> 
> Any ideas?
> 
> Running on macOS 12.5.1, using an Intel based 16" MBP
> 
> Thanks
> 
> Andre



Issue while install gnuradio +grc +qtgui

2022-08-30 Thread André-John Mas
Hi,

I am trying to install GNU Radio with the variants grc and qtgui, via `sudo 
port install gnuradio +grc +qtgu`, but I am getting a failure:

--->  Computing dependencies for xorg-libxcb
--->  Fetching archive for xorg-libxcb
--->  Attempting to fetch xorg-libxcb-1.15_0+python38.darwin_21.x86_64.tbz2 
from https://packages.macports.org/xorg-libxcb
--->  Attempting to fetch xorg-libxcb-1.15_0+python38.darwin_21.x86_64.tbz2 
from https://ywg.ca.packages.macports.org/mirror/macports/packages/xorg-libxcb
--->  Attempting to fetch xorg-libxcb-1.15_0+python38.darwin_21.x86_64.tbz2 
from https://fra.de.packages.macports.org/xorg-libxcb
--->  Staging xorg-libxcb into destroot
Error: Failed to destroot xorg-libxcb: could not read 
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-libxcb/work/destroot/opt/local/share/man/man3/xcb_glx_get_polygon_stipple_reply.3":
 no such file or directory
Error: See 
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xorg-libxcb/xorg-libxcb/main.log
 for details.
Error: Unable to execute port: upgrade cairo failed

Any ideas?

Running on macOS 12.5.1, using an Intel based 16" MBP

Thanks

Andre

Re: x86_64 version of libncurses

2022-08-30 Thread Bill Cole

On 2022-08-30 at 13:24:41 UTC-0400 (Tue, 30 Aug 2022 13:24:41 -0400)
Murray Eisenberg 
is rumored to have said:

Under macOS 12.5.1 on an M1 Mac, I'm trying to use the SageMath system 
(https://www.sagemath.org ) from the 
command-line in Terminal, and for that libncurses is required.


Under MacPorts 2.7.2 I have:

 sudo port installed | grep ncurses
 ncurses @6.3_0 (active)


If that was built with +universal, it would say so.



And sudo port info ncurses says that it is universal and is for 
platforms darwin, freebsd.


'port info' tells you about the AVAILABLE port, not the INSTALLED port.

'port installed' tells you about what you actually have installed.



--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire


x86_64 version of libncurses

2022-08-30 Thread Murray Eisenberg
Under macOS 12.5.1 on an M1 Mac, I'm trying to use the SageMath system 
(https://www.sagemath.org ) from the command-line in 
Terminal, and for that libncurses is required. 

Under MacPorts 2.7.2 I have:

 sudo port installed | grep ncurses
 ncurses @6.3_0 (active)

And sudo port info ncurses says that it is universal and is for platforms 
darwin, freebsd.

The SageMath system installed is the arm64 version. However, when I run the 
sage command, I get error:

[~] % sage
dyld[16273]: Library not loaded: '/opt/local/lib/libncurses.6.dylib'
  Referenced from: '/usr/local/bin/bash'
  Reason: tried: '/opt/local/lib/libncurses.6.dylib' (mach-o file, but is an 
incompatible architecture (have (arm64), need (x86_64))), 
'/usr/local/lib/libncurses.6.dylib' (no such file), 
'/usr/lib/libncurses.6.dylib' (no such file)
/usr/local/bin/sage: line 20: 16273 Abort trap: 6   /usr/bin/env - 
PATH="$PATH" $MIN_ENV "$SYMLINK"/venv/bin/sage "$@“

Is there some fix from the MacPorts end?

---
Murray Eisenbergmurrayeisenb...@gmail.com
Mobile (413)-427-5334
503 King Farm Blvd #101 
Rockville, MD 20850-6667