macos-sierra

mongorestore random crash (fatal error)

邮差的信 提交于 2019-12-05 04:36:37
I'm on macOS 10.12. mongod --version db version v3.2.8 git version: ed70e33130c977bda0024c125b56d159573dbaf0 OpenSSL version: OpenSSL 1.0.2h 3 May 2016 allocator: system modules: none build environment: distarch: x86_64 target_arch: x86_64 When I use a mongorestore: mongorestore --drop --db mydatabase /path/to/mongodump The import starts but it crashes 90% of time: fatal error: unexpected signal during runtime execution [signal 0xb code=0x1 addr=0x697d5fa61ae3 pc=0x40d9e00] goroutine 46 [running]: runtime.throw(0x4683ea0, 0x2a) /usr/local/Cellar/go/1.6.2/libexec/src/runtime/panic.go:547 +0x90

Java applets in macOs Sierra crashes

有些话、适合烂在心里 提交于 2019-12-05 02:54:32
问题 After I update my mac to macOs Sierra, i have problems with java applets in Safari. They didn't start, or start and crash. Process: java [2271] Path: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java Identifier: net.java.openjdk.cmd Version: 1.0 (1.0) Code Type: X86-64 (Native) Parent Process: plugin-container [2270] Responsible: java [2271] User ID: 501 Date/Time: 2016-10-03 14:10:04.915 +0300 OS Version: Mac OS X 10.12 (16A323) Report Version: 12 Anonymous UUID:

Cocoapods Installation Error on macOS Sierra 10.12.1

放肆的年华 提交于 2019-12-04 23:10:19
问题 I'm getting this error when i'm trying to install cocoapods : $ sudo gem install cocoapods ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/fuzzy_match I have gem version 2.6.7 installed, macOS 10.12.1 can anyone help please..or have instructions how to install cocoapods on 10.12.1 回答1: I have a similar problem and it solved by using 2nd solution, try to run these commands either in solutions 1 or 2 at terminal I'm running osx 10.12.1 ERROR: While executing gem

Mac OS Sierra virtualenv (python 2.7) pip install mysqlclient error

こ雲淡風輕ζ 提交于 2019-12-04 21:14:15
问题 On Mac OS Sierra, created virtualenv using python2.7 and trying to install mysqlclient to use Django w/ MySQL. I installed MySQL 5.6 via homebrew. Running "pip install mysqlclient" gives these errors: Running setup.py bdist_wheel for mysqlclient ... error ... 13 warnings generated. cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.12-intel-2.7/_mysql.o -L/usr/local/Cellar/mysql56/5.6.32/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.12-intel-2

OpenSSL not found on MacOS Sierra

。_饼干妹妹 提交于 2019-12-04 20:17:27
问题 I am trying to install a PHP MongoDB driver but the installation is failing because it cannot locate the OpenSSL. /Users/username/mongo-php-driver/src/libmongoc/src/mongoc/mongoc-crypto-openssl.c:24:10: fatal error: 'openssl/sha.h' file not found #include <openssl/sha.h> ^ 1 error generated. make: *** [src/libmongoc/src/mongoc/mongoc-crypto-openssl.lo] Error 1 I read that this has something to do with the latest version of MacOS? Is there a way to do it, as I really need to install this

How to deactivate bash_history stats print when opening a new terminal window on my mac?

与世无争的帅哥 提交于 2019-12-04 17:51:38
I just reinstalled MacOS (OSX 10.12) and as I'm redoing my IDEs and such I get this strange bash_history stats object that prints to every new terminal window! It's driving me bonkers, and after looking through all the preferences an settings I can't seem to turn it off! Does anyone know why this is suddenly happening? Is it something to do with iCloud Profile Syncing? Here's s picture below. Thanks so much for your help! Screenshot of bash terminal history stats Last login: Wed Jul 5 03:23:51 on ttys005 /Users/admin/.bash_sessions/5D8EB886-1FE8-4DF6-AC4C-6ACE7B8CF803.historynew Stats { dev:

Add library search path to clang

孤人 提交于 2019-12-04 17:49:54
问题 How can I add /usr/local/lib to my clang library search path? This is what I see when I list my library search paths using clang -Xlinker -v : 回答1: Is it OK to add it as environment variable? This should work: export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/lib Notice, it's LIBRARY_PATH , not LD_LIBRARY_PATH . On the other hand, if that doesn't work for you, you should compile with the flag: -L/usr/local/lib And that should be sufficient, too. EDIT: Btw, I don't know why you're using back

How to disable scrolling in NSScrollView with enabled responsive scrolling

妖精的绣舞 提交于 2019-12-04 17:17:11
I need to disable programmatically scrolling in NSSrollView with enabled responsive scrolling. I try override isCompatibleWithResponsiveScrolling , then is possible to override scrollWheel and have enabled responsive scrolling but scrollWheel works different in that implementation. Is called only once, on start of scroll but I want to break scroll that is in progress. It's possible to do this in different way that not need to override scrollWheel method? 来源: https://stackoverflow.com/questions/41853163/how-to-disable-scrolling-in-nsscrollview-with-enabled-responsive-scrolling

APNs push notification with macOS Sierra

岁酱吖の 提交于 2019-12-04 17:03:54
问题 I'm trying to send my phone a push notification using the simple PHP tool which connects to ssl://gateway.push.apple.com:2195 , but the connection fails with the following errors: Warning: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in <Users/.../file.php> on line 30 Warning: stream_socket_client(): Failed to enable crypto in <Users/.../file.php> on line 30 Warning: stream

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo cannot run git after OS update [duplicate]

假如想象 提交于 2019-12-04 16:43:23
问题 This question already has answers here : “Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.” when using GCC (10 answers) Closed 2 years ago . The IDE is giving an error message that it can't start git: /usr/bin/git , however the path is correct, and it was working before. idea.log contains the following error: Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. 回答1: This generally occurs after the mac OS