astrand / xclip

Command line interface to the X11 clipboard
GNU General Public License v2.0
1.03k stars 73 forks source link

Install without root priviliges #116

Open Kvothe-The-Bloodless opened 3 years ago

Kvothe-The-Bloodless commented 3 years ago

Is there any way to install this without root priviliges?I tried and it gave the error

/usr/bin/install -c xclip xclip-copyfile xclip-pastefile xclip-cutfile /usr/local/bin
/usr/bin/install: cannot create regular file `/usr/local/bin/xclip': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/xclip-copyfile': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/xclip-pastefile': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/bin/xclip-cutfile': Permission denied

If the only problem is that the proper files can't be installed in /usr/bin/install is there any way to indicate that it should simply be build to some other directory where the user has the right permissions.

Kvothe-The-Bloodless commented 3 years ago

I managed with ./configure --prefix="$HOME/local/xclip", but now xclip won't run due to xclip: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by xclip). I got no complaint about a missing library when I used .configure.

I checked with /lib64/libc.so.6

that I have the following version which is apparently too low: GNU C Library stable release version 2.12

So I guess I would have to build a newer version of libc locally too.