|
Page 6 of 6 |
|
Prev |
4 5 6
|
Re: [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...
Quote:
I'm not well versed in linux, but anyway this is what i tried: /media/mmc1/docs/cisp 360 # chmod a+x test.o /media/mmc1/docs/cisp 360 # /test.o /bin/sh: /test.o: not found /media/mmc1/docs/cisp 360 # ls gcc-3.4.install test.c geany_run_script.sh test.o test /media/mmc1/docs/cisp 360 # |
Re: [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...
There is a '.' before the /test.o
In linux, if you want to execute a file that isn't in the path you need to prefix it with './' (dot slash). It's a safety precaution I believe. Also, if ./test.o doesn't work, try it with the 'test' file; I'm not sure how Geany made things. |
Re: [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...
Quote:
I always get the error: /bin/sh: ./test(.o) permission denied any ideas about what could be going on? I've also tried this as root. Not sure why it wont let me run it. |
Re: [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...
the command
chmod a+x test(.o) should give you permission. Type "ls -l" (no quotes) in that folder to see if you have executable permissions. The file should look something like this: -rw-rw-r-x 1 ebrulon cbssw 25 Apr 15 11:08 test.o the 'x' in the '-rw-rw-r-x' means that you have executable permissions. It could also look something like '-rwxrwxrwx' the 'x's are executable permissions. (r and w are read and write.) Also, are there any files that end with '.out' in the folder? The executable could have that extension. Bruce |
Re: [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...
Quote:
tried it for test and test.o I appreciate your help, any other ideas? another way to change permissions? looks like that's the problem. no files ending with .out |
Re: [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...
To change permissions you must own the file. When you do 'ls -l' does it say 'user' or 'root' as owner. In the above example 'ebrulon' is me (the owner) and 'cbssw' is the group I am in. Since it is best to build files as user, do this:
1) make sure you are root 2) cd to the parent of your project folder. 3) chown -R user <name-of-your-project-folder> This should recursively CHange the OWNership of the folder and all its contents to user. THEN try chmod a-x again. The command chgrp does the same thing for the file's group. This does eventually get easier, BTW. |
Re: [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...
If you can't change the permissions, is the file in /media/mmc*, which is mounted noexec
|
Re: [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...
ok, so thanks to both of you for starters. I was saving to my mmc card. I tried to save to the mydocs folder of the OS, and I do have permissions in there, and am able to run it.
Is it impossible to run such a file from a storage partition such as my mmc1 card? |
Re: [ANNOUNCE] Geany IDE - supports C,C++,python,java,php,ruby,etc...
Quote:
You have three basic options:
|
| All times are GMT. The time now is 23:55. |
Page 6 of 6 |
|
Prev |
4 5 6
|
vBulletin® Version 3.8.8