ERROR: phpize failed [solved]

How to install PHP development files

If you want to run phpize on your system, you need to install the development files of PHP first. Otherwise, you might get an error message like this:

sh: phpize: not found
ERROR: `phpize' failed

To install the PHP development files on Ubuntu/Debian, you can use the following command in the terminal:

apt-get install php5-dev

That should solve the problem. 🙂

How To Get The Current Epoch Time (Unix Timestamp)

  • Perl:
time
  • PHP:
time()
  • Ruby:
Time.now # (or Time.new). To display the epoch: Time.now.to_i
  • Python:
import time # first, then int(time.time())
  • Java:
long epoch = System.currentTimeMillis()/1000;
  • Microsoft .NET C#:
epoch = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
  • VBScript/ASP:
DateDiff("s", "01/01/1970 00:00:00", Now())
  • Erlang:
calendar:datetime_to_gregorian_seconds(calendar:now_to_universal_time( now()))-719528*24*3600. # OR element(1, now()) * 10000 + element(2, now()).
  • MySQL:
SELECT unix_timestamp(now())
  • PostgreSQL:
SELECT extract(epoch FROM now());
  • Oracle PL/SQL:
SELECT (SYSDATE - TO_DATE('01-01-1970 00:00:00', 'DD-MM-YYYY HH24:MI:SS')) * 24 * 60 * 60 FROM DUAL
  • SQL Server:
SELECT DATEDIFF(s, '1970-01-01 00:00:00', GETUTCDATE())
  • JavaScript:
Math.round(new Date().getTime()/1000.0) // getTime() returns time in milliseconds.
  • Unix/Linux Shell:
date +%s
  • PowerShell:
Get-Date -UFormat "%s" # Produces: 1279152364.63599
  • Actionscript:
(new Date()).time
  • Other OS’s Command line:
perl -e "print time" # (If Perl is installed on your system)
  • ColdFusion (CFML) MX 6.1+:
#int( getTickCount() / 1000 )#
  • Bash Command Line:
date +%s

Database Integration – some points to keep in mind

**Always Have a Single, Authoritative Source For Your Schema
** Everyone should know where the official schema resides, and have a frictionless experience in getting a fresh database setup. One should be able to walk up to a computer, get the latest from source control, build, and run a simple tool to setup the database (in many scenarios, the build process can even setup a database if none exists, so the process is one step shorter).

Perl – system load

To find the system load use the following perl snippet :

  1. System load of last one minute :
my $system_load = exec('<a class="zem_slink" title="Uptime" rel="wikipedia" href="http://en.wikipedia.org/wiki/Uptime">uptime</a> | awk -F "load average: " \'{ print $2 }\' | cut -d, -f1');
my $system_load = qx('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f1');
  1. System load of last 5 minutes :
my $system_load = exec('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f2');
my $system_load = qx('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f2');
  1. System load of last 15 minutes :
my $system_load = exec('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f3');
my $system_load = qx('uptime | awk -F "load average: " \'{ print $2 }\' | cut -d, -f3');

GNUSL3S LINUX OS

  • Description: GNUSL3S LINUX OS is a versatile and comprehensive distribution that comes with a rich selection of pre-installed software for various purposes. Whether you are a molecular biologist, an IT security professional, a system administrator, or a home server user, you will find the tools and applications you need in this distribution. You can boot from the DVD and enjoy a user-friendly graphical interface, useful recovery tools, and current libraries. You can also access bioinformatics applications like EMBOSS and Primer3, security tools for penetration testing and vulnerability analysis, and unofficial network drivers that support many wired and wireless cards. If you want to develop or compile your own software, you will also find a full range of development tools and editors. GNUSL3S LINUX OS is designed to meet your needs and preferences with ease and flexibility.