macos

Java installation on MacOS: Apt commando doesn't work

我的梦境 提交于 2021-02-09 08:45:44
问题 I have installed the latest version of JAVA (jdk-15.0.1_osx-x64_bin.dmg) on a MacBook (Catalina: 10.15.7). When I try to use JAVA to install PUPPET MASTER with this command: $ sudo apt Puppet Master install I get this message back: Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk-15.0.1.jdk/Contents/Home/bin/apt" (-1) Can anybody explain to me what that means and how I can go about installing Puppet Master in my machine? Thank you so much Mike 回答1: I am not very

Cant compile c++ on OS X Big Sur, “ld: library not found for -lgcc_s.10.4”

安稳与你 提交于 2021-02-09 07:30:15
问题 After upgrading my MacBook Pro to OS X 11.1 Big Sur, I am unable to get compilation of c++ programs using gcc to work. I am using CLion with CMake, and I get the following error when reloading the CMake configuration ld: library not found for -lgcc_s.10.4 The things that I have tried are installing Xcode, it installed without error. I have tried to create a symlink as suggested here https://github.com/Paxa/fast_excel/issues/33 $ cd /usr/local/lib $ sudo ln -s ../../lib/libSystem.B.dylib

Document Type Icon not showing on custom file MacOS

自古美人都是妖i 提交于 2021-02-08 20:54:12
问题 My application needs to have custom document support, but I did not start out with a Document-template in xcode. I did manage to properly load and save the data by following among other things this tutorial: https://www.brandpending.com/2016/02/21/opening-and-saving-custom-document-types-from-a-swift-cocoa-application/. One problem though, is that my custom icon is not showing on my file! it is still a blank page-icon :(. What Am I doing wrong? Here is my setup: my HSDocument code: -(BOOL

macOS Big Sur python3 cannot import numpy due to polyfit error

最后都变了- 提交于 2021-02-08 20:49:46
问题 update from Jan 2021: I performed a clean install of Big Sur in Jan 2021, and upgrade pip to latest version using python3 -m pip install --upgrade pip --user , and installed numpy without issues, and without the error message below. original question from Nov 2020 I'm using macOS big sur on 2019 macbook pro. I'm able to install numpy using python3 -m pip install numpy --user . Note I do not have brew; I'm just using the python3 from the Xcode command line tools. I've seen this error reported

Installing dlib in python on mac

孤人 提交于 2021-02-08 19:55:12
问题 I'm getting an error when trying to install dlib in Python 3.7 on macOS with pip3 install dlib . I have installed CMake, so that is not the problem. I'm getting this error message: Failed building wheel for dlib and Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize; file ='/private/var/folders/j2/nvk5521j2vn9s1w95_0vlwkm0000gn/T/pip-install-ls2e_3mr/dlib/setup.py';f=getattr(tokenize, 'open', open)( file );code=f.read().replace('\r\n',

Installing dlib in python on mac

会有一股神秘感。 提交于 2021-02-08 19:55:03
问题 I'm getting an error when trying to install dlib in Python 3.7 on macOS with pip3 install dlib . I have installed CMake, so that is not the problem. I'm getting this error message: Failed building wheel for dlib and Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize; file ='/private/var/folders/j2/nvk5521j2vn9s1w95_0vlwkm0000gn/T/pip-install-ls2e_3mr/dlib/setup.py';f=getattr(tokenize, 'open', open)( file );code=f.read().replace('\r\n',

Installing dlib in python on mac

三世轮回 提交于 2021-02-08 19:54:59
问题 I'm getting an error when trying to install dlib in Python 3.7 on macOS with pip3 install dlib . I have installed CMake, so that is not the problem. I'm getting this error message: Failed building wheel for dlib and Command "/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7 -u -c "import setuptools, tokenize; file ='/private/var/folders/j2/nvk5521j2vn9s1w95_0vlwkm0000gn/T/pip-install-ls2e_3mr/dlib/setup.py';f=getattr(tokenize, 'open', open)( file );code=f.read().replace('\r\n',

Avoid Mac app crashing after unhandled exception

拜拜、爱过 提交于 2021-02-08 17:20:44
问题 I want to prevent my app from closing after an unhandled exception has been raised. I'm doing this with Xamarin and MonoMac, but I think I could translate Objective-C answers to C#. When an Exception happens and it's not caught anywhere, I register the event of unhandled exceptions: AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; And log it: static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e) { //Log the exception... } But then, when an

Avoid Mac app crashing after unhandled exception

自作多情 提交于 2021-02-08 17:13:54
问题 I want to prevent my app from closing after an unhandled exception has been raised. I'm doing this with Xamarin and MonoMac, but I think I could translate Objective-C answers to C#. When an Exception happens and it's not caught anywhere, I register the event of unhandled exceptions: AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; And log it: static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e) { //Log the exception... } But then, when an

Avoid Mac app crashing after unhandled exception

夙愿已清 提交于 2021-02-08 17:11:45
问题 I want to prevent my app from closing after an unhandled exception has been raised. I'm doing this with Xamarin and MonoMac, but I think I could translate Objective-C answers to C#. When an Exception happens and it's not caught anywhere, I register the event of unhandled exceptions: AppDomain.CurrentDomain.UnhandledException += HandleUnhandledException; And log it: static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs e) { //Log the exception... } But then, when an