ERROR: Slooooow dooooown... this page load was delayed.


libedit - Autotool and libtoolized port of the NetBSD Editline library ChangeLog

HOWTO


# libedit 20210714-3.1
# ====================
# As this is written, Slackware-current includes a libedit package, but
# no previous release does (14.2, 14.1, ...)

# Prerequisites:
# gawk/awk
# termcap
# ncurses/curses

# Get the source
cd
test ! -f installed/libedit-20210714-3.1.tar.gz &&
mv -f installed/libedit-20210714-3.1.tar.gz .
test ! -f libedit-20210714-3.1.tar.gz &&
wget https://thrysoee.dk/editline/libedit-20210714-3.1.tar.gz

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -type d -name "libedit-*" -exec rm -r {} \;
tar xzvf ~/libedit-20210714-3.1.tar.gz
cd libedit-20210714-3.1
test $UID = 0 && chown -R root:root .

# Configure the build for 64-bit
test $(uname -m) = 'x86_64' &&
./configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man

# Configure the build for anything else
test $(uname -m) != 'x86_64' &&
./configure --prefix=/usr --mandir=/usr/man

# Build it
make

# Become root to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg libedit

# If you're sure nothing is using it (lsof), remove old versions of shared
# library files.  ...or, look at /usr/lib*/libedit.* after 'make install'
# and remove anything with an older date.
rm -f /usr/lib*/libedit.so.*

# Install it
make install
ldconfig

# Become your non-root user again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/libedit-*.tar.gz
mv -f libedit-20210714-3.1.tar.gz installed/


# If you ever want to uninstall libedit, this should do it:
cd
su
test -d src/libedit-* && ( cd src/libedit-* ; make uninstall )
test -d /usr/include/editline && rm -r /usr/include/editline
test -d /usr/man/man3 &&
( cd /usr/man/man3
  find -type l -name "el_*.3" -exec rm {} \;
  find -type l -name "tok_*.3" -exec rm {} \;
  rm -f editline.3 history_w.3 history_wend.3 history_winit.3 )
test -d /usr/lib64 &&
( cd /usr/lib64
  rm -f libedit.*
  test -f pkgconfig/libedit.pc && rm pkgconfig/libedit.pc )
rm -f /usr/include/histedit.h /usr/lib/libedit.* \
/usr/lib/pkgconfig/libedit.pc \
/usr/man/man5/editrc.5 \
/usr/man/man7/editline.7
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "libedit-*" -exec rm -r {} \;
rm -f ~/installed/libedit-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2021-08-03 7:04pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]