How to display JSON string in a human readable format on Linux

Question: I have JSON-formatted string. Is there a quick and easy way to display JSON string in a human readable format, preferably from the command line on Linux? When you are developing a web application, you may often deal with JSON-formatted input/output. When you are inspecting such JSON-formatted data, you may want to see it […]
Continue reading…

 

How to upgrade gcc on CentOS

Question: The default gcc version on CentOS is too old to build a particular application. How can I upgrade the version of gcc installed on CentOS? As of CentOS 6.5, the default version of gcc installed is 4.4.7. If you want to upgrade gcc on CentOS, you can install devtools, which is a CentOS version […]
Continue reading…

 

How to install Qt5 on Linux

Question: I need to install Qt5 to build a Qt application. How can I install and set up Qt5 development environment on [insert your Linux distro]? Qt is a cross-platform application and UI development framework. Using Qt, you can easily port a GUI application to multiple platforms without rewriting application code from scratch. The easiest […]
Continue reading…

 

How to fix ‘Make’ error – glib.h no such file or directory

Question: When I try to build an application on Ubuntu, I’m getting the following error: ‘Make’ error – glib.h no such file or directory. How can I fix this error? glib.h is part of “libglib2.0-dev” package. So make sure to install this package. $ sudo apt-get install libglib2.0-dev If that does not solve the problem, […]
Continue reading…