[9.0] Problems with apt and JRE
Hi all! I have tried to get the hang of apt, but i keep stumbling over the java integration. I have encountered several "Depends: libjawt.so but it is not installable" and installed J2SE with the JRE from SUN. but it still complains about it not exsisting. I have tried looking for answers online, but cant make too much out of it. :( How do i solve this problem? Its irritating to stuble over such a small thing and not having a clue on how to go on. -- /Rikard --------------------------------------------------------------- Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 735 05 51 01 PGP : ---------------------------------------------------------------
On Thursday, 21 October 2004 09.19, Rikard Johnels wrote:
Hi all! I have tried to get the hang of apt, but i keep stumbling over the java integration. I have encountered several "Depends: libjawt.so but it is not installable" and installed J2SE with the JRE from SUN.
I'm guessing you installed the tar files and not the rpm packages. All rpm based tools only look at the rpm database, not at the actual files on your disk, so you need some rpm that says "Provides: libjawt.so". Either the rpm based version from sun, the rpm from suse, or (if you can't find an rpm of java with the requisite "Provides:") a fake one you create yourself
On Thursday 21 October 2004 09:23, Anders Johansson wrote:
On Thursday, 21 October 2004 09.19, Rikard Johnels wrote:
Hi all! I have tried to get the hang of apt, but i keep stumbling over the java integration. I have encountered several "Depends: libjawt.so but it is not installable" and installed J2SE with the JRE from SUN.
I'm guessing you installed the tar files and not the rpm packages. All rpm based tools only look at the rpm database, not at the actual files on your disk, so you need some rpm that says "Provides: libjawt.so". Either the rpm based version from sun, the rpm from suse, or (if you can't find an rpm of java with the requisite "Provides:") a fake one you create yourself
I used the package provided via SUN. "j2re-1_4_2_06-linux-i586-rpm.bin" which in turn gave the "j2re-1_4_2_06-linux-i586.rpm" package. Instaled: sparhawk:~ # rpm -i j2re-1_4_2_06-linux-i586.rpm sparhawk:~ # rpm -q j2re j2re-1.4.2_06-fcs sparhawk:~ # find / -mount -name libjawt.so /usr/java/j2re1.4.2_06/lib/i386/libjawt.so what more do i need? -- /Rikard --------------------------------------------------------------- Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 735 05 51 01 PGP : ---------------------------------------------------------------
On Thursday, 21 October 2004 09.41, Rikard Johnels wrote:
I used the package provided via SUN.
"j2re-1_4_2_06-linux-i586-rpm.bin" which in turn gave the "j2re-1_4_2_06-linux-i586.rpm" package. Instaled: sparhawk:~ # rpm -i j2re-1_4_2_06-linux-i586.rpm sparhawk:~ # rpm -q j2re j2re-1.4.2_06-fcs sparhawk:~ # find / -mount -name libjawt.so /usr/java/j2re1.4.2_06/lib/i386/libjawt.so
what more do i need?
OK, it seems the rpm doesn't have the "Provides" needed for a consistent rpm database. I know there is a way to do it in apt to trick it into "knowing" you have that dependency covered (although I don't remember how, I don't use apt), but here is a method I posted to the list a while back, which will cover all rpm based programs. Create the file dummy.spec in /usr/src/packages/SPECS with the following contents: Name: Dummy Summary: Dummy package to help solve RPM dependencies for packages installed from source Version: 1.0 Release: 1 License: GPL Group: none Provides: libjawt.so %description This package will "provide" the things installed from source, so the RPM database will be in some sense "in order", although it still won't have the files included, so RPM won't be able to warn you about overwriting %prep %build %install %files then run rpmbuild -bb /usr/src/packages/SPECS/dummy.spec and install the rpm that gets created.
On Thursday 21 October 2004 10:18, Anders Johansson wrote:
On Thursday, 21 October 2004 09.41, Rikard Johnels wrote:
I used the package provided via SUN.
"j2re-1_4_2_06-linux-i586-rpm.bin" which in turn gave the "j2re-1_4_2_06-linux-i586.rpm" package. Instaled: sparhawk:~ # rpm -i j2re-1_4_2_06-linux-i586.rpm sparhawk:~ # rpm -q j2re j2re-1.4.2_06-fcs sparhawk:~ # find / -mount -name libjawt.so /usr/java/j2re1.4.2_06/lib/i386/libjawt.so
what more do i need?
OK, it seems the rpm doesn't have the "Provides" needed for a consistent rpm database. I know there is a way to do it in apt to trick it into "knowing" you have that dependency covered (although I don't remember how, I don't use apt), but here is a method I posted to the list a while back, which will cover all rpm based programs. Create the file dummy.spec in /usr/src/packages/SPECS with the following contents:
Name: Dummy Summary: Dummy package to help solve RPM dependencies for packages installed from source Version: 1.0 Release: 1 License: GPL Group: none Provides: libjawt.so
%description This package will "provide" the things installed from source, so the RPM database will be in some sense "in order", although it still won't have the files included, so RPM won't be able to warn you about overwriting
%prep
%build
%install
%files
then run rpmbuild -bb /usr/src/packages/SPECS/dummy.spec and install the rpm that gets created.
Once again Anders to the rescue!!! You are amazing in the way that you ALWAYS seem to know exactly what we wandering clueless'ies shall do to get everything right! Thank youever so much! -- /Rikard --------------------------------------------------------------- Rikard Johnels email : rikjoh@norweb.se Web : http://www.rikjoh.com Mob : +46 735 05 51 01 PGP : ---------------------------------------------------------------
* Anders Johansson
OK, it seems the rpm doesn't have the "Provides" needed for a consistent rpm database. I know there is a way to do it in apt to trick it into "knowing" you have that dependency covered (although I don't remember how, I don't use apt), ...
edit /etc/apt/apt.conf.d/apt.conf // with "apt-config dump" all settings can be viewed Acquire::CDROM::Copy "true"; Debug { pkgRPMPM "false"; } RPM { // Hold (do not update) a list with pkgs: // Leave list empty to disable Fake-Provides { "linux-gate.so.1" }; Install-Options ""; Erase-Options ""; Source { Build-Command "rpmbuild --rebuild"; }; } "Fake-Provides" is the place for the dependency trick -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711 Photo Album: http://wahoo.no-ip.org/photos
Op donderdag 21 oktober 2004 09:19, schreef Rikard Johnels:
I have encountered several "Depends: libjawt.so but it is not installable" and installed J2SE with the JRE from SUN. but it still complains about it not exsisting. I have tried looking for answers online, but cant make too much out of it. :(
How do i solve this problem? Its irritating to stuble over such a small thing and not having a clue on how to go on.
It is missing in 9.0 indeed. The file is present in 9.1: The file is provided by: apt/SuSE/9.1-i386 $ zgrep libjawt.so Contents-i386.gz usr/lib/SunJava2-1.4.2/jre/lib/i386/libjawt.so Development_Languages_Java/java2-jre the package java2-jre. Perhaps you can install the suse-9.1 java2-jre package? -- Richard Bos Without a home the journey is endless
participants (4)
-
Anders Johansson
-
Patrick Shanahan
-
Richard Bos
-
Rikard Johnels