Dependencies ...
The case is this:
I have a computer that is connected to the internet and another which isn't, i installed mplayer using yum on the one that has internet connection and tried to install mplayer on the one that doesn't have internet connection by taking the 2 mplayer's packages that yum downloaded to /var/cache/yum/atrpms/packages/ and installing manually the usual way 'rpm -hiv mplayer-fonts-1.0-6.at.noarch.rpm' and 'rpm -hiv mplayer-1.0-50_pre7try2.rhfc4.at.i386.rpm'. the fonts installation went ok, the actual mplayer required dependencies of course: '[root@fedora lib]# rpm -hiv /var/cache/yum/atrpms/packages/mplayer-1.0-50_pre7try2.rhfc4.at.i386.rpm warning: /var/cache/yum/atrpms/packages/mplayer-1.0-50_pre7try2.rhfc4.at.i386.rpm: Header V3 DSA signature: NOKEY, key ID 66534c2b error: Failed dependencies: libaa.so.1 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libdvdread.so.3 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libfaad.so.0 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libfribidi.so.0 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 liblirc_client.so.0 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 liblzo.so.1 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libmad.so.0 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libmp3lame.so.0 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libpostproc.so.0 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libstdc++.so.5 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libstdc++.so.5(CXXABI_1.2) is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libstdc++.so.5(GLIBCPP_3.2) is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386 libxvidcore.so.4 is needed by mplayer-1.0-50_pre7try2.rhfc4.at.i386' so i grabbed the dependencies from the computer that already had mplayer installed and put them to the same directory on the comp i want mplayer to be installed (/usr/lib/) and created links to them, everything just like on the internet comp, but i still get the message about all of those missing dependencies. any ideas? Thanks. |
DEps are a royal PITA. The biggest problem here would be, that FC4's package managment system (is there any? Knowing FC4, there problably are some crappy rpm's...) doen not resolve deps, like debian's apt or gentoo's portage.
Wait,wait,wait... did you just copy the binaries over ?? I don't think that will work on any distro... maybe I just misunderstood you. |
Quote:
Quote:
|
Sorry, did not know. I just hate FC4 and all derivatives. They only cause trouble.
|
I'm pretty sure apt has the downloaded packages saved in a cache in the var folder. Might check to see if yum does anything similar that you might be able to get the rpm files from.
|
I Hate Dependencies!!!!!!!!!!!!!!!!!!!
|
The only way to get rid of dependency problems is to compile the program. The reason why Gentoo is great is it compiles programs and this is the only way to experience Linux to its fullest.
Before compiling, make sure glibc and other headers for certain features you want for mplayer are installed. Then all you need to do is ./configure && make && make install in the mplayer's source directory. I recommend not to include the GUI of mplayer because it does not always work as running mplayer from a terminal. IMHO, mplayer is the easiest to compile than any other programs. |
What I suggest you do is copy the missing dependencies from the yum cache (/var/cache/yum or something like that) of your computer thats linked to the internet. Save them somewhere in your /home and then install them as root using "rpm -Uvh ". If there is a way to temporarily connect your other computer to the net, then that would be probably the best solution because you will be able to use YUM. Unfortunately installing packages manually on any distro can be a pain when it comes to dependency resolution. Don't bother listening to people saying Fedora has crappy package management, you will hear this all the time especially from those who don't actually have any current experience with the distro. YUM works quite well and if you don't like YUM you can even use APT. Your problem here is lack of connectivity and not lack of a suitable package manager.
Quote:
|
Quote:
Quote:
Quote:
Quote:
Quote:
Yum's ok. Thanks for your replies mates. |
Quote:
Using urpmi in Mandrake or Mandriva, it will take me hours just to get through the dependencies. After it is done, the installed program will work or make make the whole entire system be unstable. I do not like Redhat, so I will never use Fedora. I have used Slackware but it is too unfinished. Use package based distributions at your own risk. Sooner or later the package file that you downloaded could make the system become unstable or show weird errors. I recommend searching the internet about how evil packaged based distributions are. Quote:
Check if you have /usr/local/bin in your PATH environment variable. Quote:
|
On Debian based distros, there is a way to make local repositories and use APT to install from them. Not sure if you can do that with YUM or Apt4rpm's....
|
Quote:
Quote:
Quote:
Quote:
Compiling stuff from source is no magic bullet either. You get an even more time consuming dependency hell since you have to manually search the web, download, compile and install each and every dependent piece of software. Not to mention that you have to decipher the often cryptic error messages from configure scripts about missing header files or (sometimes) even C++ class definitions to work out which piece of software its looking for. |
Quote:
With urpmi, yum et all, you can pick the packages you want to install, continue working and a few minutes later, all your packages are installed just like portage. At least you don't have to wait for hours for very large packages to compile. Checking dependencies is not so hard on package based distros and all the major package managers have facilities for that. You can even just use rpm if on an rpm based distro or dpkg if you are on a debian based distro to check for required dependencies. |
Quote:
Follow steps : 1. Download the rpms http://www.kiraninfotech.com/downloa...n.1.2.i686.rpm http://www.kiraninfotech.com/downloa...51128.i386.rpm http://www.kiraninfotech.com/downloa...412-1.i386.rpm http://www.kiraninfotech.com/downloa...412-1.i386.rpm http://www.kiraninfotech.com/downloa...51128.i386.rpm http://www.kiraninfotech.com/downloa....11-1.i386.rpm 2. Install the downloaded RPMS in the following sequence mplayer-1.0pre8-0.4.20051128.i386.rpm lame-3.96-0.lvn.1.2.i686.rpm mplayer-gui-1.0pre8-0.4.20051128.i386.rpm mplayerplug-in-3.11-1.i386.rpm mplayer-codecs-20050412-1.i386.rpm mplayer-codecs-extra-20050412-1.i386.rpm Done No Dependencies.. You can also find this instructions here. Rohit |
Quote:
Code:
rpm -Uvh /path/to/rpms/*.rpm |
All times are GMT -5. The time now is 10:24 PM. |