Last active
August 29, 2020 22:18
-
-
Save houtianze/7ba320bc250589fdd35ad4082e52133f to your computer and use it in GitHub Desktop.
Build xsel on CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
# ================================================================ | |
# << Update >> | |
# Running the following is enough, no need to build yourself | |
# sudo yum install epel-release.noarch | |
# sudo yum install xsel | |
# ================================================================ | |
# 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 | |
# simply run the following in your terminal | |
# curl -L https://git.io/XSelYum | sh | |
# WARNING: In the current directory, a file named "xsel-1.2.0" will be downloaded | |
# and directory name 'xsel-1.2.0' will be created | |
# http://superuser.com/a/410740/135952 | |
yum install -y automake autoconf git libtool | |
curl -OL http://www.vergenet.net/~conrad/software/xsel/download/xsel-1.2.0.tar.gz | |
tar -xzf xsel-1.2.0.tar.gz | |
cd xsel-1.2.0 | |
./autogen.sh | |
./configure | |
make | |
make check | |
sudo make install | |
#make distclean | |
cd .. | |
set +e | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for writing this up, very helpful!