LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-05-2014, 06:14 AM   #1
koleygr
LQ Newbie
 
Registered: May 2014
Posts: 4

Rep: Reputation: Disabled
run an executable file on fresh debian 7 installation


Hi,
i am not exactly so much newbye but i have used ubuntu and
Red Hat for some years... I just installed a Debian 7 on both my computers and now
i cant even run the the executable files i have created under Qt.
Also qt crator have been succesfully installed but doesnt have option tu compile and run my applications.

The error message is "No application to run "executable"

I know it must be something simple but can't find it

Thank you forword
 
Old 05-05-2014, 11:49 AM   #2
ProtossPn
Member
 
Registered: Dec 2013
Location: /dev/Paracin
Distribution: Fedora 20
Posts: 31

Rep: Reputation: Disabled
You must first build/compile application before you can run it.
 
Old 05-05-2014, 11:53 AM   #3
koleygr
LQ Newbie
 
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you for the reply... but the application is already built... i cant run any executable... not even the installer of Qt that is a compiled and executable application.

And the permisions are ok

Last edited by koleygr; 05-05-2014 at 11:55 AM.
 
Old 05-05-2014, 11:56 AM   #4
ndc85430
Member
 
Registered: Apr 2014
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
How are you trying to run these executables? Have you tried running them from a terminal?
 
Old 05-05-2014, 12:02 PM   #5
cin_
Member
 
Registered: Dec 2010
Posts: 277

Rep: Reputation: 24
PATH

Perhaps your executable is in some folder that that has been left out of your $PATH and so the system is unable to find the program when you try to run the program

Code:
# $PATH
will print out the $PATH variable that tells where executables are located

http://www.linfo.org/path_env_var.html

is your executable in one of these folders?

if you need to append new folders to PATH you can run

Code:
# PATH=$PATH:/dir/to/executable
but change will end when you end the session you typed it into, for a more permanent solution add the above command to either your /etc/profile or /home/.bashrc or your preferred initialization script

better than appending endless strings of directories onto your path it would be best to collect all executables into a single folder and add the one folder to your path:

Code:
# cp ./executable /home/USER/commands/
# echo "PATH=$PATH:/home/USER/commands">>/home/.bashrc

Last edited by cin_; 05-05-2014 at 12:03 PM. Reason: gramm`err
 
Old 05-05-2014, 01:40 PM   #6
koleygr
LQ Newbie
 
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
I moved the file in my home...
I can see it with ls and the ./myfile gives
"bash: ./myfile: cannot execute binary file"

Last edited by koleygr; 05-05-2014 at 01:42 PM.
 
Old 05-05-2014, 01:45 PM   #7
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Have the files permissions been set as executable? What is the output of
Code:
ls -l ~/myfile
jdk
 
Old 05-05-2014, 01:46 PM   #8
cin_
Member
 
Registered: Dec 2010
Posts: 277

Rep: Reputation: 24
windows or mac or format binary?

checking the 'executable' permission is a good suggestion.. if the binary is executable

you could be trying to run a corrupted binary: in which case you would need to recompile the binary from source or reinstall the package from your distro's package manager,

or you could be trying to run a binary that is incompatible with your system...
are you sure the binary is linux compatible?
is the binary a file format for a parent program? ie, .ODS, .WAV, .PDF, etc

Last edited by cin_; 05-05-2014 at 01:57 PM. Reason: gramm`err
 
Old 05-05-2014, 02:05 PM   #9
koleygr
LQ Newbie
 
Registered: May 2014
Posts: 4

Original Poster
Rep: Reputation: Disabled
i managed to run another binary: the installer of qt creator...
the problem probably was that the first one was made on a 64bit desktop
and i was trying to run it on my netbook 32 bit...

thank all af you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Make a file executable and then run mostafaashish Linux - Newbie 7 02-20-2014 05:34 AM
can executable file run on different Linux os? why_so_serious Linux - Newbie 9 02-17-2014 03:32 PM
Can't run an executable file dungnguyen Linux - Newbie 7 07-02-2012 12:00 PM
Run an executable file ( created from Qt) post installation (linux/redhat). udaypratapyati Linux - Newbie 2 02-26-2011 01:19 AM
[SOLVED] Using variable to run an executable file mahmoodn Linux - General 3 05-27-2010 06:17 AM


All times are GMT -5. The time now is 01:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration