Permission errors when trying to build Haxe project - haxe

When I try to build my Haxe project in HTML5/JavaScript with the lime tools, I get this error, and these warnings:
jesse#jesse-kubuntu ~/C/Similar-Game> lime test html5
chmod: changing permissions of ‘/usr/share/haxelib/lime/2,9,1/templates/bin/webify-linux64’: Operation not permitted
chmod: changing permissions of ‘/usr/share/haxelib/lime/2,9,1/templates/bin/webify-linux64’: Operation not permitted
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/nokiafc22.eot"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/nokiafc22.woff"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/nokiafc22.svg"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/monsterrat.eot"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/monsterrat.woff"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/monsterrat.svg"
chmod: changing permissions of ‘/usr/share/haxelib/lime/2,9,1/templates/bin/node/node-linux64’: Operation not permitted
sh: 1: /usr/share/haxelib/lime/2,9,1/templates/bin/node/node-linux64: Permission denied
jesse#jesse-kubuntu ~/C/Similar-Game>
How do I resolve these warnings and errors? And don't say sudo, I shouldn't have to do that to build a game.

You probably installed lime using sudo, so then try this:
sudo chmod a+x /usr/share/haxelib/lime/2,9,1/templates/bin/webify-linux64
sudo chmod a+x /usr/share/haxelib/lime/2,9,1/templates/bin/node/node-linux64
This will give 'execution' rights to all users.

Related

Workspace Settings permission denied

I'm running Ubuntu 12.04LTS.
Have unpacked Visual Studio Code in a folder owned by my user id. All vscode files are owned by my user id (user and group).
Have Node.js, npm, typescript installed via apt-get (and npm).
Visual Studio code runs fine, however File->Preferences->Workspace Settings gives this error:
Unable to create 'vscode/settings.json' (Error: EACCES: permission denied, mkdir '/.vscode').
Any ideas on how to resolve this? Where is it trying to do the mkdir?
Thanks,
Bob Wirka
UPDATE: Sudo'd mkdir "/.vscode" (literally at the root level), and chown'd it recursively to my user and group. Voila! Now I can edit the settings.
So, is there a way to tell Visual Studio Code that it shouldn't be trying to use the root folder?
Mentioned in the update by the OP but thought I'll mention it explicitly. You need to change the permissions for the folder. The following command will change the owner of the directory so that you can open it without needing root privileges.
$ sudo chown <user-name> -R <directory-name>
I had same issue on my osx. I was able to solve this issue by change the permission to read and write in project folder.
Simply type
sudo chmod 777 -R <your_app_name_directory>.
This will give all permissions to all users, groups and others for read, write, execute.
-R gives recursively permissions to all nested files folders inside your directory.
If -R is not given then it gives permissions to current directory only, not to other directories inside.
Change the permissions to your folder
sudo chmod ugo+rwx your_folder

./ Permission denied running executables linux with x permission

I have checked permission and I am the owner of the directory/files. I can't run .sh and can't run an executable which is the result of a compiler, made by another user. But for example I can execute makefiles.
Example
./ install.sh clean
./: permission denied
install.sh calls a make OPT=opt clean, when I type that directly it works.
With the other executable I also get permission denied

Elasticsearch installation error: No such file or directory

I'm using a linux machine. The Elasticsearch installation guide told me to simply download and unzip the file, and then run bin/elasticsearch. But when I ran it, I got this error:
$ bin/elasticsearch
-bash: bin/elasticsearch: No such file or directory
I can clearly see the elasticsearch file in my home directory, and all the files within it seem intact. What do I do?
If you are trying to access the file with:
bin/elasticsearch
You get the error.
Try to tell the full route.
First move to the directory with cd
cd route/to/your/directory
Then use . for calling from your actual position:
./bin/elasticsearch
Note: If you get an error about the access or something similar, try giving execution permission to your file:
chmod u+x ./bin/elasticsearch

Ubuntu 13.10 , Golang build and run, the terminal display error bash: ./filename : Permission denied

I am trying to run Go's executable file after using command go build instead of typing go run filename.go.
I typed go build in the directory where the Golang source file resides. After the executable file had been created, I typed ./filename to run it. Then the terminal displayed a line :
bash : ./filename : Permission denied
I had tried to change the permission of the filename by typing :
chmod u+x filename
But this action doesn't give any effects. The permission denied error still occurs whenever I type ./filename.
Is there another way to build a Golang applications from source code, and then run it from executable file?
All things done well if I do this task in Windows command prompt, after typing go build, the filename.exe is created and there is no any problem when I run it by typing ./filename.exe.
NTFS and FAT have different permission models than Unix. This especially means that there is no executable flag on such a file system. Calling chmod a+x FILE is a no-op. Linux emulates classical Unix permissions on NTFS file systems by setting a mask for each file that contains the would-be permissions.
To fix these problemss, either move executables to a different file system or change the mount flags to use a permission mask that enables the executable-flag (for all files).

Adding binaries to the 'bin' catalog

When I'm trying to add 'phantomjs' binary to the 'bin' folder (/usr/bin) on Mac OSX, the following error occurs:
Oskars-MacBook-Pro:bin oskarszura$ mv phantomjs ../../../../usr/local/bin/
mv: rename phantomjs to ../../../../usr/local/bin/phantomjs: Permission denied
i assume that I shouldn't change this catalog's permissions. How should I add binaries on Mac OSX ?
You need administrator (also called root) rights to fiddle with the system folders.
See the sudo command how gain those privileges for a single command.
Also, instead of using that relative path to /usr/local/bin, why not simple use the full path of just /usr/local/bin?

Resources