M1 MacBook Air unable to install VS Code. "Unable to write program user data." - macos

Picure of Error CodeI am trying to install VS Code on my new Macbook Air M1. I get the error message on the photo attached.
"Unable to write program user data.
A system error occurred (EACCES: permission denied, mkdir '/Users/John/Library/Application Support/Code')
Please make sure the following directories are writeable:
~/Library/Application Support/Code
~/.vscode/extensions"

I found the solution to this issue. The location for the tmp directory can be changed with the XDG_RUNTIME_DIR environment:
XDG_RUNTIME_DIR=my-runtime-dir ./VSCode-linux-x64/bin/code --user-data-dir my_dir

Related

CMake is throwing an error while Installing OpenCV

I am using this document as a guide
and i ran through this error
Install the project...
-- Install configuration: "RELEASE"
CMake Error at cmake_install.cmake:36 (file):
file cannot create directory: /installation/OpenCV-/share/licenses/opencv4.
Maybe need administrative privileges.
I just encountered the same problem as you. I found out that it is not a permission problem, but a path problem of OpenCV installation.
I use the following method for successfully installing OpenCV4.2.0 to my computer.
Change the path:
-D CMAKE_INSTALL_PREFIX = $cwd/installation/OpenCV-4.2.0
To
-D CMAKE_INSTALL_PREFIX = /usr/local

Genymotion error Cannot find Genymotion in the specified path

On my mac ,I have installed Genymotion.when trying to location Genymotion.app I get this error: "Cannot find Genymotion in the specified path"
this is the path i entered for genymotion.app:
/Applications/Genymotion.app.
try the following:
/Applications/Genymotion.app/Contents/MacOS/player.app
Try with:
/Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/player

Gitian error while compiling Bitcoin dependencies for OSX

I'm trying to compile Bitcoin in Gitian for OSX. I've ran the following line.
./bin/gbuild ../bitcoin/contrib/gitian-descriptors/gitian-osx-native.yml
That produces an error in the build log as follows.
cd libprunetrie && make
make[1]: Entering directory `/home/ubuntu/build/osx-cross-depends/build/toolchain4-10cc648683617cca8bcbeae507888099b41b530c/cctools2odcctools/odcctools-809/libprunetrie'
mkdir -p `dirname PruneTrie.o`
In file included from allocate.c:29:0:
../include/stuff/errors.h:39:1: error: unknown type name ‘uint32_t’
../include/stuff/errors.h:79:5: error: unknown type name ‘kern_return_t’
../include/stuff/errors.h:86:5: error: unknown type name ‘kern_return_t’
What do I need to do to make this work? If I'm not including enough information, please let me know what you need me to tell you. I didn't change the yml file from the official Bitcoin sources or anything else and I'm compiling on a Ubuntu 12.04.4 64Bit VirtualBox instance using LXC.
In case anyone else comes accross this issue, it has something to do with the way a Mac OSX system packages the tar file. You can't package it on a regular Linux system, it has to be Darwin Unix. (Mac) I came accross the link below which points to a ready made version of the stripped down Apple SDK file for Bitcoin. (MacOSX10.7.sdk.tar.gz)
https://github.com/deuscoin/deuscoin/blob/master/doc/building-deuscoin.md
Hopefully this helps someone else.

How can I find libstdc++.so.6?

I'm trying to build Android project on my 64-bit kubuntu linux and encountered the error
message:
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory.
running apt-get install libstdc++6 told me that this library is allready installed on my machine and its up to date. Now I'm trying to find out where it is so I could update my path and tell adb where to look for it.
Tried ;/$ find libstdc++6 and which libstdc++6 and they both failed to find it.
A similar question suggests to use bash in order to find libstdc, but it implies
the library is under \usr\lib which is not my case. I tried "ls \usr\lib\std* " and got "No such file or directory" as a reply.
What else should I do?

error: unable to open executable ''

I just ran into this issue with my Xcode project:
whenever I run it, it says there is the following error GenerateDSYMFile /Users/obleopold/Library/Developer/Xcode/DerivedData/richhh-bzvkjxyolcsbhoffzrtzyohyzhye/Build/Products/Debug-iphoneos/richhh.app.dSYM /Users/obleopold/Library/Developer/Xcode/DerivedData/richhh-bzvkjxyolcsbhoffzrtzyohyzhye/Build/Products/Debug-iphoneos/richhh.app/richhh
cd /Users/obleopold/Documents/richhh
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/obleopold/Library/Developer/Xcode/DerivedData/richhh-bzvkjxyolcsbhoffzrtzyohyzhye/Build/Products/Debug-iphoneos/richhh.app/richhh -o /Users/obleopold/Library/Developer/Xcode/DerivedData/richhh-bzvkjxyolcsbhoffzrtzyohyzhye/Build/Products/Debug-iphoneos/richhh.app.dSYM
The main issue states:
error: unable to open executable ''
Here is some more info:
My project name is: richhh,
my computer username is: obleopold
If you need any more information, please comment.
Go to Product->Clean and then Product->Clean builds(option comes by pressing option button). Delete the derived data, restart Xcode and try running

Resources