0
Permission Denied Code Blocks Message
When I try to run a Code Blocks program I get a message in the terminal that says permission denied. How can I fix this? xxxxxxxx-iMac:~ xxxxxxxx$ /Users/xxxxx/Documents/First -bash: /Users/xxxxxx/Documents/First: Permission denied (X's are where the name would be) Thanks
4 Answers
+ 3
@Jakub Stasiak:
You're right: I think of a web service like the code playground in here, not the IDE :(
@Toby Flowers:
So try to change the rights of your file, with the command Jakub indicates ;)
+ 2
Probably you can't have rights to access this file...
That don't means that your reading rights are incorrects: what's the type of code you attempt to execute? I guess this is some html with javascript, isn't it? Because file access with javascript ( inside web page ) are restricted: you can only access the user file system if the source coude is stored inside it ^^ ( so, if you run it at Code Blocks, or Code Playground here, the source file is on a distant server :P )
+ 1
chmod 777 yourfile
yourfile - full path to your file.
0
@visph- Code::Blocks is C, C++ and Fortran IDE. So I guess he's not trying to execute any web related files.