The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to use a .exe with a compiled program. adamsy High Level Programming 1 10-04-2005 12:03 AM
Why my code couldn't be compiled endeavour1985 High Level Programming 4 02-23-2005 12:18 AM
Compiled Compiler AJA UNIX for Dummies Questions & Answers 3 11-10-2003 01:39 PM
Compiled Files tripp4337 UNIX for Advanced & Expert Users 2 09-13-2003 02:23 PM
Running a compiled Program Krebsbac High Level Programming 2 09-07-2001 04:39 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-27-2006
kumarangopi kumarangopi is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 16
cannot run c compiled programs

iam in the way of making graphics using SDL.i copied from cd usign
mount -a /cdrom
cd /cdrom
cp SDL-1.2.11.tar.gz /usr/test
cd /usr/test
gunzip SDL-1.2.11.tar.gz
tar -xf SDL-1.2.11.tar
cd SDL-1.2.11
./configure
...
...
it stops at
checking whether the c compiler works...configure:error:cannnot run c compiled programs
if you meant to cross com[pile,use --host
see config.log

what to do now?it was working perfectly ..suddenly i dont what happen,please help me

-its in freebsd
  #2 (permalink)  
Old 11-28-2006
sumitpandya sumitpandya is offline
Registered User
  
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 125
post that log

Make sure that C-Compiler location is there in PATH.
Also you can try adding "." in your PATH. PATH=$PATH:. ; export PATH
  #3 (permalink)  
Old 11-28-2006
kumarangopi kumarangopi is offline
Registered User
  
 

Join Date: Nov 2006
Posts: 16
permission denied

thanks for the reply but it says permission denied.i typed 'su' n tried again
PATH=$PATH;.; -> It says permission denied
Now i came to know that gcc is not creatinge a.out well.when i try to run a.out it says segementation fault(core dumped).what should i do now.help me
  #4 (permalink)  
Old 11-28-2006
sumitpandya sumitpandya is offline
Registered User
  
 

Join Date: Mar 2006
Location: Ahmedabad
Posts: 125
You making mistake....
You sure you trying PATH=$PATH:. ; export PATH and NOT PATH=$PATH;. ; export PATH . There is difference of ":" and ";"
If it still not work then...
If you can manage then better you reinstall your O.S. There is high possibality of system curruption either due to Device-failure or it might be some hackers play-ground for now!!!

One lession for you is Be carefull while working in *NIX or BSD world; It is not M$ Windows :-)
  #5 (permalink)  
Old 03-13-2009
rene_metaal rene_metaal is offline
Registered User
  
 

Join Date: Jul 2002
Posts: 24
I know the message is very old but just for others looking for a solution....

I ran into this problem too. :-/
In my case it was the way I mounted my sw (software) filesystem.
Using the noexec or user option. The latter also implies noexec. See the manpage of the mount command.

Have a nice day
René
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:19 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0