grep: error while loading shared libraries: libpcre.so.0

I have a server running CentOS 6 successfully upgraded to CentOS 7. The only problem I encountered so far is that ‘grep’ doesn’t work. [root@zilla ~]# grep grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory [root@zilla ~]# ldd /usr/bin/grep linux-vdso.so.1 => (0x00007ffc0b639000) libpcre.so.0 => not found libc.so.6 => /lib64/libc.so.6 (0x00007f6be1c6c000) /lib64/ld-linux-x86-64.so.2 (0x00007f6be2038000) First thing I tried was to reinstall pcre package which provides libpcre.so*. It still didn’t work. Fortunately, someone has posted a solution as the following: ...

July 1, 2016 · 1 min · 156 words · kenno

Create bootable USB Fedora 24

Every time there is a new release of Linux distro, I need to create a bootable USB. And, I forgot how I did it last time. So, I tried by using the “Startup Disk Creator” program installed on my Ubuntu workstation, only to find out that it didn’t even work. After a while I remember, it was just a matter of using dd command to copy the ISO image to the USB. ...

June 27, 2016 · 1 min · 181 words · kenno

How to remove a newline at end of file

Those who know me know that I don’t like Perl. Sometimes in life the thing you don’t like could be best tool/friend. I need to remove a newline character from a text file: layouts/partials/pagination.html. $ git diff layouts/partials/pagination.html diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index 00c1124..d8dd981 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -15,4 +15,4 @@ </span> {{ end }} {{ end }} -</nav> \ No newline at end of file +</nav> The easiest way to do this is to run the following command: ...

June 9, 2016 · 1 min · 96 words · kenno

Fedora 23/24 gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1

While updating Ansible pip package on Fedora 24 today, I got the following error message gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory I believe I came across this problem before when I installed a ruby gem on Centos 6 a short while back. Unfortunately, I already forgot how I’d solved it. So here’s a note to remind myself or anyone who’s having the same issue. We need to install a package called: redhat-rpm-config. ...

May 15, 2016 · 1 min · 83 words · kenno

Installing Pip with Python 3.5 on FreeBSD

Here is a quick note serves as a self-reminder on how to get pip working or installed on FreeBSD 10.3. First, ensure that Python 3 package is installed. Python 3 is provided by python35 package. # pkg install python35 However, there is no package for pip, at least at the time of this writing, on FreeBSD. To have it installed, run the following command: # python3.5 -m ensurepip We should as well update pip to new version: ...

May 6, 2016 · 1 min · 84 words · kenno