Skip to content

Instantly share code, notes, and snippets.

@houtianze
Last active April 16, 2020 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save houtianze/0fa0fe8bc6fad382631fd38f511f2048 to your computer and use it in GitHub Desktop.
Save houtianze/0fa0fe8bc6fad382631fd38f511f2048 to your computer and use it in GitHub Desktop.
Build xclip on CentOS
#!/bin/sh
set -e
# ================================================================
# << Update >>
# Running the following is enough, no need to build yourself
# sudo yum install epel-release.noarch
# sudo yum install xclip
# ================================================================
# simply run the following in your terminal
# curl -L https://git.io/XClipYum | sh
# WARNING: a directory name 'xclip' will be created in your current directory
# http://superuser.com/a/410740/135952
yum install -y automake autoconf git libXmu libXmu-devel libtool
git clone https://github.com/astrand/xclip.git
cd xclip
autoreconf
./configure
make
sudo make install
sudo make install.man
#make distclean
cd ..
set +e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment