LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-11-2008, 11:56 PM   #1
Dynam
LQ Newbie
 
Registered: Aug 2008
Location: Mostly in azeroth
Distribution: Fedora 9 X64
Posts: 4

Rep: Reputation: 0
Post C++ Binaries not loading in fedora


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.

Please help

Oh and i have tried reinstalling Linux
 
Old 08-12-2008, 12:09 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you tried launching them from the command line to see if you get any output there?
 
Old 08-12-2008, 02:17 AM   #3
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Has the execution bit of your binary been set?
 
Old 08-12-2008, 04:32 AM   #4
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
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
 
Old 09-08-2008, 06:00 PM   #5
Dynam
LQ Newbie
 
Registered: Aug 2008
Location: Mostly in azeroth
Distribution: Fedora 9 X64
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks (sorry bout the delay)

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
 
Old 09-08-2008, 06:12 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Jam needs glibc installed. Do you have that?

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.
 
Old 09-09-2008, 03:23 PM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.
 
Old 09-11-2008, 05:40 PM   #8
Dynam
LQ Newbie
 
Registered: Aug 2008
Location: Mostly in azeroth
Distribution: Fedora 9 X64
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 09-11-2008, 05:56 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So were you trying to use jam (as in perforce)?
 
Old 09-12-2008, 07:21 PM   #10
Dynam
LQ Newbie
 
Registered: Aug 2008
Location: Mostly in azeroth
Distribution: Fedora 9 X64
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
  


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
distro redhat/fedora based adding my binaries and scripts? aot2002 Fedora 1 02-04-2008 06:39 PM
Fedora 6 not loading Seeds Linux - Hardware 3 03-03-2007 07:31 PM
Where do I install binaries in Fedora cuco76 Fedora 2 10-12-2006 08:43 PM
fedora binaries compatibility with RH9 demmylls Linux - General 0 12-18-2003 01:50 PM
Finding Module Dependencies...(Still loading...still loading..still loading..HANG!!!) Aeudian Linux - General 3 08-11-2003 03:31 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:51 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