Closed schplurtz closed 10 months ago
Thanks for the report. That's a new one for me. Yes, you should definitely be seeing x11 with $(brew --prefix)/opt/ghostscript-x11/bin/gs -h
. Do you have any other homebrew-installed apps that use X11, and does X11 work with them?
No. I have no x11 formula or cask installed. Only latest xquartz.
Here is the current list of my installed formulae, if that matters.
$ brew list --formula
MesCommandes libarchive node@16
aom libass oniguruma
apr libavif opencore-amr
apr-util libb2 openexr
argon2 libbluray openjpeg
aribb24 libde265 openldap
aspell libevent openssl@1.1
autoconf libheif openssl@3
bash libidn opus
brotli libidn2 opusfile
c-ares liblqr p11-kit
ca-certificates libmicrohttpd pango
cairo libnghttp2 pcre
cjson libogg pcre2
coreutils libomp php@8.0
curl libpng pixman
dav1d libpq pkg-config
dialog libraw popt
docker librist postgresql@14
docker-completion librsvg pstree
docker-compose libsamplerate pwgen
exiftool libsh-schplurtz pygments
fakeroot libsndfile python-certifi
ffmpeg libsodium python-distlib
findutils libsoxr python-filelock
flac libssh2 python-platformdirs
fontconfig libtasn1 python@3.10
freetds libtiff python@3.11
freetype libtool python@3.12
frei0r libunibreak python@3.8
fribidi libunistring qrencode
gd libuv rav1e
gdbm libvidstab readline
gdk-pixbuf libvmaf rtmpdump
gettext libvorbis rubberband
ghostscript libvpx sdl2
giflib libx11 shared-mime-info
glib libxau six
gmp libxcb snappy
gnu-tar libxdmcp sox
gnutls libxext speex
graphite2 libxrender sqlite
graphviz libzip srt
groonga little-cms2 sshuttle
gts lorem svt-av1
harfbuzz lz4 tcl-tk
highway lzo tesseract
htop m4 theora
httpie mad tidy-html5
icu4c mariadb tree
imagemagick mbedtls unbound
imath mecab unixodbc
jasper mecab-ipadic virtualenv
jbig2dec mongosh virtualenvwrapper
jpeg-turbo mpdecimal webp
jpeg-xl mpg123 x264
jq msgpack x265
krb5 multimarkdown xorgproto
lame ncdu xvid
ldapvi ncurses xz
leptonica netpbm zeromq
lesspipe nettle zimg
lftp node zstd
I installed grace and feh they both use x11. Grace does contact the X11 server but crashes almost instantly for some weird reason. Sometime I can see that it opens a window, but it stays just a few ms, then it crashes. feh (image viewer) works. It can display a png of a screenshot I just made.
Here is the grace error message
$ xmgrace
Warning: locale not supported by Xlib, locale set to C
Warning: X locale modifiers not supported, using default
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 12 (X_ConfigureWindow)
Value in failed request: 0x0
Serial number of failed request: 2135
Current serial number in output stream: 2136
I'm going to reinstall ghostscript, and I'll let you know the result.
Recompiling while grace and feh are installed solved my issue. I removed ghostscript, grace and feh and their dependencies, then reinstalled grace alone and reinstalled ghostscript. And it worked !
It seems you missed a few dependencies. but it seems these are only build dependencies, not needed at runtime.
==> Fetching dependencies for grace: isl, mpfr, libmpc, gcc, hwloc, pmix, open-mpi, fftw, libice, libsm, libxt, libxmu, libxp, libxpm, libxft, xbitmaps and openmotif
remove grace and deps. I use rmtree for that
$ brew rmtree grace
==> Cleaning up packages safe to remove
Uninstalling /usr/local/Cellar/grace/5.1.25_5... (266 files, 9.5MB)
Uninstalling /usr/local/Cellar/fftw/3.3.10_1... (73 files, 19.2MB)
Uninstalling /usr/local/Cellar/libxpm/3.5.17... (56 files, 383.6KB)
Uninstalling /usr/local/Cellar/openmotif/2.3.8_2... (1,245 files, 17MB)
Uninstalling /usr/local/Cellar/open-mpi/5.0.0... (2,751 files, 75.6MB)
Uninstalling /usr/local/Cellar/libxmu/1.1.4... (36 files, 423.8KB)
Uninstalling /usr/local/Cellar/libxft/2.3.8... (92 files, 340.2KB)
Uninstalling /usr/local/Cellar/gcc/13.2.0... (1,590 files, 421.8MB)
Warning: The following may be pmix configuration files and have not been removed!
If desired, remove them manually with `rm -rf`:
/usr/local/etc/pmix-mca-params.conf
Uninstalling /usr/local/Cellar/pmix/4.2.7... (351 files, 8.4MB)
Error: Refusing to uninstall /usr/local/Cellar/libxt/1.3.0
because it is required by ghostscript-x11, which is currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies libxt
Uninstalling /usr/local/Cellar/xbitmaps/1.1.3... (77 files, 197.7KB)
Uninstalling /usr/local/Cellar/isl/0.26... (73 files, 7.6MB)
Uninstalling /usr/local/Cellar/libmpc/1.3.1... (12 files, 464.1KB)
Error: Refusing to uninstall /usr/local/Cellar/libsm/1.2.4
because it is required by ghostscript-x11 and libxt, which are currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies libsm
Uninstalling /usr/local/Cellar/mpfr/4.2.1... (30 files, 3.1MB)
Error: Refusing to uninstall /usr/local/Cellar/libice/1.1.1
because it is required by ghostscript-x11, libsm and libxt, which are currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies libice
Uninstalling /usr/local/Cellar/hwloc/2.9.3... (969 files, 10.5MB)
Uninstalling /usr/local/Cellar/libxp/1.0.4... (46 files, 309.4KB)
$(brew --prefix)/opt/ghostscript-x11/bin/gs
still works like a charm.Hope this helps.
Thanks @schplurtz! I was able to reproduce this on an M2.
I think the critical missing library that your install/uninstall procedure revealed was libxt (or one of its dependencies). I plan to update the ghostscript-x11 formula accordingly. If this breaks anything for you, please let me know.
Hi, on macos ventura 13.6.1 intel (that mac does not support macos 14) there is no x11 device at all.
I installed with
It took a few minutes to install. Then, when I launch
$(brew --prefix)/opt/ghostscript-x11/bin/gs -h
gs does not list any x11 device. Here is the relevant part of the output (full result at the end)So no X11. I expected to see some x11 devices such as
x11
,x11alpha
and the like. These are present on a Linux box:Also, running
$(brew --prefix)/opt/ghostscript-x11/bin/gs
does not open any X11 window.full result of
$(brew --prefix)/opt/ghostscript-x11/bin/gs -h
: