LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   installing xmms (glib..atk...) (https://www.linuxquestions.org/questions/linux-newbie-8/installing-xmms-glib-atk-312114/)

nadroj 04-11-2005 02:28 PM

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

__J 04-11-2005 02:35 PM

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.

nadroj 04-11-2005 05:48 PM

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 :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.

nadroj 04-11-2005 06:06 PM

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.

__J 04-12-2005 03:14 AM

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....)?

nadroj 04-12-2005 08:28 AM

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.

__J 04-12-2005 02:41 PM

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


All times are GMT -5. The time now is 08:15 PM.