How To Install ceres-solver on CentOS 7

In this tutorial we learn how to install ceres-solver on CentOS 7. ceres-solver is A non-linear least squares minimizer

Introduction

In this tutorial we learn how to install ceres-solver on CentOS 7.

What is ceres-solver

Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Notable use of Ceres Solver is for the image alignment in Google Maps and for vehicle pose in Google Street View. Ceres Solver can solve two kinds of problems. 1. Non-linear Least Squares problems with bounds constraints. 2. General unconstrained optimization problems. Features include - A friendly API time - Automatic and numeric differentiation - Robust loss functions - Local parameterizations - Threaded Jacobian evaluators and linear solvers - Trust region solvers with non-monotonic steps (Levenberg-Marquardt and Dogleg (Powell & Subspace)) - Line search solvers (L-BFGS and Nonlinear CG) - Dense QR and Cholesky factorization (using Eigen) for small problems - Sparse Cholesky factorization (using SuiteSparse) for large sparse problems - Specialized solvers for bundle adjustment problems in computer vision - Iterative linear solvers for general sparse and bundle adjustment problems - Runs on Linux, Windows, Mac OS X, Android, and iOS

We can use yum or dnf to install ceres-solver on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install ceres-solver.

Install ceres-solver on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install ceres-solver using yum by running the following command:

sudo yum -y install ceres-solver

Install ceres-solver on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install ceres-solver using dnf by running the following command:

sudo dnf -y install ceres-solver

How To Uninstall ceres-solver on CentOS 7

To uninstall only the ceres-solver package we can use the following command:

sudo dnf remove ceres-solver

References

Summary

In this tutorial we learn how to install ceres-solver on CentOS 7 using yum and dnf.