You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/Q6Ed3hfRQag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/Q6Ed3hfRQag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/Q6Ed3hfRQag/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.
No chmod needed *IF* you precede the command with a dot slash "./". So when you run a regular Linux command do you have to type this dot slash ? No because chmod +x is run on the executable at some point . . .So be nice to fellow group users who actually know what they're talking about, and have been on this list a lot longer than you.
Im guessing that perhaps gcc's -o option now days enables the executable bit on the output file ? I haven't looked into that however.
Nothing at all to do with gcc, reread what I already posted...
On Mar 25, 2016 8:03 PM, "William Hermans" <yyr...@gmail.com> wrote:
>
> william@beaglebone:~/ti$ gcc test.c -o test
> william@beaglebone:~/ti$ test
> william@beaglebone:~/ti$ ./test
> 32.540001
>
> william@beaglebone:~/ti$ sudo ln -s /home/william/ti/test /usr/bin/test
> william@beaglebone:~/ti$ test
> william@beaglebone:~/ti$ cd ..
> william@beaglebone:~$ test
> william@beaglebone:~$ sudo test
> 32.540001
>
> So, it's a permissions issue. . .
chmod +x test
Regards,
chmod +x test
Regards,
--
william@beaglebone:~/ti$ gcc test.c -o testSo, it's a permissions issue. . .
william@beaglebone:~/ti$ test
william@beaglebone:~/ti$ ./test
32.540001
william@beaglebone:~/ti$ sudo ln -s /home/william/ti/test /usr/bin/test
william@beaglebone:~/ti$ test
william@beaglebone:~/ti$ cd ..
william@beaglebone:~$ test
william@beaglebone:~$ sudo test
32.540001
So be a little bit clearer for you folks that are wondering what's going on. ~/ti for william on this system is the mount point for an NFS share. Both machines have user william, but it is possible that the UID for each is different. I've run into this problem before, and it creates all sorts of strange behavior. So, I'll write a simple hello world executable locally, in tmpfs . . .
Careful. '/usr/bin/test' is often a real program for
shells that don't have builtin 'test'. Which you just
overwrote.
I had no idea . . . good thing this is a test image - heh. Thanks Peter :)Careful. '/usr/bin/test' is often a real program for
shells that don't have builtin 'test'. Which you just
overwrote.
--
hi eeveryone,does the BeageleBone Black have a C compiler ?????i want to controle a step by step motor using BBB with C language , and i'm wondering if the BBB has an integrated C compiler
william@beaglebone:~/ti$ gcc test.c -o test
william@beaglebone:~/ti$ test
william@beaglebone:~/ti$ ./test
32.540001
william@beaglebone:~/ti$ sudo ln -s /home/william/ti/test /usr/bin/test
william@beaglebone:~/ti$ test
william@beaglebone:~/ti$ cd ..
william@beaglebone:~$ test
william@beaglebone:~$ sudo test
32.540001
So, it's a permissions issue. . .