Upgrade existing Perl 5.12 to Perl 5.18 on FreeBSD 9

Recently I’ve been trying to update the perl package on my FreeBSD box to the latest version 5.18 without any success. Here’s a snippet of the error message: Creating various symlinks in /usr/bin... Symlinking /usr/local/bin/perl5.18.1 to /usr/bin/perl Symlinking /usr/local/bin/perl5.18.1 to /usr/bin/perl5 Done. Installing perl5.18-5.18.1_2...pkg-static: perl5.18-5.18.1_2 conflicts with perl-5.12.5 (installs files into the same place). Problematic file: /usr/local/bin/a2p *** [fake-pkg] Error code 70 Stop in /usr/ports/lang/perl5.18. *** [install] Error code 1 Stop in /usr/ports/lang/perl5.18. ===>>> Installation of perl5.18-5.18.1_2 (lang/perl5.18) failed ===>>> Aborting update ===>>> Killing background jobs Terminated ===>>> You can restart from the point of failure with this command line: portmaster lang/perl5.18 ===>>> Exiting So I turned to Google to see if other people experienced the same thing as me. According to an answer to a similar question about upgrading perl on serverfault.com, one should read ...

October 30, 2013 · 2 min · 362 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

Portsnap snapshot corrupt

ថ្ងៃ​នេះខ្ញុំ​​មាន​បញ្ហា​ជាមួយ​ portsnap លើ​ FreeBSD ស៊ើវើ។ ពេល​ខ្ញុំ​រត់​ខំម៉ាន​ portsnap fetch upate មាន​ពត៌មាន​ដូច​នេះ /usr/ports/files/.gz not found — snapshot corrupt. តាម​ប្លក់នេះ របៀប​ជួសជុល​វា មិន​ពិបាកទេ។ rm -rf /var/db/portsnap/* portsnap fetch portsnap extract Source: http://neonpulse.net/2008/11/20/portsnap-corrupt-snapshot/

October 7, 2013 · 1 min · 28 words · kenno

E: Internal Error, No file name for libapt-pkg4.12

When I tried to update an Ubuntu (12.04) machine with the usual apt-get command, this error message came up: Do you want to continue [Y/n]? Y E: Internal Error, No file name for libapt-pkg4.12 Reading this post (http://ubuntuforums.org/showthread.php?t=2045321), one way to fix it is to download liapt-pkg4.12 and re-install it: # apt-get download libapt-pkg4.12/precise-security # dpkg -i libapt-pkg4.12_0.8.16~exp12ubuntu10.10_amd64.deb This seems did the trick.

October 3, 2013 · 1 min · 63 words · kenno

បញ្ចូល​ Upstream Version នៃ Node.js ក្នុង Ubuntu 12.04

$ sudo apt-get install python-software-properties $ sudo apt-add-repository ppa:chris-lea/node.js $ sudo apt-get update $ sudo apt-get install nodejs ឆែក​មើល: $ node -v v0.10.20

October 1, 2013 · 1 min · 23 words · kenno