Wednesday, February 23, 2011

error while loading shared libraries: cannot open shared object file

Today I was working on installing some package. After Installing the package successfully, I have just start that by typing the command whatever for that. Then I got the following error.

** : error while loading shared libraries: cannot open shared object file: No such file or directory **

So I have worked on this and found the following solution.
This error is because mysql library path is not in system library locations.

To fix the error edit /etc/
#vi /etc/
Add following line to end of the file

Now run ldconfig

!! Enjoy Linux

Saturday, February 19, 2011

Search Files with Grep Command

Some times we want to search for text in a number of files.
Manually It'll take a lots of time. So Here is a command 
"grep": Global regular expression.
For this just make the use of following command. 
#ls -1rt | xargs grep -i  |more
Here -1 option will display the out output in listing,
then xargs will treat the output as files and grep 
command will search  in all specified directories.
At last this output will goes to more command 
i.e. displays output page wise.
!!Enjoy Linux 

Wednesday, February 2, 2011

Temperary Way to Resolve error regarding GPG Key during Yum Install

While you are installing aur updating something using yum and getting errors related to GPG Keys like

********warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6********

then use yum with --nogpgcheck  for temperary not for long uses.
But you  must import the exact key.

!!Enjoy Linux