Tux Guitar

Problems

Subject Getting It To Run - Puppy Linux



Author Message
mccleur
Post: Jun 12th 2008 at 6:02 AM

So I just got Puppy Linux. It runs like a dream but the only thing I miss is using Powertab like on Vista. So I downloaded this program, got it installed but now the files tuxguitar and tuxguitar-1.0-rc4.desktop do nothing when I click them or double click them. Help on getting it to run please?


Back to Top
 
Julian
Post: Jun 12th 2008 at 11:04 AM

Hi,
what package did you download ??
the only package (of all we distribute) what have a .desktop file is the ubuntu .deb package
I'm not sure about if pupy linux support pkg or not. but you maybe downloaded the incorrect package.
by other hand, if you open a .desktop file with a text editor, there should be an item called "Exec="
See the command at the right of "Exec=", and try to manually run on a terminal.
then paste here the error log.


Back to Top
 
Anonymous
Post: Jun 12th 2008 at 3:12 PM

Alright well I'm in technology class right now so I can't run Linux without getting in trouble but I'll try it in when I get home. I downloaded the third one down from the top for Linux. The x86 installer.


Back to Top
 
mccluer
Post: Jun 12th 2008 at 11:20 PM

Okay so I tried and absolutely nothing happened. I'm supposed to type in "Exec=/opt/tuxguitar-1.0-rc4/tuxguitar" right?


Back to Top
 
Julian
Post: Jun 12th 2008 at 11:38 PM

Do not exec this:
Exec=/opt/tuxguitar-1.0-rc4/tuxguitar

"Exec" is the name of the .desktop item.

you should exec:
/opt/tuxguitar-1.0-rc4/tuxguitar


Back to Top
 
mccleur
Post: Jun 12th 2008 at 11:54 PM

Okay here's the message I get.
/opt/tuxguitar-1.0-rc4/tuxguitar: line36: java: command not found

So is there something wrong with Java?


Back to Top
 
Auria
Post: Jun 13th 2008 at 12:16 AM

It seems like you do not have java - try installing it


Back to Top
 
mccleur
Post: Jun 13th 2008 at 12:34 AM

I just installed it but I still get the same message.


Back to Top
 
Julian
Post: Jun 13th 2008 at 10:27 AM

try on a terminal: java -version
does it works ?


Back to Top
 
mccleur
Post: Jun 14th 2008 at 1:49 AM

How do I know my version number?


Back to Top
 
Julian
Post: Jun 14th 2008 at 1:18 PM

my previous post was for that:
java -version

should return you your java version.

if it return: "command not found" or something like, is because you don't have java installed, or it isn't at your env PATH.


Back to Top
 
mccleur
Post: Jun 15th 2008 at 6:31 AM

Okay that's what came up. What do you mean it's not in my env path? Sorry to be such a bother but I'm a Linux noob.


Back to Top
 
Julian
Post: Jun 15th 2008 at 1:30 PM

When you exec a command, for example:
su any_user

the "su" command works, because it's on any PATH folder.
if it's not at PATH, it may not work..
so you should specify the full path of it:
/bin/su any_user

the PATH env var is a " : " separated list of folders.
to see the result exec:
echo $PATH

if you have java installed on a folder what is not at PATH, so when you exec "java" command, it will not work.
you can exec:
java [arguments]
Or
/where_is_java/java [arguments]

As i don't have idea how your downloaded tuxguitar package was builded, i'm not sure how the launcher script works.
if it's similar to the official packages, you are able to specify the java path:
export JAVA=/where_is_java/bin/java
/opt/tuxguitar-1.0-rc4/tuxguitar

otherwise, you can do:
export PATH=$PATH:/where_is_java/bin
tuxguitar


Back to Top
 
mccleur
Post: Jun 15th 2008 at 5:57 PM

So I tried all those commands and for the most part I got
bash: java: command not found
until i tried the last one the export didnt give a reply and when i typed tuxguitar i got
bash: tuxguitar: command not found


