LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rpm installation problem (https://www.linuxquestions.org/questions/linux-newbie-8/rpm-installation-problem-738825/)

pdwivedi 07-09-2009 02:46 AM

rpm installation problem
 
hi,
i am trying to install a package using following command

Quote:

rpm -Uvh libobexftp-0.22-1.el5.rf.i386.rpm
but it gives following error!

Code:

error: Failed dependencies:
        libopenobex.so.1 is needed by libobexftp-0.22-1.el5.rf.i386

however when i searched for the file libopenobex.so.1 it is in the /usr/local/lib directory.
why it is not finding the library libopenobex.so.1?
Please help .

thanks
pdwivedi

colucix 07-09-2009 03:00 AM

If it is in /usr/local/lib maybe he does not see it. You can verify if libopenobex.so.1 is included in the library cache using ldconfig -p as root. Anyway, why don't use yum to install the package, so that it can take care of the dependencies automagically?

pdwivedi 07-09-2009 03:08 AM

i ran the command
Code:

[root@projectmachine obexftp]# ldconfig -p |grep libopenobex.so.1
which gave that libopenobex.so.1 is not in the list.please tell me how to add this.

i am not using yum because i don't have internet connection on linux pc.

thanks

colucix 07-09-2009 03:30 AM

Take a look at man ldconfig. Anyway, how did you installed libopenobex.so.1? If you have compiled it from source, maybe it's better to install a pre-compiled version from a binary package to assure compatibility.

pdwivedi 07-09-2009 03:48 AM

i compiled it from the source.
now i did
Code:

ldconfig -l /usr/local/lib/libopenobex.so.1
it gave
Code:

ldconfig: Ignored file /usr/local/lib/libopenobex.so.1 since it is not a regular file.
the reason i compiled it from source was that another package which uses same libopenobex.so.1 file was not available in rpm form.hence i had install these packages from source.

thanks & regards

colucix 07-09-2009 03:53 AM

Maybe libopenobex.so.1 is a link? What is the output from file /usr/local/lib/libopenobex.so.1?

colucix 07-09-2009 04:05 AM

Quote:

Originally Posted by pdwivedi (Post 3601941)
the reason i compiled it from source was that another package which uses same libopenobex.so.1 file was not available in rpm form.hence i had install these packages from source.

You can try to install either openobex for RHEL4 or openobex for CentOS 5.3. Use the --test option of rpm to test the installation without actually installing anything passing both the openobex and the libobexftp packages as arguments.

pdwivedi 07-09-2009 04:55 AM

please tell me how to add library in ldconfig.

thanks

colucix 07-09-2009 05:03 AM

Quote:

Originally Posted by pdwivedi (Post 3602000)
please tell me how to add library in ldconfig.

thanks

What is the output from
Code:

file /usr/local/lib/libopenobex.so.1
and
Code:

ls -l /usr/local/lib
?

Tinkster 07-09-2009 05:13 AM

The problem is that rpm doesn't check for dependencies in
the file-system or any PATH, but in its RPM database. I
think that however libobex made it into /usr/local - it
wasn't via rpm (and hence rpm doesn't know about it).


Cheers,
Tink

pdwivedi 07-09-2009 05:24 AM

thank u sir,
but i am trying to configure bluetooth on my rhel5 for last 5 days. i don't know what i am doing wrong.if u please guide me into this i will be vry thakful.this is what i did..

1.i installed bluez-libs-3.36, bluez-utils-3.36 from source code since i did not find rpm.
2.configured hcid.conf & rfcomm.conf
3.installed obexftp & obexpushd.

then tried to transfer the files but nothing seems to work..

thanks in advance

Tinkster 07-09-2009 05:32 AM

You're doing a mix-and-match (and that doesn't work). Either
find an RPM for all those packages, or install the ones that
depend on source modules from source as well.

pdwivedi 07-09-2009 05:37 AM

and where do i find all the necessary packages? because some of the packages like bluez does not come in rpm.

unSpawn 07-09-2009 07:06 AM

See the links in post #7 by Colucix?

colucix 07-09-2009 07:46 AM

Or just look for them in the Red Hat Network service. It looks like they released an update of bluez-utils and blue-libs for RHEL5, so that it means they did the bluetooth packages!


All times are GMT -5. The time now is 04:18 PM.