LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-11-2010, 09:58 AM   #1
MWH
LQ Newbie
 
Registered: Dec 2009
Location: Colombo(SL)
Distribution: Fedora10 and 12
Posts: 22
Blog Entries: 3

Rep: Reputation: 0
Cool How to make a bin file an executable?


I have downloaded google earth in a bin file but I don't know how to convert it into an executable file. Can someone please answer my problem?
 
Old 03-11-2010, 10:06 AM   #2
rn_
Member
 
Registered: Jun 2009
Location: Orlando, FL, USA
Distribution: Suse, Redhat
Posts: 127
Blog Entries: 1

Rep: Reputation: 25
chmod +x filename
 
Old 03-11-2010, 05:22 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Do a ls -l to see before and after.

Might have to use it under su or sudo and put a ./ before the bin file.
 
1 members found this post helpful.
Old 03-12-2010, 07:53 AM   #4
MWH
LQ Newbie
 
Registered: Dec 2009
Location: Colombo(SL)
Distribution: Fedora10 and 12
Posts: 22

Original Poster
Blog Entries: 3

Rep: Reputation: 0
K thanks

Thanks Jefro I got it. "M_" I don't know, your way is not working. After I give the command on the terminal, it automatically comes to the usual "[WOT@DINN]$" line and nothing happens.
 
Old 03-12-2010, 08:05 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by MWH View Post
Thanks Jefro I got it. "M_" I don't know, your way is not working. After I give the command on the terminal, it automatically comes to the usual "[WOT@DINN]$" line and nothing happens.
If you enter "chmod +x filename", you will not see any feedback. That's why you need "ls -l" to verify. Example:
Code:
[mherring@Ath stuff2]$ ls -l
total 4
-rw-r--r-- 1 mherring users 200 Mar 11 19:43 alphlink
[mherring@Ath stuff2]$ chmod +x alphlink
[mherring@Ath stuff2]$ ls -l
total 4
-rwxr-xr-x 1 mherring users 200 Mar 11 19:43 alphlink
[mherring@Ath stuff2]$
 
Old 03-14-2010, 09:55 AM   #6
MWH
LQ Newbie
 
Registered: Dec 2009
Location: Colombo(SL)
Distribution: Fedora10 and 12
Posts: 22

Original Poster
Blog Entries: 3

Rep: Reputation: 0
Smile Method to make an executable

Quote:
If you enter "chmod +x filename", you will not see any feedback. That's why you need "ls -l" to verify.
Thanks Pixellany for showing me my mistake. Actually first of all what I did was entering chmod +x <file_name> and when I saw there is no feedback I tend to do Jefro's method. So even though I thought earlier it did not work, I have entered ./<file_name> after that so then the executable was created.

So correct me if I am wrong ,

to make an executable from a bin file

1.type chmod +x <filename>
2.then type ls -l to verify
3.then type ./<file_name> to create the executable,

in terminal.
 
Old 03-14-2010, 10:11 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Step 3 RUNS the executable file...

When a file is first created (assuming that it is intended to be an executable) it will have the required code.
chmod only sets the flags so that the system will allow the file to be executed.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash/bin file wont executable, possible not the correct rights setup. Dutch2005NL Linux - Newbie 8 11-17-2008 01:50 AM
how to make any file executable kratosal Linux - Newbie 8 04-08-2008 03:50 AM
Howto convert bin file to a executable DOS file lilzz Linux - Newbie 5 08-04-2006 12:03 AM
How to make a bin file executable and install the prgram shariqali Linux - Software 6 03-29-2006 01:11 PM
I accidentally deleted make file in /usr/local/bin, now cannot use make command.... Niceman2005 Linux - Software 2 11-17-2004 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration