bad interpreter: Permission denied, Cygwin - permissions

Iam working on compile file and need to execute it by cygwin
so I browsed the folder,
content of compile file
\rm subs.a
./BUILD_subs
./BUILD_progs
then
./ compile
the result
./compile: ./BUILD_subs: /bin/csh: bad interpreter: Permission denied
./compile: ./BUILD_progs: /bin/csh: bad interpreter: Permission denied
can anyone give me some inflammations , what is going on >

Related

Unable to install Jazzy gem in my Mac due to write permission

I am trying to install Jazzy gem in my Mac (macOS Monterey 12.5) but I am getting error of write permission of directory /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 , and when I try to set permission to be writable for 2.6.0 directory, being administrator I am unable to set its permission to be writable (Image for this error attached). I am stuck on this since last one day, and tried enough to get solution from different posts but failed. please help
Here is my terminal command and error
Administrators-Mac-mini:~ AppleUser$ sudo gem install jazzy Password: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory. /Library/Ruby/Site/2.6.0/rubygems/installer.rb:712:in 'verify_gem_home' /Library/Ruby/Site/2.6.0/rubygems/installer.rb:902:in 'pre_install_checks' /Library/Ruby/Site/2.6.0/rubygems/installer.rb:302:in 'install' /Library/Ruby/Site/2.6.0/rubygems/resolver/specification.rb:104:in 'install' /Library/Ruby/Site/2.6.0/rubygems/request_set.rb:194:in 'block in install' /Library/Ruby/Site/2.6.0/rubygems/request_set.rb:182:in 'each' /Library/Ruby/Site/2.6.0/rubygems/request_set.rb:182:in 'install' /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:214:in 'install_gem' /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:230:in 'block in install_gems' /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:223:in 'each' /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:223:in 'install_gems' /Library/Ruby/Site/2.6.0/rubygems/commands/install_command.rb:169:in 'execute' /Library/Ruby/Site/2.6.0/rubygems/command.rb:323:in 'invoke_with_build_args' /Library/Ruby/Site/2.6.0/rubygems/command_manager.rb:251:in 'invoke_command' /Library/Ruby/Site/2.6.0/rubygems/command_manager.rb:191:in 'process_args' /Library/Ruby/Site/2.6.0/rubygems/command_manager.rb:149:in 'run' /Library/Ruby/Site/2.6.0/rubygems/gem_runner.rb:51:in 'run' /usr/bin/gem:21:in '<main>'

fatal error: 'bpf_helper_defs.h' file not found

When I run make kselftest-install, it shows the following error:
../../../lib/bpf/bpf_helpers.h:11:10: fatal error: 'bpf_helper_defs.h'
file not found
How to solve this issue? I'm using Ubuntu 20.04.
First, try to find the missing file in your kernel source code root directory.
$ find -name bpf_helper_defs.h
./tools/bpf/resolve_btfids/libbpf/include/bpf/bpf_helper_defs.h
./tools/bpf/resolve_btfids/libbpf/bpf_helper_defs.h
It shows that bpf_helper_defs.h exists, but in a different directory than bpf_helpers.h locates. So a simple way to solve this issue is to copy the missing file to the same directory.
$ cp ./tools/bpf/resolve_btfids/libbpf/include/bpf/bpf_helper_defs.h ./tools/lib/bpf/
Run make kselftest-install again, the error disappears.

While Generating an upload key keytool error: java.io.FileNotFoundException: my-upload-key.keystore (Access is denied)

While Generating an upload key keytool error: java.io.FileNotFoundException: my-upload-key.keystore (Access is denied)
Run CMD as administrator, navigate to the C:\Program Files\Java\jdk-17\bin and try to generate upload key again
The C:\Program Files directory needs administrator privilege to write, you're storing .keystore into it.
Just move to another directory, eg: your workspace dir.
make sure that folder really exist. And after run that with CMD

MSBuild: error MSB3073 The command 'setlocal VCEnd' exited with code 1

