LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-11-2005, 03:28 PM   #1
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 59
installing xmms (glib..atk...)


i destroy my ubuntu 4.10 install last night and installed the newest 5.10 release thinking this would solve my problem... but no.

i cant get xmms to work.

first thing i tried was to install it from synaptic package manager. of course it installed fine. if i run it from the command line with an input file it doesnt play when i click play
Code:
jordan@ubuntu:~$ xmms whateverMySong.mp3
Error id3.c, line 285: fread() failed
it opens up with the file i supply in the display window for xmms, but doesnt play.

i 'completey uninstall'ed it from synaptic and downloaded the source.
i compiled this and it gave error about gtk so i downloaded that and installed that and it liked that but wanted me to then update glib. now that tells me to install atk-1.9.0 so i have that and try to compile that from source but it says glib isnt installed!

i gotta get to class and can supply details later...

thanks for any help
 
Old 04-11-2005, 03:35 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
first, what glib did you install? did you read the README? gtk will not attempt to compile without glib-1.2.x installed correctly ( xmms uses the gnome-1.x libraries, not 2.x). also, you need to make sure you don't already have the libs installed ( which you probably will since you were using xmms before). doing ./configure, make, make install will only give you headaches if you do it incorrectly. ( check for glib-1.2.x and gtk+-1.2.x ( and the -devel packages) ) that should give you what you need.
 
Old 04-11-2005, 06:48 PM   #3
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
ok thanks for the input...

downloaded glib-2.6.4 and installed that. yes i read the readme for the 3 files i downloaded to install, but basically used ./configure make and make install for all of them.
in synaptic when i search for 'glib' it comes up with the related results, and libglib1.2 (1.2.10-9) is installed (also as glib1.2-dev) and also libglib2.0-0 (2.6.3-1) (and corresponding -data, -dev packages installed too).
when i try and compile gtk (gtk+-2.6.5) it gives this error (truncated) output at the end:
Code:
checking for glib-2.0 >= 2.6.0    atk >= 1.0.1    pango >= 1.8.0... Package atk was not found in the pkg-config search path.
Perhaps you should add the directory containing `atk.pc'
to the PKG_CONFIG_PATH environment variable
No package 'atk' found

configure: error: Library requirements (glib-2.0 >= 2.6.0    atk >= 1.0.1    pango >= 1.8.0) not met; consider adjusting the 
PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
so from this i downloaded atk-1.9.0 and tried to compile and install it from source..
the error it provides is:
Code:
checking for GLIB - version >= 2.5.7...
*** 'pkg-config --modversion glib-2.0' returned 2.6.4, but GLIB (2.6.3)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
configure: error:
*** GLIB 2.5.7 or better is required. The latest version of
*** GLIB is always available from ftp://ftp.gtk.org/. If GLIB is installed
*** but not in the same location as pkg-config add the location of the file
*** glib-2.0.pc to the environment variable PKG_CONFIG_PATH.
i tried searching for glib-2.0.pc and i think i found it in the extracted folder of the glib tarball i downloaded.. i figured it wouldnt have been here though, maybe somewhere in /usr/ or some other folder. i tried exporting this variable to see if that would then help compile but it didnt work, i did something like
Code:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/jordan/glib-2.6.4/glib-2.0.pc
still confused
any help appreciated.. thanks again

edit:
also, when it checks for other required packages and says which are not met but needed, how come it doesnt say "packageName >= 1.0.3 & < 2.x.x" or something like this.. or am i not reading what it displayed earlier properly?

and. i like downloading source files and trying to get them to work rather than using synaptic, because i feel i learn more by doing it this way (still very new, i would say)... dunno if this is a good or bad thing.

i will now download the 1.2.x versions of glib and gtk+ that you suggested (from ftp://ftp.gtk.org/pub/gtk/v1.2/) and try to see if this fixes it.

Last edited by nadroj; 04-11-2005 at 06:55 PM.
 
Old 04-11-2005, 07:06 PM   #4
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
ok i got the 1.2.10 versions of glib and gtk+ and installed from source and they both didnt mention atk for errors. i went ahead and then compiled and installed xmms again and it did. but when i run it again it gives same error when i try to play a song.
 
Old 04-12-2005, 04:14 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
first your library problems, most of the time you never want to "./configure, make, make install" on libraries, either you will need to specify the prefix ( after removing the libs that came with your system ( in other words you want to replace them)) or install them in a completely different prefix and manipulate the relevant PATH(s) to force the system to pick up your new libs instead of the ones that came with your system ( this method is a little harder, and the first one is the better method ( but the second method works good if you want to run things in parallel, for example I have gnome-1.4 and gnome-2.8 installed on the same system so to use 1.4 I have to manually alter the environment)).

Code:
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/jordan/glib-2.6.4/glib-2.0.pc
you have the right idea, but pointing it to the wrong location. all you need is to point it to /usr/local/lib/pkgconfig ( if you do say ./configure --prefix=/opt/gtk, then you point it to /opt/gtk/lib/pkgconfig)

for xmms, I dunno. looks like an id3 tag problem, but I don't know if it's a problem with your libid3tag or xmms or you mp3's. can you play them with say rhthymbox or amarok ( or juk, xine, etc....)?
 
Old 04-12-2005, 09:28 AM   #6
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Original Poster
Rep: Reputation: 59
alright J.. thanks alot bud.
im in wondowz right now so i cant test this out just yet, gotta head off to work and ill try the export command with the path you suggested when i get back.

but to answer your last question, yes i believe iv tried to play mp3s and videos with the default players for ubuntu everytime i have installed the os, and it has always given me an error.. something which more or less means i dont have the plugin for the file to play, i think.
 
Old 04-12-2005, 03:41 PM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
check and see if it has a package like "xmms-mp3", I know some distro's like to do this.
 
  


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
atk and glib woes gosh Linux - Software 3 08-10-2005 12:23 PM
problem installing GLIB>ATK>Overnet salokas Linux - Software 5 06-16-2004 03:57 AM
Pb installing glib, atk, pango, gtk giill Linux - Software 8 11-23-2003 02:25 PM
Installing Glib, ATK, GTK, Pkg Config, and Pango! LinuZ Linux - Newbie 9 10-26-2003 03:58 PM
glib and atk chrismiceli Linux - General 2 02-08-2003 02:10 AM


All times are GMT -5. The time now is 05:42 PM.

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