unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Problems installing Emacs Version 28.1
@ 2022-07-24  4:11 Davin Pearson
  2022-07-24  4:16 ` Davin Pearson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Davin Pearson @ 2022-07-24  4:11 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 6630 bytes --]

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

What am I doing wrong?  The print out of the command "make" is shown
below:

------------------------------------------------------------------------

www@www-HP-EliteBook-840-G2:/usr/share/emacs/emacs-28.1$ make
make -C lib all
make[1]: Entering directory '/usr/share/emacs/emacs-28.1/lib'
  GEN      alloca.h
  GEN      dirent.h
  GEN      malloc/dynarray.gl.h
  GEN      malloc/dynarray-skeleton.gl.h
  GEN      fcntl.h
  GEN      inttypes.h
echo '#include "mini-gmp.h"' >gmp.h-t
mv gmp.h-t gmp.h
  GEN      limits.h
  GEN      signal.h
  GEN      stdio.h
  GEN      stdlib.h
  GEN      string.h
  GEN      sys/random.h
  GEN      sys/select.h
  GEN      sys/stat.h
  GEN      sys/time.h
  GEN      sys/types.h
  GEN      time.h
  GEN      unistd.h
  CC       fingerprint.o
  CC       fchmodat.o
  CC       fcntl.o
  CC       free.o
  CC       fsusage.o
  CC       mini-gmp-gnulib.o
  CC       regex.o
  CC       sig2str.o
  CC       sigdescr_np.o
  CC       time_rz.o
  CC       acl-errno-valid.o
  CC       acl-internal.o
  CC       get-permissions.o
  CC       set-permissions.o
  CC       allocator.o
  CC       binary-io.o
  CC       c-ctype.o
  CC       c-strcasecmp.o
  CC       c-strncasecmp.o
  CC       careadlinkat.o
  CC       close-stream.o
  CC       count-leading-zeros.o
  CC       count-one-bits.o
  CC       count-trailing-zeros.o
  CC       md5-stream.o
  CC       md5.o
  CC       sha1.o
  CC       sha256.o
  CC       sha512.o
  CC       dtoastr.o
  CC       dtotimespec.o
  CC       malloc/dynarray_at_failure.o
  CC       malloc/dynarray_emplace_enlarge.o
  CC       malloc/dynarray_finalize.o
  CC       malloc/dynarray_resize.o
  CC       malloc/dynarray_resize_clear.o
  CC       file-has-acl.o
  CC       filemode.o
  CC       filevercmp.o
  CC       gettime.o
  CC       nproc.o
  CC       nstrftime.o
  CC       pipe2.o
  CC       qcopy-acl.o
  CC       stat-time.o
  CC       tempname.o
  CC       timespec.o
  CC       timespec-add.o
  CC       timespec-sub.o
  CC       u64.o
  CC       unistd.o
  CC       openat-die.o
  CC       save-cwd.o
  AR       libgnu.a
make[1]: Leaving directory '/usr/share/emacs/emacs-28.1/lib'
make -C lib-src all
make[1]: Entering directory '/usr/share/emacs/emacs-28.1/lib-src'
  CCLD     etags
  CCLD     ctags
  CCLD     emacsclient
  CCLD     ebrowse
  CCLD     hexl
  CC       pop.o
  CCLD     movemail
  CCLD     make-docfile
  CCLD     make-fingerprint
make[1]: Leaving directory '/usr/share/emacs/emacs-28.1/lib-src'
make -C src VCSWITNESS='' BIN_DESTDIR=''/usr/local/bin/'' \
ELN_DESTDIR='/usr/local/lib/emacs/28.1/' all
make[1]: Entering directory '/usr/share/emacs/emacs-28.1/src'
  GEN      lisp.mk
make -C ../oldXMenu/ libXMenu11.a
make[2]: Entering directory '/usr/share/emacs/emacs-28.1/oldXMenu'
  CC       Activate.o
  CC       AddPane.o
  CC       AddSel.o
  CC       ChgPane.o
  CC       ChgSel.o
  CC       Create.o
  CC       DelPane.o
  CC       DelSel.o
  CC       Destroy.o
  CC       Error.o
  CC       EvHand.o
  CC       FindPane.o
  CC       FindSel.o
  CC       InsPane.o
  CC       InsSel.o
  CC       Internal.o
  CC       Locate.o
  CC       Post.o
  CC       Recomp.o
  CC       SetAEQ.o
  CC       SetFrz.o
  CC       SetPane.o
  CC       SetSel.o
  CC       XDelAssoc.o
  CC       XLookAssoc.o
  CC       XCrAssoc.o
  CC       XDestAssoc.o
  CC       XMakeAssoc.o
  CC       insque.o
  GEN      libXMenu11.a
make[2]: Leaving directory '/usr/share/emacs/emacs-28.1/oldXMenu'
  GEN      globals.h
  CC       dispnew.o
  CC       frame.o
  CC       scroll.o
  CC       xdisp.o
  CC       menu.o
  CC       xmenu.o
  CC       window.o
  CC       charset.o
  CC       coding.o
  CC       category.o
  CC       ccl.o
  CC       character.o
  CC       chartab.o
  CC       bidi.o
  CC       cm.o
  CC       term.o
  CC       terminal.o
  CC       xfaces.o
  CC       xterm.o
  CC       xfns.o
  CC       xselect.o
  CC       xrdb.o
  CC       xsmfns.o
  CC       xsettings.o
  CC       emacs.o
  CC       keyboard.o
  CC       macros.o
  CC       keymap.o
  CC       sysdep.o
  CC       bignum.o
  CC       buffer.o
  CC       filelock.o
  CC       insdel.o
  CC       marker.o
  CC       minibuf.o
  CC       fileio.o
  CC       dired.o
  CC       cmds.o
  CC       casetab.o
  CC       casefiddle.o
  CC       indent.o
  CC       search.o
  CC       regex-emacs.o
  CC       undo.o
  CC       alloc.o
  CC       pdumper.o
  CC       data.o
  GEN      buildobj.h
  CC       doc.o
  CC       editfns.o
  CC       callint.o
  CC       eval.o
  CC       floatfns.o
  CC       fns.o
  CC       font.o
  CC       print.o
  CC       lread.o
  CC       emacs-module.o
  CC       syntax.o
  CC       bytecode.o
  CC       comp.o
  CC       dynlib.o
  CC       process.o
  CC       gnutls.o
  CC       callproc.o
  CC       region-cache.o
  CC       sound.o
  CC       timefns.o
  CC       atimer.o
  CC       doprnt.o
  CC       intervals.o
  CC       textprop.o
  CC       composite.o
  CC       xml.o
  CC       lcms.o
  CC       inotify.o
  CC       profiler.o
  CC       decompress.o
  CC       thread.o
  CC       systhread.o
  CC       xfont.o
  CC       fontset.o
  CC       fringe.o
  CC       image.o
  CC       terminfo.o
  CC       lastfile.o
make -C ../admin/charsets all
make[2]: Entering directory '/usr/share/emacs/emacs-28.1/admin/charsets'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/usr/share/emacs/emacs-28.1/admin/charsets'
make -C ../admin/unidata charscript.el
make[2]: Entering directory '/usr/share/emacs/emacs-28.1/admin/unidata'
make[2]: Nothing to be done for 'charscript.el'.
make[2]: Leaving directory '/usr/share/emacs/emacs-28.1/admin/unidata'
make -C ../admin/unidata emoji-zwj.el
make[2]: Entering directory '/usr/share/emacs/emacs-28.1/admin/unidata'
make[2]: Nothing to be done for 'emoji-zwj.el'.
make[2]: Leaving directory '/usr/share/emacs/emacs-28.1/admin/unidata'
  CCLD     temacs
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:647: temacs] Error 1
make[1]: Leaving directory '/usr/share/emacs/emacs-28.1/src'
make: *** [Makefile:449: src] Error 2

[-- Attachment #2: Type: text/html, Size: 8428 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems installing Emacs Version 28.1
  2022-07-24  4:11 Problems installing Emacs Version 28.1 Davin Pearson
@ 2022-07-24  4:16 ` Davin Pearson
  2022-07-24  5:38 ` tomas
  2022-07-24 11:18 ` Gregor Zattler
  2 siblings, 0 replies; 5+ messages in thread