I am trying to build an opensource project on my machine using Visual Studio 2015 and CMake. I have followed all the steps and the prebuild checks were running properly. But when I am building the INSTALL to install the software in the folder that I have specified in the CMAKE gui, I am getting the MSB3073 error. A full description of the error is as below.
Severity Code Description Project File Line Suppression State Error
MSB3073 The command "setlocal
"C:\Program Files (x86)\CMake\bin\cmake.exe" -DBUILD_TYPE=RelWithDebInfo -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd" exited with code 1.
INSTALL C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 133
I have searched for the same error and found that some people who tried to install the build in a directory without write privileges encountered this, but I have made sure that I have write access. I have even tried do this with admin rights and still not able to fix this issue.
Any help in this would be highly appreciated.
While running Visual Studio 2022, trying to build VST plug-in with code generated by cmake.
For me it showed permission access denied when creating a symbolic link.
All I had to do was run Visual Studio "As Administrator" and it worked.
Of course, you have to have Admin privileges to your machine, or you belong to a group that is allowed to "Create symbolic links" in the Local Group Policy Editor (https://developer.steinberg.help/display/VST/Preparation+on+Windows)
Sorry for being a necro but I just encountered and fixed the exact same issue, and I think it can save someone some time if I share my solution.
By looking a bit in the log before the error message, I found the last element that CMake was trying to install :
-- Installing: path-to-anaconda/anaconda3/Lib/site-packages/cv2.cp37-win_amd64.pyd
CMake Error at modules/python3/cmake_install.cmake:45 (file):
file INSTALL cannot copy file
"path-to-repo/opencv/build/lib/python3/Release/cv2.cp37-win_amd64.pyd" to
"path-to-anaconda/anaconda3/Lib/site-packages/cv2.cp37-win_amd64.pyd":
Permission denied.
Call Stack (most recent call first):
modules/cmake_install.cmake:183 (include)
cmake_install.cmake:124 (include)
Permission denied...
It was simply because I left a console with cv2 imported, so the pyd was still being used and blocked the install. This can probably extend to any other file (DLLs, .hpp) being installed, just look a bit above this obscure error message ! Nothing to do with cmake_install.cmake, at least for me.
There was an error in one of the cmake_install.cmake files and it was causing the issue. Once I fixed the issue, it worked.

installing WordNet on Mac

I'm trying to install Wordnet 3.0 on my Mac which is OSX 10.8.
I've configured it, but when I try make,
I get a bunch of errors...
.....
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before ‘XColor’
make[2]: *** [wishwn-tkAppInit.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
and then if I proceed with make install
Making install in doc
Making install in html
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/WordNet-3.0/doc/html" || /Users/ravenyj/Desktop/WordNet-3.0/install-sh -d "/usr/local/WordNet-3.0/doc/html"
mkdir: /usr/local/WordNet-3.0: Permission denied
make[3]: *** [install-htmlDATA] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1
I have not made any modification to Makefile, and don't know if I should.
Could anyone please help me out on this?
Using brew is orders of magnitude simpler. Just:
brew install wordnet
The following worked for me to get it to compile:
./configure CFLAGS="-I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -fpermissive" CC=/usr/bin/gcc
then
make
sudo make install
after that it's showing up fine for me in
/usr/local/WordNet-3.0/
I then added WordNet to my $PATH by editing my .bash_profile file, adding the line:
export PATH=/usr/local/WordNet-3.0/bin:$PATH
opening a new Terminal window, I could then type:
$ wn
and see that it's now working fine
Do the following to install WordNet in fastest manner:
Press Command+Space and type Terminal and press enter/return key.
Run in Terminal app:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
...and press enter/return key. Wait for the command to finish.
Run:
brew install wordnet
After installation use 'wn' command in terminal to access the application.
I had the same problem too until I saw this webpage: http://ticanchang.blogspot.com/2010/04/install-wordnet-in-mac.html
In the folder of your downloaded WordNet package, type:
./configure
make
sudo make install
You need to include "sudo" because normally a user do not have the permission to update the /usr/local folder.