Package dependency

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Package dependency

Postby eoqayli » Nov 1st, '16, 13:02

Hello All,
this is my first time here, so please be kind with me
I am trying to install an rpm application and it fail for dependency issues.
Using the control center i installed those packages, but still the application fails to install.

Here is a snap of the code
Code: Select all
Resolving Dependencies
--> Running transaction check
---> Package Jamaica.x86_64 0:6.3-2 will be installed
--> Processing Dependency: libX11-devel for package: Jamaica-6.3-2.x86_64
--> Processing Dependency: libXi-devel for package: Jamaica-6.3-2.x86_64
--> Processing Dependency: libXtst-devel for package: Jamaica-6.3-2.x86_64
--> Processing Dependency: libXext-devel for package: Jamaica-6.3-2.x86_64
--> Finished Dependency Resolution
Error: Package: Jamaica-6.3-2.x86_64 (/Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64)
           Requires: libX11-devel
Error: Package: Jamaica-6.3-2.x86_64 (/Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64)
           Requires: libXext-devel
Error: Package: Jamaica-6.3-2.x86_64 (/Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64)
           Requires: libXi-devel
Error: Package: Jamaica-6.3-2.x86_64 (/Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64)
           Requires: libXtst-devel
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
[emad@localhost Downloads]$ Sudo yum -v clean expire-cache
bash: Sudo: command not found
[emad@localhost Downloads]$ sudo yum -v clean expire-cache
Config time: 0.005
Yum Version: 3.4.3
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>
[emad@localhost Downloads]$ yum list installed libXi-devel
Installed Packages
libxi-devel.i586                                         1.7.4-3.mga5                                         installed
[emad@localhost Downloads]$ yum list installed libXtst-devel
Installed Packages
libxtst-devel.i586                                        1.2.2-5.mga5                                        installed
[emad@localhost Downloads]$
Last edited by isadora on Nov 1st, '16, 13:42, edited 1 time in total.
Reason: Placed command-output in between [CODE]-tags for better readability ;)
eoqayli
 
Posts: 4
Joined: Nov 1st, '16, 12:58

Re: Package dependency

Postby wintpe » Nov 1st, '16, 16:14

this a mageia forum, and you are using yum, which is natively a redhat repo manager.

mageia generally uses urpmi, which functions much the same way as yum, but its configuration is completely different.

while a redhat rpm sometimes works on mageia its usually safest to convert the redhat srpm to a mageia one, and then use

urpmi or rpm to install it.

the reason you are having issues i would imagine is you have installed yum, but the dependencies are not being met, because only urpmi can
resolve those dependencies.

you may have better luck with the rpm downloaded , using
urpmi ./Jamaica-6.3-2.x86_64.rpm

and letting urpmi resolv the closest dependencies that the mageia repos have, but theres no guarantee that they will be the same versions as the rpm you have downloaded ie Jamaica needs.

what is this app, ive never heard of it? google shows up a blank

regards peter
Redhat 6 Certified Engineer (RHCE)
Sometimes my posts will sound short, or snappy, however its realy not my intention to offend, so accept my apologies in advance.
wintpe
 
Posts: 1204
Joined: May 22nd, '11, 17:08
Location: Rayleigh,, Essex , UK

Re: Package dependency

Postby doktor5000 » Nov 1st, '16, 20:36

wintpe wrote:what is this app, ive never heard of it? google shows up a blank

Seems to be some kind of alternative java runtime environment: https://www.aicas.com/cms/en/JamaicaVM
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Package dependency

Postby eoqayli » Nov 2nd, '16, 00:27

Hi all,
Thanks for the reply.
Jamaica is RTSJ implementation.
I used urpmi to install it but i have the same problem, the installation is exited because of the dependency, although the packages are installed.
As I do not have access to the machine now, i cannot execute the command you sent me, however, i will update as i manage to execute it.
eoqayli
 
Posts: 4
Joined: Nov 1st, '16, 12:58

Re: Package dependency

Postby doktor5000 » Nov 2nd, '16, 02:33

Please also show the output of
Code: Select all
urpmq --list-media active --list-url


In general, the requires tags are arbitrary tokens, if they don't match 100% with the provides of the library packages you have installed (even when only the case is different, uppercae vs. lowercase names) the requires are not satisfied and you will get dependency errors if that package has not been adapted for Mageia. Only chance then is to ignore the requires and force the installation. In that case you would need to ensure that all required libraries and such are already installed yourself.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Package dependency

