How to install libvips with mozjpeg and libimagequant on Debian/Ubuntu? - linux

I want to build a server for treat all images of a website.
I have a script in Nodejs using Sharp and I would like to setup the server with the best libs to use maximum power of libvips.
I would like to get help to install it.
I can install libvips-dev using:
apt-get install libvips-dev
But it don't have mozjpeg and libimagequant.

To install libimagequant through apt you should have debian (Buster, Bullseye or Sid).
On Ubuntu the package is available only for Ubuntu disco 19.04 and eoan 19.10.
sudo apt install libimagequant-dev
The package mozjpeg is available on this git repository, the build instruction and requirement : building.md

Related

Yum cannot find the package I want to install

I am trying to a simple command sudo yum install SDL2. I know that this package exists as per the SDL website:
Red Hat-based systems (including Fedora) can simply do "sudo yum install SDL2" to get the library installed system-wide, or "sudo yum install SDL2-devel" to get headers and other build requirements ready for compiling your own SDL programs.
However, when I try to execute my command, I get the following:
Setting up Install Process
No package SDL2 available.
Error: Nothing to do
I am using Red Hat Enterprise Linux Server release 5.3 (Tikanga). How can I go about getting yum to locate this package?
ONLY SDL is available on redhat 5.3
uname -r
2.6.32-573.12.1.el6.centos.plus.x86_64
yum search sdl-devel --verbose
SDL-devel.x86_64 : Files needed to develop Simple DirectMedia Layer applications
Repo : base
With Fedora 26, SDL2 is available in repo fedora
uname -r
4.11.0-2.fc26.x86_64
dnf --disablerepo="*" --enablerepo="fedora" search sdl2-devel --verbose
SDL2-devel.x86_64 : Files needed to develop Simple DirectMedia Layer applications
Repo : fedora

How to install JavaPackage on ubuntu

I came across a debian application by the name JavaPackage which can create a debian installation file (.deb) form a java binary (.tar.gz) which you can then install using dpkg -i application_name.deb. With Ubuntu being a debian-based linux distribution, it is possible that it can be installed on ubuntu as well.
How do I go about installing it on Ubuntu/Kubuntu 16.04.2 LTS?
java-package is available in the official ubuntu repositories. All you need to do is update the repository with the latest version then install it as shown below:
sudo apt-get update
sudo apt-get install java-package

How to install node.js and its dependency in openVZ server

I am new to openVZ and I want to install node.js and all its dependencies on openVZ server.
Suggestion is much appreciated, thank you.
To install nodejs on either OpenVZ server or OpenVZ container you would want to use whichever package manager that is provided with your distribution. The two most popular OpenVZ server distributions are CentOS (yum/rpm) and Debian (aptitude/apt-get/dpkg). If you are using an OpenVZ container, there are many more possibilities but chances are it is a distribution that supports either yum or apt.
For CentOS 7 (YUM/RPM) you first need to install the extra packages repository:
yum install epel-release
Then you should be able to install nodejs:
yum install nodejs
For Debian Jessie (and also Ubuntu 16.04) it appears to be in the stable repositories so you can just install it:
aptitude update
aptitude install nodejs
EDIT: I just noticed a minimal Ubuntu did not have aptitude installed. Instructions for apt-get:
apt-get update
apt-get install nodejs
If that does not answer your question, please supply more information such as which distribution you are using and what version of nodejs you need to install so others will be able to assist you better.

How to install the latest wkhtmltopdf on ubuntu 12.04

I did apt-get install wkhtmltopdf on my mac and it installed 12.2.1 and works well. I've now deployed to the ubuntu server, and require wkhtmltopdf on that server. apt-get install wkhtmltopdf only installed 0.9. I followed this explination and it kind of worked, I now have 12.1 installed. But it is not behaving the same as version 12.2.1 on my mac.
And when I do apt-get install wkhtmltopdf again on the ubuntu server it says the latest version is already installed, even though it's only 12.1.
How do I get version 12.2.1 onto the ubuntu server?
Purge the added PPAs:
sudo apt-get install ppa-purge
sudo ppa-purge ppa:<user/ppa_name>
And use the official packages.

how to get/download yum development tools for ubuntu?

I need to build yum package in ubuntu for Stress 1.0.2 application in ubuntu . I am i beginner and provide me Links to download and learn building an yum installer package.
Beware that RPM/yum packages rarely work properly on Ubuntu/Debian systems.
If you want to try it anyway, you can use the alien tool to convert the RPM into a DEB, then you can use dpkg or gdebi-gtk to install it. The homepage of alien is http://kitenet.net/~joey/code/alien/ and you can install it with apt-get install alien.
Edit: why do you want to use the RPM package given that you can install stress and stressapptest from the Ubuntu repositories?

Resources