LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Extracting bin files (https://www.linuxquestions.org/questions/linux-newbie-8/extracting-bin-files-213177/)

julienroger 08-04-2004 01:37 AM

Extracting bin files
 
Hello all.
I've been using Linux for about 2 hours, and I have a question. (Please excuse me if it sounds like a stupid question.)
I have downloaded the Java2TM Runtime Environment, v 1.3.1, and in came in bin format. I have no idea how to extract theses fines on linux. I tried a lot of the software that came with RedHat 7.3, but with no success.
I have read some files and other forums, but they haven't helped.
Any suggestions would be welcome. Thanks.
Julien

dawood 08-04-2004 01:55 AM

hi,
Just type this command, it may work
./ur-bin-file-name.
It should be dot(.)and slash (/) before ur bin file name

julienroger 08-04-2004 02:04 AM

When I do, it gives me:
Code:

bash: ./j2re-1_4_2_05-linux-i586.bin: /bin/sh: bad interpreter: Permission denied

Longinus 08-04-2004 06:25 AM

try doing:

chmod 777 filename

and then try to run it

a real ninja 08-04-2004 07:44 AM

Extracting bin files
 
Open up a terminal, then type chmod a+x j2re-1_3_1-linux-i386-rpm.bin; ./j2re-1_3_1-linux-i386-rpm.bin note please use the name of your bin file if different from this one
Next go superuser like su -, then your superuser password,
Next type -c "rpm -Uvh jre-1.3.1.i386.rpm. Of course this only works if you are using a distro with needs for rpms

good luck ;)

julienroger 08-04-2004 08:19 PM

Ok, great thanks a real ninja, and everyone else who helped, I got it extracted. But I'm not sure if I did it right. I still can't use 'Java' as a command. A programme I am trying to install (Limewire) requires that I type the command 'java -jar LimeWire.jar'.

Tinkster 08-04-2004 09:00 PM

There's quite a few posts about java and PATH around.
Have a search. Basically it comes down to the fact that
the install doesn't create any settings.



Cheers,
Tink

julienroger 08-05-2004 12:09 AM

Thanks Tinkster. I got it working perfectly. Thanks to everyone.
-Julien

anjanesh 09-05-2004 08:42 AM

Hi
Extremely new to Linux.
Where can I find basic info on extraction (exp bin files) - like commands etc.
Guess this is no where like Winzip so I goto find commands for all these.
Thanks

scuzzman 09-05-2004 09:00 AM

*.tar.gz: tar -xzvf FILENAME
*.tgz: tar -xzvf FILENAME
*.tar.bz2: tar - xjvf FILENAME
*.bin: chmod 777 FILENAME; ./FILENAME
*.rpm: rpm -i FILENAME

anjanesh 09-06-2004 12:53 AM

I believe FILENAME stands for source filename.
Where can we install to ? - Destination folder ?

scuzzman 09-06-2004 05:23 AM

With the exception on *.bin and *.rpm, the rest of these are compiled from source code. see this article in our LinuxAnswers section.

As for *.bin, well, you've got that. Look up there ^. As for *.rpm, it's a binary, and as long as you get the right file for your distro, it'll just go to the right place.

anjanesh 09-08-2004 12:19 PM

sh
 
I got a sh file for downloading.
Is it a compressed file ?
If so how do I extract it ?

tuxrules 09-08-2004 01:28 PM

see this

Superganja23 09-12-2004 08:45 PM

Hi;

I've tried to do chmod 777 filename.bin; ./filename.bin but I get an error saying:

chmod: failed to get attributes of 'aman.bin': no such file or directory
bash: ./aman.bin: no such file or directory

What is the matter? I am using Mandrake 9.1 and the 'aman.bin file is on the desktop.

What is wrong?:scratch:
Superganja23


All times are GMT -5. The time now is 03:37 PM.