LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2006, 12:33 PM   #31
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 19 86_64
Posts: 355

Rep: Reputation: 32

Ricka343

Can you try "yum --disablerepo=livna install mplayer"

This temp disables the repo you have problems with
 
Old 07-02-2006, 01:32 AM   #32
ricka343
Member
 
Registered: Jun 2006
Posts: 54

Original Poster
Rep: Reputation: 15
Traceback (most recent call last):
File "/usr/bin/yum", line 28, in ?
import yummain
File "/usr/share/yum-cli/yummain.py", line 25, in ?
from yum import logginglevels
ImportError: cannot import name logginglevels


this is the error message now
 
Old 07-02-2006, 01:35 AM   #33
ricka343
Member
 
Registered: Jun 2006
Posts: 54

Original Poster
Rep: Reputation: 15
what is electro saying can we do that way
 
Old 07-02-2006, 02:50 AM   #34
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
To compile mplayer, you will need development packages. You can either get the packages from the CD/DVD or through apt-get since yum got screwd up from some ones config. To install apt, you have to find its RPM file on a server like on http://ayo.freshrpms.net/. Then type 'rpm -Uvh [filename].rpm'. It will install apt. After you install it you have to type 'apt-get update'. After it is done, type 'apt-get check' to scan through your RPM tree. You can use apt-get to remove yum (I think). After you move yum config directory, you can install yum with apt-get. I got this information from a book.


Quote:
Sorry Electro,

But the problem which Ricka343 have has not much to do with my config settings, also adding lines not need to a backup, as it is easy to remove lines as simple as it gets.

Your posting tells more about your know-how of the Redhat (RPM) installation and the untils, which is none.

You seriously say to a first time user to compile a program from source without knowing if he or she has even installed the packages for that, which Fedora not installs by default.

The problem Ricka343 has is that there is a problem with the Livna repo see /etc/yum.repos.d/livna.repo in the error listing.
I had my fair share of RPM hell. I have installed RPM files manually. Several times I spend hours trying to install a tiny program. Compiling programs is the only way to go to experience Linux. Using RPM or DEB files only blanklets the user so they are unable see the possibilites of Linux.
 
Old 07-02-2006, 07:32 AM   #35
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 19 86_64
Posts: 355

Rep: Reputation: 32
Hello Ricka343,

I looked at your errors again and want to try to see if your Python settings are still as they have to be. Because it is possible that you may be pointing at the "wrong" python version or path.

So as root type "ls /usr/bin/python*"

And the correct answer is;
/usr/bin/python /usr/bin/python2 /usr/bin/python2.4
green light blue green

The Electro solution is possible, but more like last option, we better find the source of the problem. Before we start fixing things.
 
Old 07-02-2006, 08:09 AM   #36
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 19 86_64
Posts: 355

Rep: Reputation: 32
Hello Ricka343,

Of course if you not care to much why your config is not working, and just want Mplayer to work, you can also download the files needed by following the following steps.

Download from;
http://rpm.greysector.net/yum/5/i386/

mencoder-1.0pre8-1.i386.rpm
mplayer-1.0pre8-1.i386.rpm
mplayer-gui-1.0pre8-1.i386.rpm
mplayer-vidix-1.0pre8-1.i386.rpm

Download from;
http://rpm.greysector.net/yum/all/i386/

mplayer-codecs-20060611-1.i386.rpm
mplayer-codecs-extra-20060611-1.i386.rpm

Download from;
http://www.atrpms.net/dist/fc5/mplayerplug-in/

mplayerplug-in-3.25-28.rhfc5.at.i386.rpm

copy all this files to your root folder and open terminal as root....

rpm -Uvh mencoder-1.0pre8-1.i386.rpm mplayer-1.0pre8-1.i386.rpm mplayer-gui-1.0pre8-1.i386.rpm mplayer-vidix-1.0pre8-1.i386.rpm mplayer-codecs-20060611-1.i386.rpm mplayer-codecs-extra-20060611-1.i386.rpm mplayerplug-in-3.25-28.rhfc5.at.i386.rpm

It is possible that you missing some packages needed to run Mplayer, let me know what the result is....
 
Old 07-03-2006, 03:57 AM   #37
ricka343
Member
 
Registered: Jun 2006
Posts: 54

