|
From: blucalvin <blu...@gm...> - 2010-09-01 15:30:20
|
Hi,
It was my mistake that I didn't know that tuxmath could be run from anywhere
once installed. Writing and compiling codes for C, it was implemented in my
mind that once compiled, by default, the a.out will be in that directory
itself. But thanks, it works from anywhere.
On 1 September 2010 18:36, David Bruce <dav...@gm...> wrote:
> Hi Haris,
>
> On Tue, Aug 31, 2010 at 10:12 PM, blucalvin <blu...@gm...> wrote:
> > However, a
> > small issue I had last time has still not been fixed. It is that the
> audio
> > isn't working.
> >
> > The following is the error message that came:
> >
> > {
> > haris@lorien:~/Desktop/tuxmath/build/src$ tuxmath
>
> >Why are you running this from the src directory? If you have done
> >"sudo make install", you should be able to just type "tuxmath" from
> >any location and it should work.
>
> > Error: I couldn't load a music file:
> > /usr/local/share/tuxmath/sounds/game.mod
>
> >Does that file exist? I see below that at least the directory
> >/usr/local/share/tuxmath/sound exists, so I think you have run "sudo
> >make install".
>
> I have run "sudo make install". But still the music isn't playing.
> > The Simple DirectMedia error that occured was:
> > Unrecognized music format
>
> >Maybe you don't have all the needed libraries.
>
Which libraries' absence might be causing it?
>
> > And there is no sound while the game is working. Maybe the installation
> got
> > screwed up. Suppose if I wish to reinstall, how can I uninstall tuxmath?
> > Will it be enough to delete the temporary "build" directory?
>
> >If you run "sudo make uninstall" from the build dir, it will remove
> >every file installed by "sudo make install"
>
I tried "sudo make uninstall" from the build directory. The command
"tuxmath" works no more. But the files in /usr/local/share/tuxmath are still
there. The fonts, sounds, etc.
> > There are files and folders in /usr/local/bin from where I can run
> tuxmath.
> >
> > {
> > haris@lorien:/usr/local/bin$ ls
> > autopoint gettextize msgcmp msgexec msginit ngettext
> > tuxmathserver xmlcatalog
> > envsubst gettext.sh msgcomm msgfilter msgmerge
> recode-sr-latin
> > tuxmathtestclient xmllint
> > generate_lesson msgattrib msgconv msgfmt msgunfmt tuxmath
> > xgettext
> > gettext msgcat msgen msggrep msguniq tuxmathadmin
> > xml2-config
> > }
>
> >It looks like you installed a lot of the tools locally with
> >"./configure; make; sudo make install" (because they are in
> >/usr/local/bin rather than /usr/bin), rather than with apt-get. I
> >would strongly suggest using the versions from your package manager as
> >much as possible, as it is less error-prone. The one exception is
> >that you need gettext-0.18, which is not yet in Ubuntu, but I
> >mentioned earlier how you can add it to your system.
>
I first tried "apt-getting". But it said "Couldn't find packages". That's
why I build the required ones from source. And I installed gettext-0.18 as
you had advised me to. I had installed SDL_mixer, etc, when the error
message came during "make" that the required SDL_mixer was not found.
Apt-get didn't fetch it. So instead I went to the site shown in the terminal
and built it from source. Will sudo make uninstall, uninstall the packages I
installed from source? But unlike the "build" directory in tuxmath, this has
got no "build" directory. So from where can I run sudo make uninstall if
that's the way to do it?
>
> Packages added to your system via the package manager can be easily
> updated automatically as new versions become available.
>
> hth,
>
> David
>
Thanks for helping me through this with such patience.
Haris.
|