permission denied while installing OPENNI on mac - openni

I got this error while installing OpenNI ON MAC
./install.sh
Installing OpenNI
****************************
copying shared libraries...cp: /usr/lib/libOpenNI.dylib: Permission denied
cp: /usr/lib/libOpenNI.jni.dylib: Permission denied
cp: /usr/lib/libnimCodecs.dylib: Permission denied
cp: /usr/lib/libnimMockNodes.dylib: Permission denied
cp: /usr/lib/libnimRecorder.dylib: Permission denied
Can anyone help me

Try doing:
sudo ./install.sh
You'll be prompted for an admin password.

Related

Django/apache NLTK Permission denied: '/var/www/nltk_data'

I'm using NLTK with my Django/Apache application, however when loading a page it returns Permission denied: '/var/www/nltk_data' error. I made my user (not root) the owner of /var/www and gave permissions with sudo chmod -R 770 /var/www/. What else can I do to remove this error?
Try sudo chmod -R o+r /var/www/ This will add read permissions to other.
The apache user trying to write to /var/www/nltk_data folder is www-data. So I made this user the owner of nltk_data folder then it worked.

virtualenv could not install on my machine due to permission denied

creating c:\program files\python38\Lib\site-packages\distlib
error: could not create 'c:\program files\python38\Lib\site-packages\distlib': Access is denied
----------------------------------------
How do I fix this?
I tried to install virtualenv and django but got the error above

permission denied : while installing django in windows

permission denied
I was trying to install Django using pip3 install django==2.0.2 on windows.
But I am getting "permission denied " error message.
But pip3 install django==2.0.2 --user is working, but "Django-admin" command is not being recognized.
Please help me out.
C:\Users\Hima>pip3 install django==2.0.2
fd = os.open(file, os.O_RDWR | os.O_CREAT | os.O_EXCL)
PermissionError: [Errno 13] Permission denied: 'c:\\program files (x86)\\python38-32\\Lib\\site-packages\\accesstest_deleteme_fishfingers_custard_gijd2m'
Your installation with --user argument works because --user makes pip install packages in your home directory instead of system directory, which doesn't require any special privileges. You have not enough privileges to install it to system dir.
If you are sure of what you are doing - run pip with administrative privileges but do remember that anyone can uploade libraries to pip and thus there is a risk of running malicious code.
Better way to go is to use a virtual environment

heroku login give me EAACCESS:permission denied

I have installed heroku toolbelt but each time I do "heroku login" or any other heroku command like "heroku version" I get something like :
autoupdate:: 'EACCES': EACCES: permission denied, mkdir
▸ '/home/vanessa/.cache/heroku/update.lock.readers.lock'
▸ 'EACCES': EACCES: permission denied, open
▸ '/home/vanessa/.cache/heroku/plugins.json'
▸ 'EACCES': EACCES: permission denied, mkdir
▸ '/home/vanessa/.cache/heroku/update.lock.readers.lock'
I have deleted and reinstalled, I have also done sudo apt-get upgrade heroku to update the CLI, however I still get same results. My OS is Ubuntu Linux.
Check if the directory is owned by the user you're running heroku commands from:
ls -l /home/vanessa/.cache/heroku
If it's owned by something else like root, and assuming you are running heroku as the user "vanessa", try:
sudo chown -R vanessa:vanessa /home/vanessa/.cache/heroku
You don't have permission to access that file. Run rm -rf /home/vanessa/.cache/heroku and hopefully it will be recreated with the right permissions.
Follow steps:
Uninstall heroku cli
and install the latest version.
That worked for me

How do I install dataset on python not using pip or easy_install?

I'm trying to install data set on Ubuntu and when I use
pip install dataset
it gives me a long error message, and from what I could debug from it is that permission to the directory is denied. When I try
easy_install dataset
it says error: can't create or remove files in install directory because permission is denied Maybe my account doesn't have write access to this directory?
If you're receiving the error can't create or remove in install directory because permission is denied then you need to run your commands with sudo privileges
Try:
sudo pip install dataset
or
sudo easy_install dataset