Original Poster
Rep: Reputation: 15
[root@localhost ~]# /usr/bin/python
Python 2.4.2 (#1, Feb 12 2006, 03:59:46)
[GCC 4.1.0 20060210 (Red Hat 4.1.0-0.24)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 
Old 07-03-2006, 05:06 AM   #38
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 19 86_64
Posts: 355

Rep: Reputation: 32
Sorry is that what you get after

ls /usr/bin/python*
 
Old 07-03-2006, 11:11 AM   #39
ricka343
Member
 
Registered: Jun 2006
Posts: 54

Original Poster
Rep: Reputation: 15
yes and when i tried thru rpm it says a missing dependency i cud not find that
 
Old 07-03-2006, 06:13 PM   #40
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Again I recommend compiling mplayer. The reason why is because of dependencies that the maintainer think that you should have all the features of mplayer. This fine but a nightmare for a newbie. Users rarely use all the features of mplayer and rarely they have the libraries installed. By compiling mplayer, it will give you taste of mplayer but with out all the dependency hell. You can keep on compiling mplayer until you have all the features that you need. Of course you need to make sure you have gcc compiler, X11 headers, ALSA headers, kernel headers, and others. Though mplayer may have problems compiling with gcc version 4 compiler.

Installing devel (aka as headers) RPM files does not or should not have any dependencies.

HINT:
If you have a lot of RPM files to install, place them in one directory and type rpm -Uvh *.rpm. The rpm utility should sort out through the mess of rpm files. Each program that you want to install should have its own set of RPM files, so an RPM file does not get re-installed.
 
Old 07-04-2006, 03:09 AM   #41
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 19 86_64
Posts: 355

Rep: Reputation: 32
Sorry Ricka343,

You forget to say "ls" before /usr/bin/python

The correct command is

[root@localhost ~]#ls /usr/bin/python*

This will tell you which Python version is linked and will be used default by the system, the linked version will show as blue. Python is used by more programs then yum only, so to avoid future problems you need to check if the problems you are facing are not based on a Python error.

- - - - - - - - -

To Electro,

If compiling mplayer from source is what you advice, then post how-to-do-it in understandable language and steps for a newbie user. With saying multiple times "compile from source" you not help anybody.
 
Old 07-04-2006, 03:30 AM   #42
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 19 86_64
Posts: 355

Rep: Reputation: 32
Hello Ricka343,

If you want to install mplayer without fixing the problems you probably have with Python and not want to compile mplayer from source. Then here are 4 additional downloads you probably need to install mplayer. Download this files and copy them in the same folder where you have the other mplayer downloads.

http://ftp.freshrpms.net/pub/fedora/...10-50.i386.rpm
http://ftp.freshrpms.net/pub/fedora/...10-50.i386.rpm
http://ftp.freshrpms.net/pub/fedora/...8.2.2.i386.rpm
http://ftp.freshrpms.net/pub/fedora/...8.2.2.i386.rpm

After downloading run the following command in terminal;
rpm -Uvh mencoder-1.0pre8-1.i386.rpm mplayer-1.0pre8-1.i386.rpm mplayer-gui-1.0pre8-1.i386.rpm mplayer-vidix-1.0pre8-1.i386.rpm mplayer-codecs-20060611-1.i386.rpm mplayer-codecs-extra-20060611-1.i386.rpm mplayerplug-in-3.25-28.rhfc5.at.i386.rpm RPMS/gtk+-1.2.10-50.i386.rpm gtk+-devel-1.2.10-50.i386.rpm glib-devel-1.2.10-18.2.2.i386.rpm

It is also possible to run “rpm –Uvh *.rpm” as Electro suggest.

If you have more problems with dependencies look for the missing rpm in http://ftp.freshrpms.net/pub/fedora/...os/Fedora/RPMS

Good luck

Richard
 
Old 07-04-2006, 05:19 AM   #43
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Quote:
Originally Posted by Dummy-in-Linux
Sorry Ricka343,

You forget to say "ls" before /usr/bin/python

The correct command is

[root@localhost ~]#ls /usr/bin/python*

This will tell you which Python version is linked and will be used default by the system, the linked version will show as blue. Python is used by more programs then yum only, so to avoid future problems you need to check if the problems you are facing are not based on a Python error.

- - - - - - - - -

To Electro,

If compiling mplayer from source is what you advice, then post how-to-do-it in understandable language and steps for a newbie user. With saying multiple times "compile from source" you not help anybody.
I do not need to give step by step instructions because it is already on mplayer's site and as well as several others. I'll be nice give them if reading on mplayer site is too much trouble.

Assuming all devel or headers are installed and the compiler.
1) Download mplayer to some directory. Can be any directory.
2) mkdir ~/tmp
3) tar -xvjf MPlayer-1.0pre8.tar.bz2 -C~/tmp
4) cd ~/tmp/MPlayer-1.0pre8
5) ./configure
6) make
7) sudo make install
7b) su - make install

