macos-sierra

How to programmatically create a PPTP VPN connection on macOS Sierra/High Sierra?

人盡茶涼 提交于 2020-06-17 14:34:11
问题 Apple removed high-level PPTP support in macOS Sierra from its network configuration system. However, the PPP internals are all still there, including /usr/sbin/pppd and /etc/ppp/ . How can I programmatically initiate a PPTP VPN connection on macOS Sierra / High Sierra using what's left? 回答1: Answer: This method creates a PPTP connection that doesn't send all traffic and doesn't override other DNS providers, meaning it works with multiple simultaneous VPN connections each having different DNS

How to Install openbabel for Python 3.6 on macOS Sierra 10.12.3

眉间皱痕 提交于 2020-06-16 07:19:26
问题 I am using Python for making a script to work with some chemical structures in my PhD. I want to install openbabel libraries for python. I tried my best but I could not install it on Windows. I posted a question earlier about installing it on Windows at How do I install openbabel for Python 3.6 in Windows 10? but could not find a solution. The solution installed the library but it does not work and could not connect to SWIG. No I am trying to install it on my office computer which is a mac

Xcode - How to change the display name of an app for macOS?

▼魔方 西西 提交于 2020-06-10 02:57:33
问题 The product name of the app is the name of your app as it will appear to customers and you choose it in the Xcode Assistant when starting a new project, but what if you would like to change it? It seems a trivial question but I tried searching and I find old answers like this one Changing Cocoa display name in the app? (seven years ago) or this one How to change the name of a Mac application in the build settings? which assumes you have a MainMenu.xib file, or answers that refer to iPhone as

Mac OS Sierra: checking whether the C compiler works… no

老子叫甜甜 提交于 2020-05-25 07:21:51
问题 I want to compile a C library on my MacOS Sierra system, but I am getting the following error: checking for a BSD-compatible install... /usr/local/bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... clang

Mac OS Sierra: checking whether the C compiler works… no

99封情书 提交于 2020-05-25 07:21:18
问题 I want to compile a C library on my MacOS Sierra system, but I am getting the following error: checking for a BSD-compatible install... /usr/local/bin/ginstall -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for gcc... clang

How to install pygtk 3 on Mac OS X?

我与影子孤独终老i 提交于 2020-05-23 13:12:43
问题 What I tried: brew install pygobject3 --with-python@2 gtk+3 brew install pygtk3 brew install pygobject3 pip install pygobject python -c 'import gi; gi.require_version("Gtk", "3.0")' Result: ValueError: Namespace Gtk not available for version 3.0 Note that I'm running conda, with python 3.6; and Mac OS X High-Sierra I read through the following questions/answers before posting: Easiest way to install pygtk on Mac OS X Python Gtk3 executable https://github.com/neovim/python-gui/issues/33 https:

Code Signature Invalid

孤者浪人 提交于 2020-02-21 07:50:23
问题 Recently, I wasn't able to run some of my apps in Xcode. They would build, then quit without showing up. So I tried going into the Debug folder and starting the app manually. I ended up getting an error report from macOS telling me that the exception type was "Code signature invalid". I also ran a test in Xcode and it told me that the code wasn't signed at all, and that it failed with exit code 1. I know that something must be wrong with my code signing in my Xcode projects, but I'm not sure

A change in macOS Sierra prevents “say” to be exec'd in a PHP script

|▌冷眼眸甩不掉的悲伤 提交于 2020-02-03 07:47:49
问题 I have a macOS server with a little site which converts text snippets to audio using say command. With upgrade to Sierra, everything went smooth except one thing: the say command doesn't work any more when wrapped in exec() in my PHP script. The page just times out. No error is caught either. <?php try { exec('/usr/bin/say "hello"'); } catch (Exception $e) { echo $e->getMessage(); } ?> Typically I would save the audio snippets with say -o filename but I tried all the variants and also other

Is it possible to install APK through adb if the file is on the android device?

北城余情 提交于 2020-01-30 08:37:27
问题 Usually if the apk is on my desktop, I would use adb install <path> to get it on my Android device. Somehow I like to know if it is also possible if the apk is on the device. I imagine adb shell would be a start, sadly tho, install <path> afterward doesn't seem to work. 回答1: adb shell pm install /location/apk.apk // if you want to remove the installation package rm /location/apk.apk 来源: https://stackoverflow.com/questions/45412622/is-it-possible-to-install-apk-through-adb-if-the-file-is-on

Unable to start XAMPP Apache server on MacOS-Sierra

僤鯓⒐⒋嵵緔 提交于 2020-01-20 19:18:18
问题 Whenever I'm trying to start my Apache server from XAMPP on my Macbook (MacOS-Sierra) . I'm getting following application log : Starting Apache Web Server... /Applications/XAMPP/xamppfiles/apache2/scripts/ctl.sh : httpd started And status remains Stopped . I re-install XAMPP and restarted my laptop multiple times, but I'm still having same issue. Couldn't find anything help to resolve this issue. 回答1: I found the solution: Make sure port 80 is not being used (Use Network Utility and scan for