Q. I have downloaded a file from internet that ends with .bin extension. Documentation says just run bin file. What command I need to type in order to run bin files in Linux.
A. .bin files are Linux self extracting binary files. For example Java or Flash are two examples of these types of file. Just type following two commands to run .bin files:
Run .bin file in Linux / UNIX
Change the permission of the file you downloaded to be executable. Type the following command:
$ chmod +x file.bin
Start the installation process or run .bin file.Type the following command:
./file.bin
For example if .bin file name is application.bin. Type:
$ chmod +x application.bin
$ ./application.bin
Another example for Java Linux self extracting binary file:
# chmod +x jre-1_5_0-linux-i586.bin
# ./jre-1_5_0-linux-i586.bin
Featured Articles:
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- My 10 UNIX Command Line Mistakes
- 10 Greatest Open Source Software Of 2009
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- Top 20 OpenSSH Server Best Security Practices
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Linux Video Editor Software
- Email FAQ to a friend
- Download PDF version
- Printable version
- Comment RSS feed
- Last Updated: 10/8/07



{ 24 comments… read them below or add one }
if that doesn’t work try sudo ./file.bin on debian
or su ./file.bin on other distros
resubmitting to be notified of a reply by email.
Hello ,
I was trying to extract from the java bin file. I could change the mode, but when I say ./filename.bin ( according to your last example), it says file not found although I am just cutting and pasting the file name and it is in the same directory.
[saras@node032 ~]$ chmod +x ./java_ee_sdk-5_05-linux.bin
[saras@node032 ~]$ ./java_ee_sdk-5_05-linux.bin
./java_ee_sdk-5_05-linux.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
[saras@node032 ~]$
can you help please ? thanks
saras
yu need to install libstdc++ package to solve this problem. Use yum under centos/fedora/redhat or apt-get under debian/ubuntu Linux.
Thanks Vivek.
I managed to unzip it. I have a unrelated question on running java on a cluster. Where can I ask the question. I was not sure if I should ask about it here.
saras
Try out forum
while executing a bin file i am getting the message : End-of-central-directory signature not found.
pls help
i get the following erroe while running the ./Googleearthlinux.bin command that is the fllowing
Verifying archive integrity…Error in MD5 checksums: 97ca3ea1d8c49adb873a8a13114463b4 is different from 33fdc468b730cef74ac8f5cc4dc83259
what to do now?
pratik,
Your file is corrupted. Delete current file and download fresh file again.
Hi,
I have a Synology 207+ at home running on Linux and the ARM architecture.
Now I want to install JRE so I can make Jetty run in order to be able to use Java servlets and jsp files in my webpage.
Now when trying to install j2re-1_4_2_19-linux-i586.bin I get an error:
380: /usr/bin/sum: Permission Denied
expr: syntax error
expr: syntax error
Extracting…
./install.sfx.15986: ./install.sfx.15986: 1: Syntax error: “(” unexpected
Done.
What does this mean? I’m not sure if I downloaded the proper JRE. Does someone know how to fix this? thanks
I have to run a UNIX shell script . What command I need to type in order to run UNIX shell files in Linux?
When I normally klik the .bin file it opens with kate (text editor). I have tried to run the command, but it only opens mozilla and types it in the url section. What is wrong? I have installed libstdc++6
Hey guys,
I was trying to install SiteMinder Policy Server on CentOS 5.2. I already chmod+x’d it. As I executed the .bin file I received this error. I have googled it and this error is not mentioned in the install manual. I would appreciate some advise.
Rick Flores
[root@localhost SiteMinder Policy Server]# ./ca-ps-12.0-sp1-linux.bin
Preparing to install…
Extracting the JRE from the installer archive…
Unpacking the JRE…
Extracting the installation resources from the installer archive…
Configuring the installer for this system’s environment…
Launching installer…
‘SWING’ UI not supported by VM. Reverting to AWT.
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:140)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Window.init(Window.java:224)
at java.awt.Window.(Window.java:268)
at java.awt.Frame.(Frame.java:398)
at java.awt.Frame.(Frame.java:363)
at com.zerog.ia.installer.LifeCycleManager.g(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.h(DashoA8113)
at com.zerog.ia.installer.LifeCycleManager.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Hi,
Sometimes you need to change the file name and then install.
Srinivasa.k.p
Hi!
I am new to linux.My situation:
ziga@ziga-laptop:~$ chomd +x./math.bin
ziga@ziga-laptop:~$ /home/ziga/math/…/emlin701/math.bin
bash: /home/ziga/math/…/emlin701/math.bin: cannot execute binary file
What can i do? Is there an option to transform an .bin into an .iso file?
Thanks for your help.
Easier way… Just right click, goto permissions tab, and mark as executable. Then open the terminal and drag & drop the .bin or w/e file into it, and press enter.
Thanks Tesu, heck of a lot easier
Im trying to install java 6.15 so I gave it 100% read write permission to everyone, and it still wont work. when I put $> jre-6u15-linux-i586-rpm.bin it says there is an error, order not found
For ubuntu you can just draw the file into terminal so it has the file location and type command run
Having trouble with trying to set up Java Runtime Environment, in the terminal it says..
Unpacking…
./jre-6u16-linux-i586.bin: 336: cannot create install.sfx.3679: Permission denied
Checksumming…
/usr/bin/sum: install.sfx.3679: No such file or directory
[: 363: -ne: unexpected operator
[: 363: -ne: unexpected operator
chmod: cannot access ‘install.sfx.3679′: No such file or directory
Extracting…
./jre-6u16-linux-i586.bin: 366: ./install.sfx.3679: not found
Failed to extract files.
Any idea on how to fix this??
Make sure downloaded file is not corrupted and you must install it as the root user.
I am trying to install jdk-6u13-linux-i586.bin in fedora 11.
and i am getting this error.
i have performed the steps as mentioned in answer.
please help me..
please enter “yes” or “no”.
Do you agree to the above license terms? [yes or no]
yes
Unpacking…
Checksumming…
Extracting…
./jdk-6u13-linux-i586.bin: ./install.sfx.2551: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
Failed to extract the files. Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.
Thanks
Hi Kunal, did you succeed to install JDK? I have the same problem.
Thanks.
Thanks, now adobe reader is running on my machine.
Thank You
easy to follow instructions. I have been left confused with other explanations