If it does not give you any compile errors or it does not require a certain library, find a media file and type mplayer [mediafilename]. Mplayer is a CLI which is a command line interface. If mplayer works, you can then extract the windows codecs from mplayer's site to /usr/local/lib/codecs/. You will have to recompile mplayer to use the Windows codecs. Mplayer gets installed /usr/local because of prefix. You can change this by including --prefix=/usr on the same line with ./configure.

I do not recommend compiling to include GUI because it does not work as well as its CLI and it gives you extra work to get the fonts and skins.
 
Old 07-04-2006, 10:20 AM   #44
jason.rohde
Member
 
Registered: Aug 2005
Location: Chicago
Distribution: RHEL5,CENTOS
Posts: 62

Rep: Reputation: 15
I tried the script above and I got the following. I double checked it against my yum.conf before running, it all matched up. I am not sure what the deal is.

**Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
core [1/3]
ftp://ftp.software.umn.edu/pub/linux...ta/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
core 100% |=========================| 1.1 kB 00:00
extras [2/3]
extras 100% |=========================| 1.1 kB 00:00
updates [3/3]
updates 100% |=========================| 951 B 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 787 kB 00:01
extras : ################################################## 2235/2235
Added 451 new packages, deleted 2277 old in 17.57 seconds
primary.xml.gz 100% |=========================| 483 kB 00:01
updates : ################################################## 1422/1422
Added 70 new packages, deleted 19 old in 5.48 seconds
Parsing package install arguments
No Match for argument: mplayer
No Match for argument: mplayer-gui
No Match for argument: mplayerplug-in
No Match for argument: mplayer-skins
No Match for argument: mencoder
No Match for argument: mplayer-codecs
No Match for argument: mplayer-codecs-extra**

NOTE: Ishould have probably read on, I think I will try what electro said before i freak out over it not working

Last edited by jason.rohde; 07-04-2006 at 10:29 AM.
 
Old 07-04-2006, 10:42 AM   #45
Dummy-in-Linux
Member
 
Registered: Jun 2004
Location: Bangkok, Thailand
Distribution: Fedora 19 86_64
Posts: 355

Rep: Reputation: 32
This error you get because you removed the additional lines in your yum.conf

[greysector-all]
baseurl=http://rpm.greysector.net/yum/all/$basearch/
name=Grey Sector RPMs for all Fedora Core releases - $basearch
#mirrorlist=http://rpm.greysector.net/yum/mirrorlist-all
enabled=1
gpgkey=http://rpm.greysector.net/greysector-pubkey.txt

[greysector]
baseurl=http://rpm.greysector.net/yum/$releasever/$basearch/
name=Grey Sector RPMs for Fedora Core $releasever - $basearch
#mirrorlist=http://rpm.greysector.net/yum/mirrorlist-$releasever
enabled=1
gpgkey=http://rpm.greysector.net/greysector-pubkey.txt

You can edit the yum.conf file to run gedit /etc/yum.conf

Sure you can always follow Electro advice, the step after that is to reinstall Fedora and start over (nothing to do with Electro)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Mplayer & Mplayer GUI simplydc3 Linux - Software 3 06-22-2006 04:01 AM
Installing Mplayer Grisnak Linux - Software 3 07-29-2004 11:25 AM
please, someone , need help installing mplayer snakeo2 Linux - Newbie 1 04-14-2004 11:57 PM
How to install mplayer gui after installing mplayer kaega2 Linux - Software 5 10-07-2003 11:44 AM
hi, help installing mplayer codename000 Linux - Software 11 03-30-2003 10:24 PM


All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration