ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi im kinda new to both linux and C++ but iv been getting along nicely i can program basic programs and run them under my GUI (Which is fedora's eclipse or KDE) and all is good. But when trying to execute the binaries well nothing happens i can click them all day long and nothing happens no errors, no warnings as if i am not even clicking nething at all. (this is for the binaries compiled from both Eclipse and KDE)
I thought maybe its something i hadnt done but under a Windows OS using Dev i make the same program >> build >> and it loads fine under the operating system.
Guess I'll throw out a wild guess, too. Are you trying to execute from perhaps a flash drive mounted by someone other than root? If so, the "noexec" option is implied and nothing can be executed from that location. My money is actually with the terminal comment, but now you have a multiple-choice question.
ta0kira
Hi thank you all for your fast response sorry mine was delayed. Right the execute hadnt been enabled cause i was being a nub and thought it was but now i have another problem (yay). Linux doest know the file type and cant run it, so i did a bit of research and managed to run "file jam" (jam is my files name) in the terminal to get
Quote:
jam: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped
Because some said this helps you find out what type of file you have and what to run it. I have tried looking around the net and still unable to find anything about it.
Any help would be loved
Last edited by Dynam; 09-08-2008 at 06:02 PM.
Reason: Mis type
You'd probably be better off trying to use yum to install jam (yum install jam). it will resolve any dependency issues for you.
Otherwise, just try
yum install glibc
Edit - did I totally misread your post? What are you trying to do? Note that in *nix, file extensions are just part of the name, they don't actually mean anything like they do in Windows where .exe, .com, .bin have quite specific meanings. If you want to use jam, look at the jam site http://www.perforce.com/jam/jam.html
Last edited by billymayday; 09-08-2008 at 06:15 PM.
I assumed "jam" was the OP's own program, in which case, you should just be able to run "./jam", since the current directory is likely not in your PATH.
thank you so much billymayday it is 100% resolved. Thanks for everyone elses help also, its amazing how much nicer linux users are compared to the usual MS kids throwing noob at anyone who isnt a Genius.
Oh did i say thanks :P
Originally no, but i done what billymayday and yum installed jam and as soon as i typed ./jam in the directory where my binary was, BOOM "hello world!!!" it may only be the start but its all i wanted to run the binaries i have been making. I'm now only up to variables and strings but so far im finding this easy as the c++ structure is similar in some places to BASIC, I know basic sux in this day and age but i used to well love it when i was a kid.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.