Wednesday, July 12, 2006

Error while loading shared libraries: libpq.so.4

Today i have compiled mnogosearch in server.

#./configure --with-mysql --with-pgsql

(For mysql and pgsql support)

#make

#make install


Then i have recompiled my php with the following option....

#./configure --with-mysql=/usr/local/mysql/ --with-pgsql=/usr/local/pgsql/ --with-apxs2=/usr/local/apache/bin/apxs --with-mnogosearch=/usr/local/mnogosearch/ --with-zlib --with-config-file-path=/usr/local/lib/

#make

#make install

Still no problem....... I hand over the indexing job to developer. But Within few seconds he screaming with the error, while running the command he got ,

#/usr/local/mnogosearch/sbin/indexer -h

./indexer : error while loading shared libraries: libpq.so.4: can not open shared object file

I have searched this error in www.google/linux , i got 7 results ( great ! is it? ). But 3 results contains the word "mail" in its URL (For security purpose, proxy admin prvent the "mail" word in the url for preventing the mail). (Double great ! )

Among others 3 doesnt open.. (Superb! )

Finally i got open only one ...Which is related to Windooows ..(Excellent !)

Finally Google/linux drops me....

But i dont lost faith with google.. This time i searched this same error in google.com ( not linux)

I opened few links.. Yaiiiiiiiii I GOT THE SOLUTION.

SOLUTION :

1 way )

include the library path in /etc/ld.so.conf

2 way)

create the link for libpq.so.4 in /lib


if u type

#ldd /usr/local/mnogosearch/sbin/indexer

u will get lot of libraries with the path, u must have libpq.so.4 with proper path.

Atlast i solved the problem and hand over the job.

Now i am waiting for other Errorrrrrrrrrrrrs..............


technorati tags:, , ,

Tuesday, July 04, 2006

SuSe YAST Package management

I have suse 10.1 . i have installed limited pacakages from dvd.

The Big head ache is whenever i want to install more pacakages i have to insert my dvd. Now i got tiger balm for my head ache ;-)...

Save Locally....

I have copied suse iso in to my hard disk.

dd if=/dev/cdrom of=/backup/suse10.1.iso

(Even u can directly copy the cds or dvd files in to one directory, but we can use iso as

backup)

Then , i have mounted that into other directory,

mount -o loop -t iso9660 /backup/suse10.1.iso /backup/foo

For pacakages updation..

YAST-SoftwareManagement-Search and Select the pacakages...- Accept

Then it shows the box

" Insert Suse linux 10.1 DVD 1"

Check the show details option. it shows for dvd as

dvd:///?devices=/dev/hdc

for hard disk file

file:///backup/foo

Thats all . Now u can update packs from hard disk.

technorati tags:,

How to set CUPS password?

To run the CUPS server

/etc/init.d/cups start

To access the CUPS configuration from browser

http://localhost:631

To set the password for CUPS admin works

lppasswd -g <group> -a <user>

lppasswd -g sys -a root

technorati tags:,