fix: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

When you install a 32bit application on 64bit OS, you will get this kind of problem:

/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

solution is install 32bit library will solve that and you able to run 32bit apps on 64bit os
like charm.

Quick Fix:

On Centos, Fedora:

yum install glibc.i686

On Ubuntu, Debian:

apt-get install ia32-libs

Hope that help.

~Cheers~

November 30, 2011Permalink Leave a comment

faad2: config.status: error: cannot find input file: plugins/xmms/Makefile.in

You might facing this problem:

config.status: error: cannot find input file: plugins/xmms/Makefile.in

during compiling faad, well here is the solution to fix it:
use your favourite editor tool to edit: configure.in i use nano because its easy to use.
nano configure.in
look for dnl AC_PROG_CXX
erase the dnl so that it become:
AC_PROG_CXX
then save it and run:

autoreconf -vif
./configure
make && make install

that will fix the problem. Hope that help, and dont forget to say thanks below.

November 29, 2011Permalink Leave a comment

How to : Install Subversion

linux How to : Install Subversion
Here is 2 way to install subversion on your server.

1st method:

yum install subversion

or

apt-get install subversion

2nd method: compiling from source

wget http://subversion.tigris.org/downloads/subversion-1.6.12.tar.gz
tar zxvf subversion-1.6.12.tar.gz
cd  subversion-1.6.12
./configure --prefix=/usr/local/subversion/ --with-apxs=/usr/local/subversion/bin/apxs --with-ssl
make && make install
svn --help

3rd method: Using RPM for rhel server

wget http://pkgs.repoforge.org/subversion/subversion-1.6.6-1.el5.rfx.x86_64.rpm
rpm -ivh subversion-1.6.6-1.el5.rfx.x86_64.rpm

You are done. Hope that help, normally installing from yum or apt-get should do the job. If you get following error:

error: Failed dependencies:
        perl(URI) >= 1.17 is needed by subversion-1.6.6-1.el5.rfx.x86_64

Please read this article for solution

November 28, 2011Permalink Leave a comment

neroAacEnc: error while loading shared libraries: libstdc++.so.6

You might face this problem after installed neroAacEnc:

neroAacEnc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

here is the fix for centos or fedora user.

yum whatprovides libstdc++.so.6

then it will show the result of:

[root@web]# yum whatprovides libstdc++.so.6
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: mirror.ash.fastserv.com
 * extras: mirror.batblue.com
 * rpmforge: ftp-stud.fht-esslingen.de
 * updates: mirror.metrocast.net
libstdc++-4.4.4-13.el6.i686 : GNU Standard C++ Library
Repo        : base
Matched from:
Other       : libstdc++.so.6

just install it with :

yum install libstdc++-4.4.4-13.el6.i686

Note: This only work on centos, or fedora or any other mechine that has yum. For debian or ubuntu, you might need to find alternative solution. Or suggest at comment below if you know any solution.

Hope that help, and dont forget to say thanks on comment below, its free and motivate me to post more useful fix/solution for you.

Cheers
Boon

November 26, 2011Permalink Leave a comment

How do you extract MP3 from a video files using ffmpeg

There is alot of youtube to mp3 site out of internet to convert youtube video to MP3 files. You must be wonder how they do it, in this article i will show you how to get a video files converted using ffmpeg to mp3 format.

ffmpeg -i youtubevideo.flv -f mp3 audiofile.mp3

-i (input video)
-f (output format)
if you like to adjust the sound quality:

ffmpeg -i youtubevideo.flv -ab 192k -ar 44100 -f mp3 audiofile.mp3

-ab (audio bitrate)
-ar (audio rate)

simple and easy, Hope that help.

November 23, 2011Permalink Leave a comment

(98)Address already in use: make_sock: could not bind to address

linux (98)Address already in use: make sock: could not bind to address

(98)Address already in use: make_sock: could not bind to address

You might facing this problem and could not start apache after stopped it. The reason causing this problem is cause by apache are still running.  Kill the process should solve the problem.

here is the solution:

type in SSH

for i in $(fuser 80/tcp);do kill -n 9 $i;done

hope that help

November 22, 2011Permalink Leave a comment

/etc/skel directory

linux /etc/skel directory
/etc/skel directory

The system will copy the contents of the /etc/skel directory to the user’s HOME directory.

The useradd command allows an administrator to create a default HOME directory configuration, then uses that as a template to create the new user’s HOME directory. This allows you to place default files for the system in every new user’s HOME directory automatically. On my Linux system, the /etc/skel directory has the following files.

root@mycoolserver:/etc/skel# ls -ld *
drwxr-xr-x 2 buddy buddy 4096 Oct 11  2008 Desktop
drwxr-xr-x 2 buddy buddy 4096 Mar  4  2009 Documents
drwxr-xr-x 2 buddy buddy 4096 Mar  4  2009 Download
drwxr-xr-x 2 buddy buddy 4096 Mar  4  2009 Music
drwxr-xr-x 2 buddy buddy 4096 Mar  4  2009 Pictures
drwxr-xr-x 2 buddy buddy 4096 Mar  4  2009 Public
drwxr-xr-x 2 buddy buddy 4096 Mar  4  2009 Templates
drwxr-xr-x 2 buddy buddy 4096 Mar  4  2009 Videos
November 21, 2011Permalink Leave a comment

Umask command

linux Umask command

The umask value is just that, a mask. It masks out the permissions you don’t want to give.The umask value is subtracted from the full permission set for an object. The full permission for a file is mode 666 (read/write permission for all), but for a directory it’s 777 (read/write/execute permission for all).

umask command shows and sets the default permissions:

root@mypowerserver:~# umask 0022

Thus, in the example, the file starts out with permissions 666, and the umask of 022 is applied, leaving a file permission of 644. The umask value is normally set in the /etc/profile startup file.

November 21, 2011Permalink Leave a comment

IonCube PHP Loader Error, IonCube not installed.

Often when surfing website, you found:

Site error: the file /home/USER/public_html/index.php requires the ionCube PHP Loader ioncube_loader_lin_X.X.so to be installed.

here is the way to resolve it:

Create a ‘php.ini’ and add following:

zend_extension = /home/USER/public_html/ioncube/ioncube_loader_lin_4.X.so

Download ioncube_loader_lin_4.X.so from : http://www.ioncube.com/loaders.php
and upload ioncube_loader_lin_4.X.so to /home/USER/public_html/ioncube/
Replace USER with the username of the cpanel account you are uploading the php.ini file to.

Replace “X” with the appropriate version of the ioncube loader

Upload the php.ini to your public_html directory.

If you are running your script from a directory other than public_html – for example /home/USER/public_html/blog/index.php you will need to upload the php.ini file to that directory.

Hope that help.

November 19, 2011Permalink Leave a comment

Upgrade PHP 5.1 to PHP 5.2 on CentOS ( Jason Source )

linux Upgrade PHP 5.1 to PHP 5.2 on CentOS ( Jason Source )

Using yum upgrades to update your PHP 5.1.6 to PHP 5.2.11

add the following source to your repo

nano -w /etc/yum.repos.d/utterramblings.repo
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

then

yum update php -y

Hope that help

November 18, 2011Permalink Leave a comment
SEO Powered By SEOPressor