Link to home
Start Free TrialLog in
Avatar of ilovekeat2
ilovekeat2

asked on

how to run BIN file ?

Hi

I intend to install coldfusion mx for linux, but after download its a BIN file.

how to run/execute the bin file format?

or do i need to burn it into CD to make it auto run ???

please advise

thanks
Avatar of Gns
Gns

What does
file <the file><Enter>
tell you?
chmod +x <the file>
./<the file>
might work.

-- Glenn
chmod +x file
sh <file>

^^ I had to do that once or twice.  Gns has the gist of it, though.
My reply is the same as Glenn but just give you example:

$ chmod 755 filename.bin
$ ./filename.bin

Is'nt it true that you should just double click a .bin file in order to execute? Once I double clicked a .bin file and it executed itself and installed everything. Try it.
I've tried and tried double-clicking.... but it doesn't work to good in textmode/terminal emulator:-):-)
Sorry b_vishwajit, I couldn't help myself.
Seriously though, that all depends on a combination of the permissions and the tool used to "browse" the filesystem.

-- Glenn
I c. Thanks for the info Glenn. I remember once I installed quake game using a .bin file. I just double clicked it (yeha you need gui for that otherwise where are you going to click!!!?) I just double clicked and everything worked out fine. But I did not get an option to specify the location for the installation.
to execute a .bin file or any file it has to have its executable bit set true. to see if it is type 'ls -l <file>' you see the permissions on the left hand side, including exec, read, write bits

An example of an executable file permissions: -rwxr-xr-x
An example of non-executable file permissions: -rw-rw-r--
basically you'll notice theres no 'x's in the unexecutable permission example, the x stands for the executable bit. so you'll need to add one. if you want just the user who owns the file to be able to exec it do chmod u+x <file>
if you want everyone to be able to exec it then type: chmod a+x <file>

then you run file as normal. ./<file>

cheers
Now I am confused here....are we mixing up two different bin files here?

There is .bin (as in ISO or .IMG files which are made for backing up cdroms). and binary files. Which are static compiled executables with all **** inside (libs and stuff).

The binary files can be executed by:

(supposed u r in the same directory as the <bin file> and u r root).

chmod +x <bin file>
./<bin file>

and guys plz never say things like "double click" in a linux envirement because it is not the way to deal with linux (a microsoft user who steps over to linux will like to "double click").

greetings,
Mark
ASKER CERTIFIED SOLUTION
Avatar of Gns
Gns

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I made first (probably) correct answer, but as is so often the case, lack of feedback prevents us from determining that it indeed is the right answer:-).

-- Glenn
It is the right answer :-) This site has the instructions: http://www.cfdev.com/mx/cfmx-redhat-8-howto.cfm

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by Gns
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

khkremer
EE Cleanup Volunteer