≡ Menu


Freebsd makeinfo: not found Error and Solution

Q. I'm trying to build PHP5 under FreeBSD jail and I'm getting an error that read as follows:

m4.info-[0-9][0-9] ./m4.i[0-9] ./m4.i[0-9][0-9]; do if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; done; else :; fi && cd "$am__cwd"; if makeinfo --no-split -I . -o ./m4.info ./m4.texinfo; then rc=0; cd .; else rc=$?; cd . && $restore $backupdir/* `echo "././m4.info" | sed 's|[^/]*$||'`; fi; rm -rf $backupdir; exit $rc
makeinfo: not found
*** Error code 127

Stop in /usr/ports/devel/m4.
*** Error code 1

Stop in /usr/ports/devel/autoconf262.
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

How do I get rid of this problem and compile applications?
[click to continue…]

Q. When I run make install clean for php5-extensions port, I'm dumped with the following error:

===> php5-posix-5.2.6 has known vulnerabilities:
=> php -- input validation error in posix_access function.
Reference: < http://www.FreeBSD.org/ports/portaudit/ee6fa2bd-406a-11dd-936a-0015af872849.html >
=> Please update your ports tree and try again.
*** Error code 1

Stop in /usr/ports/sysutils/php5-posix.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.
*** Error code 1

Stop in /usr/ports/lang/php5-extensions.

How do I fix this error?
[click to continue…]

Find Out If My DNS Server Free From DNS Cache Poisoning Bug Or Not

Q. How do I verify that my ISP or my own recursive resolvers are free from DNS cache poisoning bug that is promised full disclosure of the flaw by Dan on August 7 at the Black Hat conference? How do I test my dns server for DNS cache pollution or DNS Cache Poisoning bug?
[click to continue…]

FreeBSD Accounting: Install and Configure System Activity Reporter (SAR)

Q. How do I install sar command under FreeBSD to collect, report, or save system activity information? How can I setup freebsd accounting?
[click to continue…]

OpenBSD Install Ports Tree Collection

I have installed OpenBSD operating system but ports collection is missing at /usr/ports directory. How do I install ports from ftp / http site under OpenBSD?
[click to continue…]

FreeBSD Configure Apache 2.2 PHP with FastCGI mod_fcgi Module

I'd like to switch from mod_php5 to mod_fastcgi. I'm using FreeBSD 7 release along with following software:

+ Apache 2.2
+ PHP as mod_php5
+ MySQL DB 5.1.23 server
How do I configure php as FastCGI server?
[click to continue…]

FreeBSD Install Strace – A Process Tracer And Debugging Tool

Q. How do I install Strace utility under FreeBSD operating system so that I can trace and debug my applications and report 3rd party software bugs?

A. Strace is a process tracer, i.e. a debugging tool that prints out a trace of all the system calls made and signals received by a process itself or a process and its descendants.

Strace is similar to the native BSD truss utility, but it's output style is more convenient in most cases.

For strace to work, procfs has to be mounted. FreeBSD does not mount it by default.

WARNING! These examples only work for i386 32 bit FreeBSD computer (strace is not ported to amd64 arch [64 bit]).

Install strace

First update FreeBSD ports collection and install strace from /usr/ports/devel/strace:
# portsnap fetch update
# cd /usr/ports/devel/strace
# make install clean

Mount /proc file system

You need to mount /proc filesystem to use trace command under FreeBSD, enter:
# mount -t procfs proc /proc

How do I use Strace tool?

Please see our previous FAQ / tutorials about strace command:

  1. Debugging Tip: Trace the Process and See What It is Doing with strace
  2. Truss like command under Linux to monitor and diagnostic the system calls

FreeBSD WARNING: Vulnerability Database Out of Date, Checking Anyway Error and Solution

Q. While installing any FreeBSD port I'm getting following error message:
===> FreeBSD WARNING: Vulnerability Database Out of Date, Checking Anyway

How do I fix this warning message?
[click to continue…]

Reconfiguring FreeBSD Ports – Remove OPTIONS config For Any Port

While building Apache port I was presented with a menu from which I selected certain build options. However, certain option giving out error as follows:
===> apache-2.2.8 mod_mem_cache requires WITH_THREADS.
*** Error code 1

All I wanted to do is disable mod_mem_cache and build Apache again. Unfortunately, it is not allowing me to clear out configuration option. How do I remove all selected options and allow me to start over again?
[click to continue…]

Configure HTTPD To Listen on Multiple Ports

How do I configure Apache HTTPD to listen on multiple ports under RHEL / Fedora / CentOS Linux Server?
[click to continue…]