-
Install arping on OPNsense
For reasons unknown one of my favourite and most essential tools arping is not available in OPNsense's package repository. On OPNsense, the preferred method of incorporating mainline FreeBSD packages (according to the official documentation) is to use opnsense-code to install the ports system which,…
-
Portage Errors: media-libs/mesa-10.0.4 failed
Mesa 10.0.4 requires LLVM < 3.x to compile correctly or it will complain about missing header files. Add LLVM to package.mask: # echo ">sys-devel/llvm-2.9-r2" >> /etc/portage/package.mask
-
Gentoo Prefix Errors: Aborting due to QA concerns: there are files installed outside the prefix
Just like it sounds, the package you are trying to emerge is attempting to write files outside of your prefix. Depending on the situation it may be that there is no fix, but it is possible that upgrading eselect or portage and re-syncing the portage…
-
Installing Cordova (formerly PhoneGap) with Android SDK on Gentoo
Apache Cordova is an open source framework for rapidly generating mobile apps from HTML5, CSS and JavaScript. At present, Cordova supports 7 mobile platforms with plans to expand. Since it uses core web design languages Cordova allows web developers to become mobile phone app developers without having…
-
Installing NRPE for Nagios/Icinga on Gentoo
You have two options for monitoring things like load average and logged in users on a remote host with Nagios or Icinga: SNMP (which you are probably already using for Cacti or a similar graphing/monitoring solution) or the Nagios Remote Plugin Executor (NRPE). NRPE gives one greater flexibility in the…
-
Portage Errors: fatal error: gcrypt.h: No such file or directory
When installing a number of packages - such as wireshark - that require but do not include libgcrypt as a dependency: packet-ssl-utils.h:37:20: fatal error: gcrypt.h: No such file or directory
compilation terminated.
make[5]: *** [libdissectors_la-packet-dtls.lo] Error 1
make[5]: Leaving directory…
-
Portage Errors: sys-apps/sysvinit is blocking sys-apps/util-linux
If you encounter a block error for util-linux from sysvinit: [blocks B ] <sys-apps/sysvinit-2.88-r3 ("<sys-apps/sysvinit-2.88-r3" is blocking sys-apps/util-linux-2.20.1-r1) Update both independently rather than as dependencies: # emerge --update sysvinit util-linux If you then encounter a…
-
Portage Errors: sys-devel/patch is blocking sys-libs/glibc
If you run into this error while updating glibc:
# emerge --update gcc glibc
* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies -[root@hd-t3672cl ~]# xm console dns2
... done!
[ebuild U ] dev-libs/mpfr-3.0.1_p4…
-
kde-base/kopete-4.7.4 Fails Build on kopete_wp.so
If you encounter this error while installing the latest version of kopete:
Linking CXX shared module ../../../lib/kopete_wp.so
[ 51%] Built target kopete_wp …
-
A Note on HTTP Authentication in the Era of APACHE2_MODULES
Gentoo started using the APACHE2_MODULES USE-flag-extending variable to manage Apache's modules in portage some time ago. The list of modules I migrated with (likely provided by the Gentoo documentation as a recommendation) seems to be missing those responsible for http…
-
Portage Errors: app-admin/php-toolkit is blocking app-admin/eselect-php
Gentoo has started using a meta-package to manage PHP. If you are upgrading an old system you may encounter this error:
[blocks B ] app-admin/php-toolkit ("app-admin/php-toolkit" is blocking app-admin/eselect-php-0.6.2)
* Error: The above package list contains packages which cannot be
*…
-
Portage Errors: cp: preserving times Bad file descriptor
If you use an old kernel and recently updated your glibc you may encounter:
Writing /var/tmp/portage/net-analyzer/rrdtool-1.4.5-r1/temp/images/2.6/usr/lib/python2.6/site-packages/py_rrdtool-0.2.1-py2.6.egg-info
cp: preserving times for `/var/tmp/portage/net-analyzer/rrdtool-1.4.5-r1/image/usr/lib/python2.6/site-packages':…
-
Portage Errors: ld: cannot find -lpng12
After upgrading libpng you may encounter this error when compiling packages that depend on it or related libraries:
/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpng12
collect2: ld returned 1 exit status
make[2]: *** [librsvg-2.la] Error 1
make[2]: Leaving…
-
Portage Errors: libcairo.la: No such file or directory
To resolve: /bin/grep: /usr/lib/libcairo.la: No such file or directory
/usr/bin/sed: can't read /usr/lib/libcairo.la: No such file or directory
libtool: link: `/usr/lib/libcairo.la' is not a valid libtool archive
make[2]: *** [librsvg-2.la] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-base/librsvg-2.34.1-r1/work/librsvg-2.34.1'
…
-
Portage Errors: gcc must provide the cpuid.h header
When compiling glibc or gcc you may encounter:
configure: error: gcc must provide the header
* ERROR: sys-libs/glibc-2.12.2 failed (compile phase):
* failed to configure glibc
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 3723: Called…
-
Portage Errors: Cairo Fails to Compile on libiberty.h
You may encounter the following error while compiling Cairo: /usr/include/libiberty.h:589: error: expected declaration specifiers or '...' before numeric constant
/usr/include/libiberty.h:589: error: conflicting types for '__asprintf_chk'
/usr/include/bits/stdio2.h:135: error: previous declaration…
-
Portage Errors: Package 'libpng12', required by 'cairo', not found
If you recently updated libpng you may encounter the following error when compiling packages depending on cairo, such as librsvg: Package 'libpng12', required by 'cairo', not found Update cairo before proceeding: # emerge --update --deep cairo
-
Portage Errors: xz: command not found
If your system is far out of date you may encounter this error:
/usr/lib/portage/bin/ebuild.sh: line 370: xz: command not found
tar: This does not look like a tar archive
tar: Error exit delayed from previous errors
This is due to the switch from lzma-utils to xz-utils…
-
Portage Errors: cannot find the library /usr/lib/libapr-1.la
If whilst compiling apache-tools one encounters:
libtool: link: cannot find the library `/usr/lib/libapr-1.la' or unhandled argument `/usr/lib/libapr-1.la'
make[1]: *** [htpasswd] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-admin/apache-tools-2.2.21/work/httpd-2.2.21/support'
…
-
Portage Errors: app-admin/logrotate is blocking sys-apps/portage
If you haven't kept your system up to date you may run into the following when attempting to update portage: [ebuild U ] sys-libs/libsepol-2.1.0 [2.0.32]
[ebuild U ] sys-libs/libselinux-2.1.0 [2.0.71] USE="(python%*)"
[ebuild U ] sys-apps/portage-2.1.10.11…
-
Fix Kopete, other libmsn MSN/WLM Clients Broken/Won't Connect
Microsoft made changes to their Windows Live Messenger servers on November 8 2011 which negatively impacts the ability of instant messenger clients (Kopete, emesene to name a couple) using libmsn 4.1 and earlier to connect. At the time of writing version 4.2 addresses the issue but is not included in…
-
Installing Webcam Studio for GNU/Linux From Source on Gentoo
WebcamStudio For GNU/Linux creates a virtual webcam that can mix several video sources together and can be used for live broadcasting over Bambuser, UStream or Stickam. Ensure you have netbeans 6.x installed: # emerge netbeans Create and change to the directory /usr/src/wcs:
$ mkdir /usr/src/wcs
$…
-
Portage Errors: dev-libs/libaio final link failed: Nonrepresentable section on output
You may encounter output similar to this when compiling libaio (a dependency of multipath-tools) if you have enabled Stack Smashing Protection in your CFLAGS:
io_getevents.os:io_getevents.c:(.text+0xe1): more undefined references to `__stack_chk_fail_local' follow
/usr/lib/gcc/i686-pc-linux-gnu/4.4.3/../../../../i686-pc-linux-gnu/bin/ld:…
-
Portage Errors: cc1: out of memory
This condition occurs when the compiler requires more memory than is currently available. It is not unusual for SSH sessions to drop when an out of memory error occurs, as you can tell from the output in this VM's dmesg: Out of Memory: Kill process 3268 (sshd) score 2295 and children.
Out of memory:…
-
Portage Errors: libselinux and libsemanage won't emerge with Python 3.x
You may encounter this problem with libselinux and libsemanage when attempting to compile them while Python 3x is set as the default interpreter.
make PYLIBVER=python3.1 pywrap
make -C src pywrap
make[1]: Entering directory `/var/tmp/portage/sys-libs/libsemanage-2.0.27/work/libsemanage-2.0.27/src'
…
-
Portage Errors: gcc-config: error: could not run/locate 'gcc'
This problem crops up when the active version of gcc has been removed (i.e. through emerge --depclean) before a different one has been selected.
>>> Emerging (1 of 2) sys-libs/libselinux-2.0.71
* libselinux-2.0.71.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
*…
-
Portage Errors: touch: No such file or directory
After updating coreutils you may encounter a problem using touch. This problem often manifests itself as a loop while trying to update other packages:
* Touching gcc/cstamp-h.in
* touch: setting times of `gcc/cstamp-h.in': No such file or directory
* make: *** [gcc/cstamp-h.in] Error 1
…
-
Portage Errors: app-emulation/xen-tools NOT merged due to file collisions
If you are updating your Xen installation from 3.x to 4.x you may encounter something like this:
>>> Installing (1 of 3) app-emulation/xen-tools-4.1.0-r1
* This package will overwrite one or more files that may belong to other
* packages (see list below). You can use a command such as…
-
Portage Errors: app-emulation/xen-tools check_python FAILED
You may run into something like this while updating or installing your Xen platform:
>>> Emerging (1 of 3) app-emulation/xen-tools-4.1.0-r1
* xen-4.1.0.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* Package: app-emulation/xen-tools-4.1.0-r1
* Repository:…
-
Portage Errors: groupadd: invalid option -- 'r'
You may encounter this error when installing packages that manage system groups if your installed version of shadow is older than version 4.1.4.2-r4: >>> Installing (1 of 27) net-misc/dhcp-3.1.2_p1
* Adding group 'dhcp' to your system ...
* - Groupid: next available
groupadd: invalid option --…
-
Portage Errors: Portage is Blocking Python
I started updating a pair of neglected Xen servers a few days ago and I ran into this problem: xen2 ~ # emerge portage
* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
[ebuild…
-
Portage Errors: dev-perl/DBD-mysql vs dev-perl/DBI
This is a very old bug but I'm covering it here anyway because it keeps popping up on dusty servers and I forget how to solve it. If you do a world update on a box that hasn't had one in about a year you might notice that dev-perl/DBD-mysql (in the case in front of me, 4.01.3) fails to compile and nothing…
-
Solved: Garbage getFrame Images with ffmpeg-php 0.6.0 and ffmpeg 0.5
After updating my installation of ffmpeg and ffmpeg-php on one of my web servers I noticed that images grabbed using ffmpeg-php's getFrame function spat out weird garbage, usually three corrupt looking frames across the top and static in the bottom two thirds. I tried tinkering with it for a very long…
-
Portage Errors: app-arch/lzma-utils is blocking app-arch/xz-utils
Gentoo recently made the switch from lzma-utils to xz-utils, to quote the project page at http://tukaani.org/lzma/: LZMA Utils are legacy data compression software with high compression ratio. LZMA Utils are no longer developed, although critical bugs may be fixed as long as fixing them doesn't require…
-
Mass Virtual Hosting Part Seven: Securing PHP with Suhosin
Suhosin is a Korean word which, roughly translated, means guardian angel. It is also the name of a clever PHP extension brought to us by the Hardened-PHP Project. When I found out it could provide transparent on-the-fly session and cookie encryption I thought sexual thoughts and sped off to install it.…
-
Mass Virtual Hosting Part Six: (Remote) Apache Vhost Configuration and Privileged Command Execution with Database-Backed Upkeep System
What a mouthful. The more I worked with mod_vdbh the more I realized it's not for me. Neither is its more advanced fork, mod_vhs which adds some useful extensions. While database-backed configuration is an elegant solution to mass virtual hosting it falls short in that it lacks these key (for my purposes)…
-
Series
Some articles cover different aspects of a unified goal. This page can help you quickly locate articles in a series. Favourites Favourite Windows Software Favourite Redhat (RHEL/CentOS/Fedora/Oracle Linux) Software Favourite Android Software Favourite Browser Extensions Mass Virtual Hosting Part…
-
Mass Virtual Hosting Part One: Database-Backed User Accounts and Authentication
In situations where the creation of UNIX system accounts (for file system permissions and s/ftp authentication, etc.) should be automated or managed remotely it is possible to use MySQL to store user and group information, thanks to libnss-mysql. There is another project named NSS MySQL which provides…
-
Gentoo Xen 4 Migration
I was stoked to find out Xen 4 had finally made it into portage a couple weeks ago, The improvements are so sweet I had been checking gentoo-portage.com every few days or so. Let's take a look at a few of the advances Xen has made since…
-
Gentoo TFTPd
TFTP is most commonly used these days to remote boot small images, move firmware and configuration details. Despite its name it shares little in common with FTP other than it's primary purpose: moving files. This post will leave you with a configured and running TFTP daemon on Gentoo. There are a number…