macos-high-sierra

Runtime linking R-extension on MacOS

吃可爱长大的小学妹 提交于 2019-12-23 01:54:41
问题 I have installed the ArrayFire library using the binary installer for MacOS which puts the libraries into /usr/local/lib . I can compile and run simple examples, e.g. #include <arrayfire.h> #include <stdio.h> int main() { unsigned int count; af_get_backend_count(&count); printf("backends: %d\n", count); return 0; } gives $ /usr/local/clang4/bin/clang -laf -o minimal minimal.c $ ./minimal backends: 2 Now I want to do the equivalent thing in R. I have #include <arrayfire.h> #include <Rinternals

iphone simulator(10.3) time not showing according to timezone in mac OS (10.13)

你。 提交于 2019-12-22 18:35:10
问题 I have update my mac os to 10.13 beta version now it showing GMT time for my old simulator with ios version 10.3. its not displaying as per mytimezone(IST). even after reset it and region change of simulator its continuous showing GMT time only. 回答1: Apple says there are currently no plans to fix this, as per http://www.openradar.me/34812060 回答2: This fixed for me : export TIMEZONE="Australia/Sydney" sudo rm -rf /etc/localtime sudo ln -s /usr/share/zoneinfo/$TIMEZONE /etc/localtime 来源: https:

Xcode failed to download. Use the Purchases page to try again. Xcode 9.3. MacOS High Sierra

泪湿孤枕 提交于 2019-12-21 02:53:17
问题 After upgrading MacOS to High Sierra, I tried to update Xcode and get this: Xcode failed to download. Use the Purchases page to try again I uninstalled Xcode and try to install again with no success. I read some tips to solve this but nothing helps... Remove ~/Library/Cookies/com.apple.appstore.plist (no such file) Use AppStore Debug menu... (menu never appears with the command to enable it) defaults write com.apple.appstore ShowDebugMenu -bool true Remove contents of /private/var/folders/ /

Can't launch AVD on macOS 10.13

寵の児 提交于 2019-12-20 10:59:48
问题 I created some AVDs in Android studio 3.0, but I can't launch them. I used the following command to launch them: ./emulator @Nexus_5X_API_17 logs: emulator: WARNING: encryption is off Hax is enabled Hax ram_size 0x60000000 Failed to open vm 3 Failed to create HAX VM No accelerator found. failed to initialize HAX: Invalid argument And when I reinstalled "Intel x86 Emulator Accelerator(HAXM installer)", the logs: HAXM silent installation only supports macOS from 10.8 to 10.12 ! I don't know if

Can't launch AVD on macOS 10.13

半城伤御伤魂 提交于 2019-12-20 10:59:13
问题 I created some AVDs in Android studio 3.0, but I can't launch them. I used the following command to launch them: ./emulator @Nexus_5X_API_17 logs: emulator: WARNING: encryption is off Hax is enabled Hax ram_size 0x60000000 Failed to open vm 3 Failed to create HAX VM No accelerator found. failed to initialize HAX: Invalid argument And when I reinstalled "Intel x86 Emulator Accelerator(HAXM installer)", the logs: HAXM silent installation only supports macOS from 10.8 to 10.12 ! I don't know if

CocoaPods not working in macOS High Sierra

你离开我真会死。 提交于 2019-12-20 08:05:45
问题 After upgrading to macOS High Sierra CocoaPods is not working. While it is tempting to move away from CocoaPods, it's unfortunately not in scope right now. The error message is below. zsh: /Users/****/.gems/bin/pod: bad interpreter: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin: no such file or directory I realize that the error stems from Ruby being upgraded but what is the easies fix? Trying to make CocoaPods use the new ruby version yields other errors. Edit: For now i

MAMP on Mac redirects virtual localhost to https

帅比萌擦擦* 提交于 2019-12-20 05:38:29
问题 Chrome Version : 67.0.3396.87 Webserver : Apache When I hit http://www.assignmenthelpdesk.local , it redirects to https://www.assignmenthelpdesk.local/ How can I stop MAMP to redirect to https? Thanks in advance. /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf details below: <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs ServerName localhost </VirtualHost> <VirtualHost *:80> DocumentRoot /Applications/MAMP/htdocs/AssignmentHelpDesk ServerName www.assignmenthelpdesk.local <

OSX HIDAPI install for Python3 (pip3 troubleshooting): High-Sierra

我是研究僧i 提交于 2019-12-20 02:56:18
问题 OSX High-Sierra: HIDAPI was successfully installed for python 2.7. Python3 was installed today: Users-MacBook-Air:~ user$ python3 --version Python 3.7.5 HIDAPI was reinstalled after the python3 installation: brew reinstall hidapi This restored the python script that was working with python2 and restored the barcode scanner script is working with: sudo python2 test5.py However attempts to run the script with python3 returns an error: sudo python3 test5.py ModuleNotFoundError: No module named

How do I enable C++17 in Xcode for Mac OSX?

流过昼夜 提交于 2019-12-18 19:06:17
问题 How do I enable C++17 in Xcode (9.4.1) on OSX High Sierra (10.13.5)? 回答1: Steps to use C++17 in Xcode (9.4.1) on OSX High Sierra (10.13.5): Open existing or create a new C++ project in Xcode Click on the "show project navigator" button. It is located on the top-left section of Xcode window just below the minimize/maximize/close window buttons. It is the left-most icon and looks like a folder. Click on "Build Settings" and scroll down to find and expand the section "Apple LLVM 9.0 - Language -

How to download the Torvalds Linux Kernel master, (re)compile it, and boot it with QEMU?

我怕爱的太早我们不能终老 提交于 2019-12-17 20:32:05
问题 Since few days, I am working on a little project in order to discover the kernel programming. However, I read a lot on the internet and asked a question before about kernel compilation and I feel still lost at some point. If I need to do some kernel programming, I thought that use the Linus Torvalds's Linux sources would be the best point to start. So I did the following (From MacOS High Sierra) : Download kernel's sources: https://github.com/torvalds/linux Unzipped it Launch a terminal and