Q: how do I share a
pdf-tools installation between computers?
pdf-tools on two
difference machines, and sync my
.emacs.d between them via
I have installed
pdf-info-epdfinfo-program points to the executable
pdf-tools builds when installing. That's apparently a problem.
Formerly, I ran one machine on MacOS and another on Linux
(Fedora), and neither one could use the other's
executable. I now run one machine with Fedora and another with
Ubuntu, and, surprisingly, I have the same problem despite both
being Linux: the Fedora machine can't use the Ubuntu machine's
epdfinfo and vice-versa. The error message suggests that it cannot one of the
pdf-info-check-epdfinfo: Error running ‘/home/dan/Dropbox/.emacs.d/packages/pdf-tools-20170417.150/epdfinfo’: /home/dan/Dropbox/.emacs.d/packages/pdf-tools-20170417.150/epdfinfo: error while loading shared libraries: libpoppler.so.64: cannot open shared object file: No such file or directory
What I have done in the past is:
pdf-tools on one machine and save a copy of its
executable (say, as
pdf-tools on the other machine,
epdfinfo-alt into the
4) put a conditional statement in my
init file like:
;; pseudocode (when (eq machine machine-alt) (setq pdf-info-epdfinfo-program "some-directory/epdfinfo-alt"))
Surely there is a better way to share a
between machines that are not running the same operating
system or flavor of Linux. How do I do it without going to all
this fiddly trouble?
pdf-toolson each machine, which, in turn, compiles a different
epdfinfoon each machine. However, I don't have to deal with the poppler issues once I have the two compiled executables, because I have the janky conditional statement in the init file that uses the executable made by the current machine.