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

Permanently Disable Search Indexing In Windows 8

This post is mainly to remind me how to disable the search indexing. On the start screen type: services.msc. Once the service dialog windows opened, look for “Windows Search”. Right click on it, and select Properties. In the Startup type drop-down list, select Disabled. Full credit goes to this link: http://www.addictivetips.com/windows-tips/how-to-permanently-disable-search-indexing-in-windows-8/.

November 4, 2013 · 1 min · 51 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

Turn color on for git status

The following command will update the Git’s global configuration to set the color.ui to true. $ git config --global color.ui true Ref: https://ask.fedoraproject.org/question/10434

September 26, 2013 · 1 min · 23 words · kenno

Changing ZFS pool to use disk ID instead of disk assignment

This what I have: # zpool status pool: tank state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM tank ONLINE 0 0 0 raidz1-0 ONLINE 0 0 0 sdb ONLINE 0 0 0 sdc ONLINE 0 0 0 sdd ONLINE 0 0 0 To convert the pool to use disk’s ID instead of device files such as /dev/sda, we need to export the storage pool. ...

September 20, 2013 · 1 min · 162 words · kenno