Can't find the 'libpq-fe.h header

I need to install pg 0.17.1 gem on a server running CentOS. This is the error message I saw: # gem install pg -v '0.17.1' Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. ... First thing came to my mind was I must have forgotten to install the -dev package. ...

February 3, 2014 · 1 min · 192 words · kenno

ZFS on CentOS

First we need to add the ZFS on Linux repository to our system by installing a zfs-release package as shown below: $ sudo yum localinstall --nogpgcheck http://archive.zfsonlinux.org/epel/zfs-release-1-3.el6.noarch.rpm $ sudo yum install zfs Once, zfs has been installed, we can create a storage pool. There’re many RAID configuration to choose from, and I’m not going to get into it. However, if you want to learn more, you can read this ZFS Administration article which explains in great detail about ZFS RAID(Z). ...

October 8, 2013 · 1 min · 144 words · kenno

Install crontab on CentOS 6

When you install CentOS 6 using minimal CD, a lot of packages aren’t installed by default; cron included. To install it, # yum install cronie After the installation, you can verify that crond is running: # chkconfig --list crond crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off

May 27, 2013 · 1 min · 47 words · kenno

CentOS: lsb_release: command not found

First let me declare that I’m new to CentOS. The folowing is a note to self which demonstrates how we search for a package that provides some commands and intall it using yum on CentOS. When I ran ‘lsb_release -a’, the following message is returned: -bash: lbs_release: command not found To fix it, we need to install the package which provides lsb_release command. # yum provides */lsb_release ... redhat-lsb-4.0-3.el6.centos.i686 : LSB base libraries support for CentOS Repo : base Matched from: Filename : /usr/bin/lsb_release redhat-lsb-4.0-3.el6.centos.x86_64 : LSB base libraries support for CentOS Repo : base Matched from: Filename : /usr/bin/lsb_release dkms-2.2.0.3-2.el6.noarch : Dynamic Kernel Module Support Framework Repo : epel Matched from: Filename : /usr/lib/dkms/lsb_release So, let’s install redhat-lsb package: ...

October 21, 2012 · 1 min · 164 words · kenno