Back to Top
 
Julian
Post: Jun 15th 2008 at 9:52 PM

sorry, i forgot to say
on tuxguitar it's the same PATH case..
you have it at "/opt/tuxguitar-1.0-rc4/"
So execute it as:
/opt/tuxguitar-1.0-rc4/tuxguitar

instead of "tuxguitar"

By the way first check java..
java: command not found, means it's still out of PATH.
so...
where did you installed java ???
and how did you do the "export PATH=$PATH:blabla" line ?


Back to Top
 
mccleur
Post: Jun 17th 2008 at 5:43 AM

java is installed in /root/jre-1.6.0_06
is that a problem?
i tried the /opt/tuxblabla and got the line 36 again
i typed it exactly as you did


Back to Top
 
Julian
Post: Jun 17th 2008 at 10:59 AM

mm, it's not a good idea install applications/libraries on the /root user folder.
however, try this (make sure to do all on same terminal):

export PATH=$PATH:/root/jre-1.6.0_06/bin

Only to test:
java -version

if the test worked, now try:
/opt/tuxguitar-1.0-rc4/tuxguitar


I think you should consider move java from /root to other folder ( maybe /opt )


Back to Top
 
mccleur
Post: Jun 18th 2008 at 5:09 AM

the test didnt work
do you mean moving the .bin file to /opt?


Back to Top
 
Julian
Post: Jun 18th 2008 at 12:26 PM

> the test didnt work
try please write the error logs here..
it didn't work, but it can be for a lot of different reasons.
what line didn't work ?