Postby eoqayli » Nov 2nd, '16, 08:14

Hi All,
I did try using the urpmi again, and here is the result:

Code: Select all
[emad@localhost Downloads]$ sudo urpmi ./Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64.rpm
[sudo] password for emad:
A requested package cannot be installed:
Jamaica-6.3-2.x86_64 (due to unsatisfied libXi-devel)
Continue installation anyway? (Y/n) y
While some packages may have been installed, there were failures.
A requested package cannot be installed:
Jamaica-6.3-2.x86_64 (due to unsatisfied libXi-devel)
Continue installation anyway?
[emad@localhost Downloads]$


and here is the result for
urpmq --list-media active --list-url
Code: Select all
[emad@localhost Downloads]$ urpmq --list-media active --list-url
Core Release (distrib1) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/x86_64/media/core/release
Core Release Debug (distrib2) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/x86_64/media/debug/core/release
Core Updates (distrib3) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/x86_64/media/core/updates
Core Updates Debug (distrib4) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/x86_64/media/debug/core/updates
Core Updates Testing (distrib5) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/x86_64/media/core/updates_testing
Core Updates Testing Debug (distrib6) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/x86_64/media/debug/core/updates_testing
Nonfree Release (distrib11) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/x86_64/media/nonfree/release
Nonfree Updates (distrib13) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/x86_64/media/nonfree/updates
Core 32bit Release (distrib31) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/i586/media/core/release
Core 32bit Updates (distrib32) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/i586/media/core/updates
Nonfree 32bit Release (distrib36) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/i586/media/nonfree/release
Nonfree 32bit Updates (distrib37) http://mirror.atlanta.delimiter.com/pub/mageia/distrib/5/i586/media/nonfree/updates
[emad@localhost Downloads]$
eoqayli
 
Posts: 4
Joined: Nov 1st, '16, 12:58

Re: Package dependency

Postby doktor5000 » Nov 4th, '16, 01:19

You need to enforce installation without a dependency check, as it requires libXi-devel (with a capital X) but the package you have installed provides libxi-devel (lowercase x). Try with several times with
Code: Select all
sudo urpmi --allow-nodeps ./Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64.rpm
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Package dependency

Postby eoqayli » Nov 6th, '16, 08:28

Hello,
Thank you for the help.
Now it works fine, but i am still not getting why it did not sense the presence of the packages although they are installed.
eoqayli
 
Posts: 4
Joined: Nov 1st, '16, 12:58

Re: Package dependency

Postby doktor5000 » Nov 6th, '16, 15:03

Well, I did explain this already two times, quoting again:
doktor5000 wrote:In general, the requires tags are arbitrary tokens, if they don't match 100% with the provides of the library packages you have installed (even when only the case is different, uppercae vs. lowercase names) the requires are not satisfied and you will get dependency errors if that package has not been adapted for Mageia. Only chance then is to ignore the requires and force the installation. In that case you would need to ensure that all required libraries and such are already installed yourself.


Quoting the dependencies from Jamaica again:
--> Finished Dependency Resolution
Error: Package: Jamaica-6.3-2.x86_64 (/Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64)
Requires: libX11-devel
Error: Package: Jamaica-6.3-2.x86_64 (/Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64)
Requires: libXext-devel
Error: Package: Jamaica-6.3-2.x86_64 (/Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64)
Requires: libXi-devel
Error: Package: Jamaica-6.3-2.x86_64 (/Jamaica-6.3-2-8513-xwindow-multicore-linux-x86_64)
Requires: libXtst-devel


That uppercase X is the problem. The package name is different, and also the Provides tags of the installed packages are different, so they will not match what's required by Jamaica because it has not been adapted for Mageia and also because the Requires they are using are not really well-chosen. If they would e.g. use more generic pkgconfig-type Requires tags in the form of e.g. pkgconfig(x11) this package would be more universal and could be used on several distributions without the necessity to force installation without checking dependencies.

Does this make more sense to you? Or asking the other way around, why do you assume that the package manager will "sense" any installed package? It just knows which packages are installed, no need to sense anything. And during installation it just matches the Requires tags of the package that should be installed against all the database of packages that are already installed, and if something does not match exactly, it will throw out an error like you saw it, that is just normal operation and what the package manager is intended for.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18057
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron