Re: binary file not running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/10/2011 10:06 PM, Joe Zeff wrote:
> On 08/10/2011 08:57 PM, shailesh wrote:
>> #include<stdio.h>
>> int main()
>> {
>> printf("hello");
>> return 0;
>> }
>>
>>
>> [tommy@tommy cprog]$ gcc hello.c
> chmod o+x a.out
>> [tommy@tommy cprog]$ ./a.out
>> bash:./a.out : Permission denied
On F14 x86-64 (more info on request):

[paul@yoyo ~]$ vim hello.c
[paul@yoyo ~]$ more hello.c
#include<stdio.h>
int main()
{
printf("hello");
return 0;
}

[paul@yoyo ~]$ gcc hello.c
[paul@yoyo ~]$ ls -F a.out
a.out*
[paul@yoyo ~]$ ls -Falt a.out
-rwxrwxr-x. 1 paul paul 6435 Aug 10 22:32 a.out*

I am seeing a gcc make a.out a+x ... unless I am mistaken, we should be 
asking why isn't OP ???

Paul

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux