I just tried installing emacs yet again on a system. I used this script:
```
(
export PS4='> '
setopt PIPE_FAIL PRINT_EXIT_VALUE ERR_RETURN SOURCE_TRACE XTRACE
##
if test -n "${commands[brew]}" ; then
export PATH="$(perl -e 'print join(":", grep { index($_, "'"$(brew --prefix)"'") == -1 } split(/:/, $ENV{PATH}))')"
fi
##
prefix_dir=~/emacs_ins
mkdir -p "${prefix_dir}"
cores_used=2
# url='
https://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-c6cb6d8506916dd1c17fba2d24ec63426c4afdbd.tar.gz'
url='
https://ftp.gnu.org/gnu/emacs/emacs-29.3.tar.gz'
rm -rf ~/code/emacs_ins
mkdir -p ~/code/emacs_ins
cd ~/code/emacs_ins
wget "$url"
mkdir -p emacs
tar xvzf emacs-*.tar.gz -C emacs --strip-components=1
#: You can use the `-C` option of the `tar` command to specify the directory where you want to extract the files. The `--strip-components=1` option will remove the top-level directory from the archive, so that the files are extracted directly into the `emacs` directory.
cd emacs
mkdir build && cd build
config_opts=(
--with-x-toolkit=no
--with-xpm=ifavailable
--with-jpeg=ifavailable
--with-gif=ifavailable
--with-tiff=ifavailable
--with-gnutls=ifavailable
)
../configure --prefix="${prefix_dir}" "${config_opts[@]}"
make -j"${cores_used}"
make -j"${cores_used}" install
)
```
I get this error (and this is after adding all those configure options which had previously caused errors):
```
checking for library containing tputs... no
configure: error: The required function 'tputs' was not found in any library.
The following libraries were tried (in order):
libtinfo, libncurses, libterminfo, libcurses, libtermcap
Please try installing whichever of these libraries is most appropriate
for your system, together with its header files.
For example, a libncurses-dev(el) or similar package.
```
So what should I do now?