Permission Denied on ./vcpkg install - macos

Has anyone encountered this error before with vcpkg? I'm running MacOS. To install vcpkg I ran:
git clone https://github.com/Microsoft/vcpkg
...
./bootstrap-vcpkg.sh
...
./vcpkg integrate install
zsh: permission denied: ./vcpkg
Also trying to run:
./vcpkg install wxwidgets
zsh: permission denied: ./vcpkg

Yep, it needs to be executed from the /bin directory and not from the /vcpkg directory. so that means (if you used brew to install it, otherwise it'll be somewhere else) ⤵︎
$ cd /usr/local/Cellar/vcpkg/2020.11-1/bin
(just open a file explorer window and find the bin folder in vcpkg, you can then copy the path name and use that for your cd command, or open a shell window at that directory)
Then all you have to do is simply run the original command ⤵︎
$ ./vcpkg integrate install

Related

bash 3rdparty/osx/install_deps.sh?

I am trying to follow these installation instructions:
https://www.thomasvanhoey.com/post/installing-openpose-on-mac-october-2020-version/
for installing OpenPose on Mac.
I have a Mac M1, running Big Sir. When I try to do step 3, and run this in terminal: (I'm in the openpose folder that was created when I installed CMake, where there is a 3rdparty folder)
bash 3rdparty/osx/install_deps.sh
I get:
No such file or directory
also step 4 doesn't work, i run this in the command line in terminal:
~~protoc src/caffe/proto/caffe.proto --cpp_out=. mkdir include/caffe/proto mv src/caffe/proto/caffe.pb.h include/caffe/proto~~
I get
zsh: command not found: ~~protoc
Does anyone know why I am getting these errors? I "Cloned the repository in the target folder". I "Install CMake GUI" the old fashioned way. I ran and it installed.
brew install caffe
Thnx
Replace with: bash scripts/osx/install_deps.sh
The file to be executed is install_deps.sh. When I perform $ find . -name osx it is found in openpose/scripts/. So just run bash scripts/osx/install_deps.sh.

Why do I always get a permission issue when trying to install python packages?

Whenever I try to install packages through homebrew or pip, it gives me a permission error. (I'm using macOS Catalina)
I somewhat got pip to work by using the "sudo -H" prefix. It downloads them successfully but then when I attempt to import them in Python, it tells me the module wasn't found. Earlier today I changed the default version of Python to 3.8.2, but the same error was happening way before that.
Here's the Homebrew command I used:
brew install libyaml
Here's what it's returning:
Error: Permission denied # apply2files - /usr/local/lib/node_modules/json-server/node_modules/term-size/vendor/macos/.DS_Store
you need to check user permissions on the first /usr, /usr/local, and /usr/local/lib directories. you need rwx permissions to write content in these folder. Failing this permission on any folder will not allow you to modify content in /usr/local/lib.
you can use sudo chmod u+rwx folder_name to provide read write execute on the folders. If you want to providerwx permission to all folder inside /usr use sudo chmod u+rwx -R /usr

Permission denied when installing Bazel 0.16.1 on macos 10.13.6

I'm attempting to install Bazel on Macos using the Bazel installer. A permission denied error occurs inside the /var/temp directory during the installation.
$ ./bazel-0.16.1-installer-darwin-x86_64.sh --user
Uncompressing......Extracting Bazel installation...
FATAL: failed to open '/var/tmp/_bazel_clavius/install/2fc3f6f2633d78815ad4e94b45964b0e.tmp.21064/_embedded_binaries/A-server.jar' for syncing: (error: 13): Permission denied
If I check, I do have read and execute permissions on the file.
$ ls -la /var/tmp/_bazel_clavius/install/2fc3f6f2633d78815ad4e94b45964b0e.tmp.21064/_embedded_binaries/A-server.jar
-rwxr-xr-x 1 clavius wheel 44149867 8 Sep 2028 /var/tmp/_bazel_clavius/install/2fc3f6f2633d78815ad4e94b45964b0e.tmp.21064/_embedded_binaries/A-server.jar
Looks like you successfully installed Bazel and the error comes not from the installer but from Bazel itself, as it tried extracting the so-called "embedded tools". This is possibly a bug -- if you would be so kind to file a Bazel bug[1], that'd be great!
Let's investigate:
If you retry the installation, does it succeed?
If you install like $ ./bazel-0.16.1-installer-darwin-x86_64.sh --prefix=$HOME/foo, can you run $HOME/foo/bin/bazel successfully?
Could it be that you already have a /var/tmp/_bazel_clavius/install/2fc3f6f2633d78815ad4e94b45964b0e directory? If so, what's the output of ls -la /var/tmp/_bazel_clavius/install/2fc3f6f2633d78815ad4e94b45964b0e/_embedded_binaries/A-server.jar?
Did you run Bazel before trying to install the new version? I reckon it's possible that there's a bug in the installation directory computation logic and your new version tries overwriting the files of the old version, and the old version is still running.
[1] https://github.com/bazelbuild/bazel/issues/new

Trying to install git on OSX: cannont exec 'git-credential-osxkeychain': Permission denied`

I'm attempting to install Git on my new MBP and am following the documentation # https://help.github.com/articles/set-up-git.
I seem to have hit a snag at the point where it says : If you do not have the helper, you can download it and copy it to /usr/local/bin
I navigated to /usr/local/bin in terminal and did a sudo wget [link to osxkeychain]. When I try to do a git config --global credential.helper osxkeychain I get a fatal: cannont exec 'git-credential-osxkeychain': Permission denied.
What did I do wrong?
Thanks!
Tre
Download the git-credential-osxkeychain file to your desktop(!).
Open the Terminal application.
Type in the following:
sudo cp ~/Desktop/git-credential-osxkeychain /usr/local/bin/git-credential-osxkeychain
sudo chmod 755 /usr/local/bin/git-credential-osxkeychain
sudo git config --global credential.helper osxkeychain
Test it with:
sudo git credential-osxkeychain
See the sudo prefix? It seems to be required for the credential stuff... It should now output Usage: git credential-osxkeychain <get|store|erase>
Make the downloaded file executable:
chmod 755 git-credential-osxkeychain
Homebrew's git package sets this up; just:
brew install git
and you're away.
Tried sudo?
/usr/bin is protected. Or you could try downloading git executables somewhere on your laptop and add that location to your PATH.
One of the common mistakes made by people starting on git is that they have the wrong executable for the operating system.
Please make sure that when you go to git help setup page you click on the right link
for example the following link has MAC | WINDOWS | LINUX | ALL options in the top of the page which is small enough to be ignored by many.
https://help.github.com/articles/set-up-git
This has happened to many of my team member to install osx for ubuntu and end up getting the error mentioned above

problems at installation of sphinx on mac osx - can't even do the ./configure command

I tried to install sphinx on my Mac (OSX 10.6.7) but at the first installation step, I run into a problem.
According to the installation doku, http://sphinxsearch.com/docs/current.html#installation, one should do the following steps
$ ./configure
$ make
$ install
When I enter ./configure in my terminal, I get the following error message:
$ ./configure
> -bash: ./configure: No such file or directory
So I looked in the folder 'sphinx-2.0.1-beta-osx10.6-i386' and saw that there's no such file such as configure. Also
$ ls -a
> . api doc sphinx-min.conf.in
.. bin example.sql sphinx.conf.in
COPYING contrib log
INSTALL data sphinx-min.conf
When I tried other files such as sphinx-min.conf, I get
$ ./sphinx-min.conf
$ -bash: ./sphinx-min.conf: Permission denied
Also the sudo ./sphinx-min.conf doesn't work
$ sudo ./sphinx-min.conf
$ sudo: ./sphinx-min.conf: command not found
Any ideas?
It seems possible that you have downloaded a binary version, rather than the source code. You should check for binaries in the subdirectory bin.
You should also read the file INSTALL, which probably has installation instructions that go with the distribution you have downloaded.
You should download Source tarball (tar.gz) from http://sphinxsearch.com/downloads/release/ even it has the deceptive linux-penguin icon. After decompression the tarball you can follow the installation steps as http://pat.github.com/ts/en/installing_sphinx.html says.

Resources