PDA

View Full Version : Cannot Install KDEdevel packages on linux



wirajr
2nd February 2006, 20:48
Hi
I am using mandrake 10.1 with KDE3.2, I am trying to install the KDE development packages, I managed to install kdecore and kedcore-devel,but I have been unable to install packages such as kdeui.
I have been using urpmi package manager to install these packages (The data base is updated with a full set of on-line resources from easy urpmi). I cannot find these packages any where here is what I tried doing.

1)Searched urpmi package names for kdeui and kdelibs no luck

2) Searched urpmi package file names (ie specific files that will ultimately be installed) ktmainwindow.h (this file is supposed to be in the package kdeui) could not find no luck
3.Itried installing RPMs that contain these libraries they are ,kdelibs and kdelibs-devel packages. There seems to be file name conflict with existing kdecore package. I used force option to install kdelibs but when I try to install kdelibs-devel it complains that it cannot find kdelibs here is the shell output

[root@x1-6-00-09-6b-40-03-e7 kdelibs]# rpm -iv kdelibs-devel-3.1-58mdk.i586.rpm
error: Failed dependencies:
kdelibs = 3.1-58mdk is needed by kdelibs-devel-3.1-58mdk

[root@x1-6-00-09-6b-40-03-e7 kdelibs]# rpm -qa |grep "kdelibs*"
kdelibs-common-3.2.3-106.2.101mdk
kdelibs-3.1-58mdk

I did a lot of work before I came here which I tried to summarise above hope its clear please I really need some help which will be appreciated thanks.

yop
2nd February 2006, 21:06
Hi
I am using mandrake 10.1 with KDE3.2
...
error: Failed dependencies:
kdelibs = 3.1-58mdk is needed by kdelibs-devel-3.1-58mdk

You are trying to install the dev packages for an older version than the one you have on your system. If you are sure that this is exactly what you want then

rpm -Uhv --force --nodeps [your_package_name].rpm

jacek
2nd February 2006, 21:11
I used force option to install kdelibs
You shouldn't do that.


kdelibs-common-3.2.3-106.2.101mdk
kdelibs-3.1-58mdk
It looks like you have installed kdelibs from KDE 3.1 on system that uses KDE 3.2 --- this might lead to serious problems.

Try looking for libkde* packages.

wirajr
4th February 2006, 15:02
Hi
I cant find kdelibs for 3.2. Can you tell me which packages I should install before I start development using KDE. I have been going through a lot of things trying to figure it out. Additionally I have the kdeui.so library installed its just that I cant find the header files needed for programming.

[root@x1-6-00-09-6b-40-03-e7 lib]# pwd
/usr/lib
[root@x1-6-00-09-6b-40-03-e7 lib]# ls -l libkdeui.so
lrwxrwxrwx 1 root root 17 Feb 4 13:51 libkdeui.so -> libkdeui.so.4.2.0*


Another thing worth mentioning is that I cannot find any packages in my urpmi database that contain headers for kdeui library. I did a search “in file names” for ktmainwindow.h with no luck. I would really appreciate if you could clarify this matter as well and thanks for your help so far.

jacek
4th February 2006, 15:37
Try installing libkdecore4-devel package.

wirajr
4th February 2006, 15:51
Try installing libkdecore4-devel package.
Hi
I have this package installed. As I said before it contained kdeui.so library but It does not install header files for linking against the library. (I believe you do need the header files in order to have a #include statement compile in your C++ source). here it is

[root@x1-6-00-09-6b-40-03-e7 lib]# rpm -qa | grep "kdecore*"
libkdecore4-3.2.3-93mdk
libkdecore4-devel-3.2.3-93mdk
and thanks for the quick reply appreciate it.

jacek
4th February 2006, 17:03
I don't use Mandrake/Mandriva so I can't help you much, but check other libkde*-devel packages.

Try:rpm -qf /usr/lib/libkdeui.so.4.2.0It should tell you which package owns it and then install the apropriate -devel package.

wirajr
5th February 2006, 14:32
I don't use Mandrake/Mandriva so I can't help you much, but check other libkde*-devel packages.

Try:rpm -qf /usr/lib/libkdeui.so.4.2.0It should tell you which package owns it and then install the apropriate -devel package.
Hi
libkdeui is already installed I am looking for the package with the necessary header files in order to link against the library (or is it not necessary). For example it has not installed ktmainwindow.h header although the library libkdeui is installed, thanks

jacek
5th February 2006, 15:39
Hi
libkdeui is already installed I am looking for the package with the necessary header files in order to link against the library (or is it not necessary). For example it has not installed ktmainwindow.h header although the library libkdeui is installed, thanks
Please, read my post again:

It should tell you which package owns it and then install the apropriate -devel package.
If rpm -qf tells you that libkdeui.so is owned by package named xyz-123 then just install xyz-devel-123.

wysota
5th February 2006, 21:18
KDE development package in Mandriva is libkdecore4-devel. Issue "urpmi libkdecore4-devel" and it should get installed. If urpmi complains it can't find it, try reconfiguring your rpm sources (http://easyurpmi.zarb.org/ is a good place to help you do this).

BTW. KDE headers will end up in /usr/include (I have 394 files starting with "k" and ending with ".h" there -- they all look like kde header files (version 3.4.2)).

BTW2. There is no file "ktmainwindow.h" in KDE headers, only "kmainwindow.h".

wirajr
5th February 2006, 21:31
Please, read my post again:

If rpm -qf tells you that libkdeui.so is owned by package named xyz-123 then just install xyz-devel-123.
Hi
I ran the command you gave me. The corresponding devel packages has been installed
my problem is that the headers are not installed here is the shell output.


[root@x1-6-00-09-6b-40-03-e7 root]# rpm -qf /usr/lib/libkdeui.so.4.2.0
libkdecore4-3.2.3-93mdk
[root@x1-6-00-09-6b-40-03-e7 root]# rpm -qa |grep "ibkdecore*"
libkdecore4-3.2.3-93mdk
libkdecore4-devel-3.2.3-93mdk
[root@x1-6-00-09-6b-40-03-e7 root]# find / -name "ktmainwindow.h" -print

[root@x1-6-00-09-6b-40-03-e7 root]#

And thanks for your input
wiraj

wysota
5th February 2006, 21:34
Again -- there is no such thing as ktmainwindow.h. It was present in KDE2 to help port applications from KDE 1. You won't find it in KDE3. What do you need it for, anyway?

wirajr
5th February 2006, 22:01
I got this book here that imports a header called ktmainwindow.h (I just double checked it), I could find other headers in this book except this particular one is it part of some depreciated API?

Well its all sorted out, and many thanks to all of you for your time and patients.
Wiraj