> do you mean moving the .bin file to /opt?
What i mean, is you have installed java on your /root folder.
/root folder, is the root user home. it's not recommended to use that folder to install applications/libraries as it's not recommended login as root user.
try move all /root/jre-1.6.0_06/* to /opt/jre-1.6.0_06/*


Back to Top
 
mccleur
Post: Jun 19th 2008 at 5:38 AM

Okay so I just reinstalled Java. It is installed for sure now and I installed tuxguitar and when I try to run it in the terminal I get the command
/opt/tuxguitar-1.0/tuxguitar: line 36: java: command not found

The problem seems to be tuxguitar.


Back to Top
 
Julian
Post: Jun 19th 2008 at 11:02 AM

How are you installing java ?
While you get "java: command not found", is because you have something wrong on java installation.

Did you exec this ?
export PATH=$PATH:/root/jre-1.6.0_06/bin
java -version

What was the result of that lines ?


Back to Top
 
mccleur
Post: Jun 19th 2008 at 5:56 PM

well im in school again but i know that java is saved in the directory
/usr/Java
is it being in that directory the possible problem?


Back to Top
 
Julian
Post: Jun 19th 2008 at 6:19 PM

No, the problem is not where is it.
the problem is you need have it at PATH.
if java command isn't at /usr/bin, /usr/local/bin etc.
when you exec "java" you'll get allways command not found
what you need is expand the PATH to the java_folder/bin (or otherwise make symbolic links of java binaries to /usr/bin )

But you should show me the results of the lines i put here.
forget about tuxguitar now.
what we need is this working:
java -version

Try show me the exactly path of your java.
if you think it's at /usr/Java, so try go to that folder
and show me the content of that folder:
ls /usr/Java

Warning: are you sure is "Java" insteadof "java" ?? for the PC "a" and "A" are different things.
so if it's not /usr/Java, check
ls /usr/java


Back to Top
 
mccleur
Post: Jun 20th 2008 at 1:08 AM

Okay I typed in
ls /usr/Java
and got
jre1.6.0_06
And I'm sure it's Java.


Back to Top
 
Julian
Post: Jun 20th 2008 at 10:29 AM

Ok, try execute
/usr/Java/jre1.6.0_06/bin/java -version

if it don't throw "Command not found" try:

export JAVA_HOME=/usr/Java/jre1.6.0_06
export PATH=$PATH:$JAVA_HOME/bin
/opt/tuxguitar-1.0/tuxguitar


Back to Top
 
mccleur
Post: Jun 20th 2008 at 10:21 PM

So I did the version thing and got the version.
Then I did the exports and TuxGuitar is running. Will I have to do this every time from now on?


Back to Top
 
Julian
Post: Jun 20th 2008 at 10:33 PM

Yes if you don't configure nothing.

but you can add symbolic links:
ln -s /usr/Java/jre1.6.0_06/bin/java /usr/bin

After add that link to /usr/bin, you should be able to exec:
java -version

Another option is by editing "/opt/tuxguitar-1.0/tuxguitar" with any text editor and set the correct path to java
But ofcourse, depending what have the file, maybe it's not so easy if you don't know about script files.


Back to Top
 
mccleur
Post: Jun 20th 2008 at 11:43 PM

Okay to what directory should I create the symbolic link? And if I can follow directions well so if you tell me what to do I can do it.


Back to Top
 
Julian
Post: Jun 20th 2008 at 11:58 PM

Is this line:
ln -s /usr/Java/jre1.6.0_06/bin/java /usr/bin

Just exec that line (As root), and all should be ok.


Back to Top
 
mccleur
Post: Jun 21st 2008 at 2:26 AM

Okay I'll do that.. So while tuxguitar was open it crashed but I forgot to get the error message (d'oh!). And when I finally get it running how do I get files to open automatically with it once I download it?
I did that command and tried the
java -version
command and got
bash: java: command not found


Back to Top
 
Julian
Post: Jun 21st 2008 at 1:23 PM

show me the result of this 2 commands please:

ls /usr/Java/jre1.6.0_06/

ls -ll /usr/bin | grep java


Back to Top
 
mccleur
Post: Jun 21st 2008 at 6:12 PM

For the first one I got
bin javaws LICENSE plugin THIRDPARTYLICENSEREADME.text
COPYRIGHT lib man README Welcome.html

For the second one I got
nothing happens assuming those two first letters are l's that that is a line like this one | between bin and grep.


Back to Top
 
Julian
Post: Jun 21st 2008 at 7:45 PM

but did you exec?
ln -s /usr/Java/jre1.6.0_06/bin/java /usr/bin


Back to Top
 
mccleur
Post: Jun 22nd 2008 at 4:51 AM

I just tried and got
ln: creating symbolic link `./bin': File exists


Back to Top
 
Julian
Post: Jun 22nd 2008 at 12:57 PM

mmm. that should don't happen

try exec it as:
ln -s /usr/Java/jre1.6.0_06/bin/java /usr/bin/java


Back to Top
 
mccleur
Post: Jun 22nd 2008 at 5:47 PM

Okay I exec it but nothing happened in the terminal. What results should I be looking for?


Back to Top
 
Julian
Post: Jun 22nd 2008 at 5:51 PM

if there are no results, seems there are no errors.
so, just try again
java -verion

if it works, so all is ready


Back to Top
 
mccleur
Post: Jun 22nd 2008 at 6:01 PM

Alright so java -version works. Should I try tuxguitar again?


Back to Top
 
mccleur
Post: Jun 22nd 2008 at 6:04 PM

Tuxguitar is working now thanks =]. But when I try to play a song I get MIDI system is unavailable.


Back to Top
 
Julian
Post: Jun 22nd 2008 at 6:09 PM

"MIDI system is unavailable" is a known problem of java.
see at:
http://tuxguitar.com.ar/tgwiki/doku.php?id=doc:error_midi_unavailable_linux

If you can't solve it, please try to open another topic ( or see for any existent with that problem )


Back to Top
 
mccleur
Post: Jun 22nd 2008 at 6:17 PM

Okay I fixed it. Thanks for all of your help.


Back to Top