This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Error Compiling Ktorrent (docbook dtd/kdex.dtd error)

Tags: None
(comma "," separated)
User avatar
Aoxo
Registered Member
Posts
20
Karma
0
I thought I would see if I could upgrade my ktorrent to 4.3.1 on kubuntu.

I followed the directions to the letter, except I plan to use checkinstall in the end..but my issue arises before that point anyway.

http://pastebin.com/up4ksB3H

The problems seems to start with "index.docbook:7: warning: failed to load external entity "dtd/kdex.dtd"". I've been searching forums and it seems to be a pretty common problem, though finding the same solution twice is proving difficult. I've tried installing docbook, docbook-xml and linuxdoc-tools based on some suggestions. Searching for "kdex.dtd" on my system produced no results. For many people this file seems to go missing and it dates back to 2002 when computers were still made of wood.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Which version of kdelibs is installed on your system?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Aoxo
Registered Member
Posts
20
Karma
0
kdelibs-bin 4.10.0

I think I found the problem, though, my resolution to the problem might not have been ideal. I found many forum posts about this file "disappearing" on people, and a couple times the application BleachBit came up. I think using BleachBit to remove "languages" might have been the reason I lost most of the contents of "/usr/share/kde4/apps/ksgmltools2/customization/" where this file is contained normally. The first report I found of this problem dates back to 2009 I think, and according to the bug report was fixed. Clearly not fixed. There are several folders in there for specific languages, ie: en-us, en, etc. There's also folders in there that don't seem language related like "dtd". Overall, BleachBit is on my **** list and off my system. I think the whole point of a program of it's nature is to allow you to clean junk without breaking the system. I thought if I could remove unnecessary files pertaining to the hundreds of languages that I don't speak, read, or type, I could free up some space.

So my resolution was to boot into a 12.10 live dvd and shoot the files over the network to this VM. With that folder restored all my docbook errors are resolved. This doesn't do much to ease my concern that BleachBit might have done something hamper me in the future. I'm not sure how to go about reinstalling kdelibs (is kdelibs-bin the same thing?). If I remove it, it's dependencies result in removing what looks like the bulk of KDE. I don't want to go in swinging an axe around.

Enough of that though....I have another problem..which may or may not warrant a separate thread. When I execute apt-get build-dep ktorrent, I'm supplied with libktorrent4 and libktorrent-dev among other things. The source code from ktorrent site or git provides ktorrent and libktorrent sources. The compile instructions state that you must build and install libktorrent prior to building and installing ktorrent. I'm assuming that libktorrent == libktorrent4, I could be wrong, but the version from the repo says it was built from source "libktorrent" despite its name having a 4 at the end. Operating under that assumption I used checkinstall to name the package as such and added version number. Installing this package results in the removal of libktorrent4 1.2.1 (the older version from the repo), which is dependant on libktorrent-dev. In order to install my compiled libktorrent4 1.3.1, I have to remove both libktorrent4 1.2.1 and libktorrent-dev. I cannot compile ktorrent without libktorrent-dev. If I attempt to install the older ktorrent-dev along with my compiled libktorrent4 1.3.1, I'm told both packages are attempting to write to the same target. I did originally try to install libktorrent as just libktorrent, and I recall getting some conflict errors there as well. I have to say I'm a bit confused as to what I'm supposed to do with this libktorrent thing exactly. I think the most success I had was when I used checkinstall to build packages for both libktorrent and ktorrent without installing them in the process, all while I still had the previous versions of libktorrent4 and libktorrent-dev installed. I then removed those 2 packages and installed my compiled libktorrent(4) and ktorrent. I managed to fire it up and download a file, but I have a feeling something was going to not work right down the road.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
If you install the build dependencies for libktorrent4, and the only dependencies it wants to install for ktorrent is libktorrent4, then you should be fine.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
Aoxo
Registered Member
Posts
20
Karma
0
Thank you sir that seems to have worked perfectly. I removed anything having to do with ktorrent and libktorrent and ran apt-get build-dep libktorrent which resulted in no downloads. Built and installed libktorrent, then ktorrent using checkinstall. There were some warnings but nothing that looked serious enough to mention, though I do have the full text still if you're interested.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Some of the warnings may have been harmless, but it does no harm to review them.
Feel free to post them.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]