pdf-tools icon indicating copy to clipboard operation
pdf-tools copied to clipboard

Unable to install pdf-tools server on macOS Sonoma 14.2.1

Open adithyabhatkajake opened this issue 1 year ago • 0 comments

Describe the bug I am not able to install pdf-tools server on MacOS Sonoma 14.2.1. The build step fails with the following error:

❯ make distclean
Using Emacs 29.2
! [ -f server/Makefile ] || /Applications/Xcode.app/Contents/Developer/usr/bin/make -C server clean
rm -f -- lisp/*.elc
rm -f -- lisp/*.eln
rm -f -- pdf-tools-.tar
rm -f -- pdf-tools-readme.txt
rm -f -- pdf-tools-.entry
! [ -f server/Makefile ] || /Applications/Xcode.app/Contents/Developer/usr/bin/make -C server distclean
rm -rf -- .cask
❯ make -s
Using Emacs 29.2
Loading package information... done
Package operations: 12 installs, 0 removals
  - Installing [ 1/12] let-alist (1.0.4)... already present
  - Installing [ 2/12] tablist (1.0)... done
  - Installing [ 3/12] undercover (latest)... done
  - Installing [ 4/12] ert-runner (latest)... done
  - Installing [ 5/12] emacs (24)... already present
  - Installing [ 6/12] dash (2.0.0)... already present
  - Installing [ 7/12] shut-up (0.3.2)... already present
  - Installing [ 8/12] s (1.6.1)... already present
  - Installing [ 9/12] f (0.10.0)... already present
  - Installing [10/12] commander (0.2.0)... already present
  - Installing [11/12] ansi (0.1.0)... already present
  - Installing [12/12] cl-lib (0.3)... already present
./configure: line 4717: syntax error near unexpected token `png,'
./configure: line 4717: `PKG_CHECK_MODULES(png, libpng)'
make: *** [server/Makefile] Error 2
/tmp/pdf-tools master 8s ❯                                                                                                                                                                                                                                                                                                                                                   

Steps to Reproduce the behaviour Steps to reproduce the behaviour: 0. brew install poppler libpng

  1. Clone the repository to /tmp and cd into it
  2. Run make -s

Desktop Please complete the following information:

  • OS: MacOS Sonoma 14.2.1
  • Emacs Version: GNU Emacs 29.2 (build 2, aarch64-apple-darwin23.2.0, NS appkit-2487.30 Version 14.2.1 (Build 23C71)) of 2024-02-09
  • Poppler Version: poppler: stable 24.02.0 (bottled), HEAD

Your pdf-tools install Please complete the following information:

  • pdf-tools Version:
Package pdf-tools is available.

     Status: Available from melpa -- Install
    Archive: melpa
    Version: 20230611.239
     Commit: c69e7656a4678fe25afbd29f3503dd19ee7f9896
    Summary: Support library for PDF documents
   Requires: emacs-26.3, tablist-1.0, let-alist-1.0.4
    Website: https://github.com/vedang/pdf-tools/
   Keywords: files multimedia 
 Maintainer: Vedang Manerikar <[email protected]>
     Author: Andreas Politz <[email protected]>
Other versions: 1.1.0 (nongnu).
  • Tried running pdf-tools-install provided by doom emacs as well as building from source. The results are the same.

adithyabhatkajake avatar Feb 09 '24 21:02 adithyabhatkajake