On Sun, Jul 24, 2022 at 04:11:31PM +1200, Davin Pearson wrote: > I am trying to install Emacs Version 28.1 onto my Ubuntu GNU/Linux machine. > > I have run the program ./configure with the following arguments with no > errors. > > www@www-HP-EliteBook-840-G2:/usr/share/emacs/emacs-28.1$ ./configure > --with-x-toolkit=no --with-xpm=ifavailable --with-jpeg=ifavailable > --with-png=ifavailable --with-gif=ifavailable --with-tiff=ifavailable > --with-gnutls=ifavailable > > When I run "make" the command ld returns the following error: > /usr/bin/ld: cannot find -lz "-lz" is the option for the linker lo link in a library called "libz". The first attempt at a remedy would be to install the corresponding packages (zlib1g and zlib1g-dev, you probably need the "-dev" companion, since you are trying to compile against it). I'm not 100% sure that will help: if zlib were missing, I'd have expected the build process to fail earlier. Cheers -- t