From: Davin Pearson @ 2022-07-24  4:16 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 7602 bytes --]

I thought the problem was a missing ld command so
I tried the following but received no joy.  Below is the
output of the install ld command:

www@www-HP-EliteBook-840-G2:~$ sudo apt-get install ld
[sudo] password for www:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ld

Please help me get my Emacs running like it should!

On Sun, 24 Jul 2022 at 16:11, Davin Pearson <davin.pearson@gmail.com> 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
>
> What am I doing wrong?  The print out of the command "make" is shown
> below:
>
> ------------------------------------------------------------------------
>
> www@www-HP-EliteBook-840-G2:/usr/share/emacs/emacs-28.1$ make
> make -C lib all
> make[1]: Entering directory '/usr/share/emacs/emacs-28.1/lib'
>   GEN      alloca.h
>   GEN      dirent.h
>   GEN      malloc/dynarray.gl.h
>   GEN      malloc/dynarray-skeleton.gl.h
>   GEN      fcntl.h
>   GEN      inttypes.h
> echo '#include "mini-gmp.h"' >gmp.h-t
> mv gmp.h-t gmp.h
>   GEN      limits.h
>   GEN      signal.h
>   GEN      stdio.h
>   GEN      stdlib.h
>   GEN      string.h
>   GEN      sys/random.h
>   GEN      sys/select.h
>   GEN      sys/stat.h
>   GEN      sys/time.h
>   GEN      sys/types.h
>   GEN      time.h
>   GEN      unistd.h
>   CC       fingerprint.o
>   CC       fchmodat.o
>   CC       fcntl.o
>   CC       free.o
>   CC       fsusage.o
>   CC       mini-gmp-gnulib.o
>   CC       regex.o
>   CC       sig2str.o
>   CC       sigdescr_np.o
>   CC       time_rz.o
>   CC       acl-errno-valid.o
>   CC       acl-internal.o
>   CC       get-permissions.o
>   CC       set-permissions.o
>   CC       allocator.o
>   CC       binary-io.o
>   CC       c-ctype.o
>   CC       c-strcasecmp.o
>   CC       c-strncasecmp.o
>   CC       careadlinkat.o
>   CC       close-stream.o
>   CC       count-leading-zeros.o
>   CC       count-one-bits.o
>   CC       count-trailing-zeros.o
>   CC       md5-stream.o
>   CC       md5.o
>   CC       sha1.o
>   CC       sha256.o
>   CC       sha512.o
>   CC       dtoastr.o
>   CC       dtotimespec.o
>   CC       malloc/dynarray_at_failure.o
>   CC       malloc/dynarray_emplace_enlarge.o
>   CC       malloc/dynarray_finalize.o
>   CC       malloc/dynarray_resize.o
>   CC       malloc/dynarray_resize_clear.o
>   CC       file-has-acl.o
>   CC       filemode.o
>   CC       filevercmp.o
>   CC       gettime.o
>   CC       nproc.o
>   CC       nstrftime.o
>   CC       pipe2.o
>   CC       qcopy-acl.o
>   CC       stat-time.o
>   CC       tempname.o
>   CC       timespec.o
>   CC       timespec-add.o
>   CC       timespec-sub.o
>   CC       u64.o
>   CC       unistd.o
>   CC       openat-die.o
>   CC       save-cwd.o
>   AR       libgnu.a
> make[1]: Leaving directory '/usr/share/emacs/emacs-28.1/lib'
> make -C lib-src all
> make[1]: Entering directory '/usr/share/emacs/emacs-28.1/lib-src'
>   CCLD     etags
>   CCLD     ctags
>   CCLD     emacsclient
>   CCLD     ebrowse
>   CCLD     hexl
>   CC       pop.o
>   CCLD     movemail
>   CCLD     make-docfile
>   CCLD     make-fingerprint
> make[1]: Leaving directory '/usr/share/emacs/emacs-28.1/lib-src'
> make -C src VCSWITNESS='' BIN_DESTDIR=''/usr/local/bin/'' \
> ELN_DESTDIR='/usr/local/lib/emacs/28.1/' all
> make[1]: Entering directory '/usr/share/emacs/emacs-28.1/src'
>   GEN      lisp.mk
> make -C ../oldXMenu/ libXMenu11.a
> make[2]: Entering directory '/usr/share/emacs/emacs-28.1/oldXMenu'
>   CC       Activate.o
>   CC       AddPane.o
>   CC       AddSel.o
>   CC       ChgPane.o
>   CC       ChgSel.o
>   CC       Create.o
>   CC       DelPane.o
>   CC       DelSel.o
>   CC       Destroy.o
>   CC       Error.o
>   CC       EvHand.o
>   CC       FindPane.o
>   CC       FindSel.o
>   CC       InsPane.o
>   CC       InsSel.o
>   CC       Internal.o
>   CC       Locate.o
>   CC       Post.o
>   CC       Recomp.o
>   CC       SetAEQ.o
>   CC       SetFrz.o
>   CC       SetPane.o
>   CC       SetSel.o
>   CC       XDelAssoc.o
>   CC       XLookAssoc.o
>   CC       XCrAssoc.o
>   CC       XDestAssoc.o
>   CC       XMakeAssoc.o
>   CC       insque.o
>   GEN      libXMenu11.a
> make[2]: Leaving directory '/usr/share/emacs/emacs-28.1/oldXMenu'
>   GEN      globals.h
>   CC       dispnew.o
>   CC       frame.o
>   CC       scroll.o
>   CC       xdisp.o
>   CC       menu.o
>   CC       xmenu.o
>   CC       window.o
>   CC       charset.o
>   CC       coding.o
>   CC       category.o
>   CC       ccl.o
>   CC       character.o
>   CC       chartab.o
>   CC       bidi.o
>   CC       cm.o
>   CC       term.o
>   CC       terminal.o
>   CC       xfaces.o
>   CC       xterm.o
>   CC       xfns.o
>   CC       xselect.o
>   CC       xrdb.o
>   CC       xsmfns.o
>   CC       xsettings.o
>   CC       emacs.o
>   CC       keyboard.o
>   CC       macros.o
>   CC       keymap.o
>   CC       sysdep.o
>   CC       bignum.o
>   CC       buffer.o
>   CC       filelock.o
>   CC       insdel.o
>   CC       marker.o
>   CC       minibuf.o
>   CC       fileio.o
>   CC       dired.o
>   CC       cmds.o
>   CC       casetab.o
>   CC       casefiddle.o
>   CC       indent.o
>   CC       search.o
>   CC       regex-emacs.o
>   CC       undo.o
>   CC       alloc.o
>   CC       pdumper.o
>   CC       data.o
>   GEN      buildobj.h
>   CC       doc.o
>   CC       editfns.o
>   CC       callint.o
>   CC       eval.o
>   CC       floatfns.o
>   CC       fns.o
>   CC       font.o
>   CC       print.o
>   CC       lread.o
>   CC       emacs-module.o
>   CC       syntax.o
>   CC       bytecode.o
>   CC       comp.o
>   CC       dynlib.o
>   CC       process.o
>   CC       gnutls.o
>   CC       callproc.o
>   CC       region-cache.o
>   CC       sound.o
>   CC       timefns.o
>   CC       atimer.o
>   CC       doprnt.o
>   CC       intervals.o
>   CC       textprop.o
>   CC       composite.o
>   CC       xml.o
>   CC       lcms.o
>   CC       inotify.o
>   CC       profiler.o
>   CC       decompress.o
>   CC       thread.o
>   CC       systhread.o
>   CC       xfont.o
>   CC       fontset.o
>   CC       fringe.o
>   CC       image.o
>   CC       terminfo.o
>   CC       lastfile.o
> make -C ../admin/charsets all
> make[2]: Entering directory '/usr/share/emacs/emacs-28.1/admin/charsets'
> make[2]: Nothing to be done for 'all'.
> make[2]: Leaving directory '/usr/share/emacs/emacs-28.1/admin/charsets'
> make -C ../admin/unidata charscript.el
> make[2]: Entering directory '/usr/share/emacs/emacs-28.1/admin/unidata'
> make[2]: Nothing to be done for 'charscript.el'.
> make[2]: Leaving directory '/usr/share/emacs/emacs-28.1/admin/unidata'
> make -C ../admin/unidata emoji-zwj.el
> make[2]: Entering directory '/usr/share/emacs/emacs-28.1/admin/unidata'
> make[2]: Nothing to be done for 'emoji-zwj.el'.
> make[2]: Leaving directory '/usr/share/emacs/emacs-28.1/admin/unidata'
>   CCLD     temacs
> /usr/bin/ld: cannot find -lz
> collect2: error: ld returned 1 exit status
> make[1]: *** [Makefile:647: temacs] Error 1
> make[1]: Leaving directory '/usr/share/emacs/emacs-28.1/src'
> make: *** [Makefile:449: src] Error 2
>

