简体   繁体   中英

How to setup pngquant to Linux server?

I want to setup pngquant to my linux server but I don't know which ssh command should I use to setup it.

This library's web site is http://pngquant.org/ but there is no documentation about installing it to server via SSH

You should connect to your server via SSH, then download the sources (using wget ) :

wget https://github.com/pornel/pngquant/tarball/master

Then extract the downloaded tarball :

tar xzf master

Then cd to whatever directory that created :

cd ...

According to their documentation , you just need to make it :

make

If that doesn't output any errors, you can install it system-wide by running make install as superuser (root) :

sudo make install

Or, if sudo isn't available in your distribution :

su root

make install

exit

And there you have it.

sudo yum install -y epel-release pngquant

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM