Archive for Linux

phpize error - please use m4_pattern_allow

When running phpize to install ffmpeg-php, i get following error

# phpize
configure.in:9: warning: underquoted definition of PHP_WITH_PHP_CONFIG
run info ‘(automake)Extending aclocal’
or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
configure.in:32: warning: underquoted definition of PHP_EXT_BUILDDIR
configure.in:33: warning: underquoted definition of PHP_EXT_DIR
configure.in:34: warning: underquoted definition of PHP_EXT_SRCDIR
configure.in:35: warning: underquoted definition of PHP_ALWAYS_SHARED
acinclude.m4:19: warning: underquoted definition of PHP_PROG_RE2C
configure.in:65: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
#

The problem is cased by libtool not installed on the server, fixed by installing libtool

# yum list|grep -i libtool
libtool-libs.i386 1.5.6-4.EL4.1.c4.4 installed
libtool.i386 1.5.6-4.EL4.1.c4.4 base
#

yum install libtool

Comments off

Delete Large Number of files in a folder

On linux, i was asked to delete a folder with lot of files.

When i try to delete the file with rm if *, i got error, too big arguments.

The files are deleted with command

find /home/mwp2007/mail/new -type f | xargs rm -f

/home/mwp2007/mail/new is the folder which contain the files.

Comments off

Enable Date and Time in history

Linux “history” command shows previous commands used in your server. This is good as you can see what commands are run on your server.

By default history do not show date and time of command execution. You can enable this by editing the file /etc/profile and adding following line as the last line.

HISTTIMEFORMAT=”%h.%d %H:%M”

Comments off

Changing default language

Today i worked on a Fedora C4 server, the langiage is set to German. This is the second time i am working on german server, first one was suse linux. With the help of a german friend, i change the language to english using command “yast”

On Fedora, to change langiage, you need to edit the file /etc/sysconfig/i18n

The content was

LANG=”de_DE.UTF-8″
SYSFONT=”latarcyrheb-sun16″

I changed it to

LANG=”en_US.UTF-8″
SYSFONT=”latarcyrheb-sun16″
SUPPORTED=”en_US.UTF-8:en_US:en”

After rebooting the server, language is changed to english.

Here is df -h result

Before changing langiage

# df -h
Dateisystem GröÃe Benut Verf Ben% Eingehängt auf
/dev/md1 950M 191M 711M 22% /
/dev/md5 4,7G 1,3G 3,4G 28% /usr
/dev/md7 100G 89M 100G 1% /var
/dev/md6 4,7G 168K 4,7G 1% /home
none 990M 4,0K 990M 1% /tmp
#

After changing langiage

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 950M 191M 711M 22% /
/dev/md5 4.7G 1.3G 3.4G 28% /usr
/dev/md7 100G 87M 100G 1% /var
/dev/md6 4.7G 168K 4.7G 1% /home
none 990M 0 990M 0% /tmp
#

Comments off

« Previous entries