PDA

View Full Version : Installing .bin files in Linux?



G
October 12th, 2004, 09:47 AM
Does anyone know how this is done? I've installed the java RPM file but how do you install the .bin file, I'm guessing its from terminal.

Any help appreciated :)

G
October 12th, 2004, 10:05 AM
well i know how to do it now type in sh file.bin ........but its not fixed by problem!

I thought installing the .bin file would get rid of the rror I get when I try to compile java scripts in Terminal using the javac command. When I type in this command I get a bash error, what does this mean? and is there a way to activate java in terminal?

cheers people.

λ
October 12th, 2004, 11:21 AM
Ok, if the bash error is '-bash: javac: command not found', then it means that bash cannot find the binary javac. Basically, there's a variable called $PATH,which is a : separated list of directories. They determine where bash should search for binary files. If $PATH is '/usr/bin/:/bin:/foo', and you type in 'foo', then bash does this:
- try to run /usr/bin/foo
- if that fails, try running /bin/foo
- if that fails, try running /foo/foo
- if that fails, say '-bash: foo: command not found'.

Your problem is that the directory containing javac is not in $PATH.

Here's how you can fix it (take the name of the java RPM to be java-foo-1.4.2.i386.rpm). The lines after $s are the lines you should type in:



$ `rpm -ql java-foo.rpm | grep javac`
(shouldn't give a command not found error)
$ export PATH=$PATH:`rpm -ql java-foo | perl -pi -e 's#((/[A-z]+)+/)javac#\1#'
$ javac
(shouldn't give a command not found error)

If this doesn't work, post the output of `rpm -ql java-foo' and I'll see if I can help you more :)

G
October 12th, 2004, 04:08 PM
thanks for that njs12345 but I really have no idea how to follow what you said, I have the same feeling with Linux today as I had with Flash when I first used it.


Is there a chance you could PM me with a more simple (its hard to believe) of commands I have to do?

Cheers anyway bud :)

λ
October 12th, 2004, 04:18 PM
Add me to MSN (njs12345@hotmail.com) or AIM (njs54354) :)