[-- Attachment #2: Type: text/html, Size: 9354 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems installing Emacs Version 28.1
  2022-07-24  4:11 Problems installing Emacs Version 28.1 Davin Pearson
  2022-07-24  4:16 ` Davin Pearson
@ 2022-07-24  5:38 ` tomas
  2022-07-24 11:18 ` Gregor Zattler
  2 siblings, 0 replies; 5+ messages in thread
From: tomas @ 2022-07-24  5:38 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems installing Emacs Version 28.1
  2022-07-24  4:11 Problems installing Emacs Version 28.1 Davin Pearson
  2022-07-24  4:16 ` Davin Pearson
  2022-07-24  5:38 ` tomas
@ 2022-07-24 11:18 ` Gregor Zattler
  2022-07-25  2:15   ` Davin Pearson
  2 siblings, 1 reply; 5+ messages in thread
From: Gregor Zattler @ 2022-07-24 11:18 UTC (permalink / raw)
  To: Davin Pearson, emacs-devel

Hi Davin,
* Davin Pearson <davin.pearson@gmail.com> [2022-07-24; 16:11]:
> 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

you probably need to install some more packages in order for
your operating system to be able to build emacs:

sudo apt update
sudo apt install build-essential
sudo apt build-dep emacs

before building emacs.  Otherwise ask a search engine "how
to build emacs on ubuntu" and you will get loads of helpful
links, like this one:

https://ubuntuhandbook.org/index.php/2021/12/compile-gnu-emacs-source-ubuntu/




Ciao; Gregor
--
 -... --- .-. . -.. ..--.. ...-.-



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems installing Emacs Version 28.1
  2022-07-24 11:18 ` Gregor Zattler
@ 2022-07-25  2:15   ` Davin Pearson
  0 siblings, 0 replies; 5+ messages in thread
From: Davin Pearson @ 2022-07-25  2:15 UTC (permalink / raw)
  To: Davin Pearson, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

Thank you all for helping with my installation problems with GNU
Emacs Version 28.1.

What follows is a description of the behavior of Emacs Version 28.1:

One thing that I notice is the @ character appearing on the bottom
left of the mode line.  When I move the mouse over it, it says:
"emacsclient frame".

I also notice that loading and saving emacs takes much less time
than usual.  Is this because emacs is running as a daemon thread and
is invoked every time you click on the Emacs button?

[-- Attachment #2: Type: text/html, Size: 567 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-07-25  2:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-24  4:11 Problems installing Emacs Version 28.1 Davin Pearson
2022-07-24  4:16 ` Davin Pearson
2022-07-24  5:38 ` tomas
2022-07-24 11:18 ` Gregor Zattler
2022-07-25  2:15   ` Davin Pearson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).