wslay - WebSocket library written in C ChangeLog

HOWTO


# Wslay 1.1.1
# ===========
# Prerequisites:
# pkg-config
# Python (for Sphinx)
# Sphinx (install/update below with 'pip')
# Nettle
# CUnit

# Get the source
cd
test -f installed/wslay-1.1.1.tar.xz &&
mv -f installed/wslay-1.1.1.tar.xz .
test ! -f wslay-1.1.1.tar.xz &&
wget https://github.com/tatsuhiro-t/wslay/releases/download/\
release-1.1.1/wslay-1.1.1.tar.xz

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -type d -maxdepth 1 -name "wslay-*" -exec rm -r {} \;
tar xJvf ~/wslay-1.1.1.tar.xz
cd wslay-1.1.1
test $UID = 0 && chown -R root:root .

# Install/update Python pip and Sphynx
su
python3 -m pip install -U pip
pip install -U sphynx
exit

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

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

# If you get a build error related to Nettle and base64.h, read this GitHub
# issue below.  I had this problem with Nettle 3.4, but not Nettle 3.9.1
# Fix compilation of examples #49

# Build it
make

# Check the build
make check

# Become root to install it
su

# 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/wslay-*.tar.*
mv wslay-1.1.1.tar.xz installed/


# If you ever want to uninstall Wslay, this should do it:
# ('make uninstall' as root should be enough, the rest just in case)
cd
su
test -d src/wslay-* && ( cd src/wslay-* ; make uninstall )
( cd /usr/local/bin
  rm -f echoserv fork-echoserv testclient )
test -d /usr/local/include/wslay && rm -r /usr/local/include/wslay
( cd /usr/local/lib
  rm -f libwslay.* rm -f pkgconfig/libwslay.pc )
test -d /usr/local/lib64 &&
( cd /usr/local/lib64
   rm -f libswlay.* pkgconfig/libwslay.pc )
( cd /usr/local/man/man3 ; rm -f wslay_*.3 )
ldconfig
exit
find ~/src -maxdepth 1 -type d -name "wslay-*" -exec rm -r {} \;
rm -f ~/installed/wslay-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2023-09-10 3:05pm
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]