macos-mojave

Installing Ruby 2.3.1 on Mojave OSX with rbenv or rvm

吃可爱长大的小学妹 提交于 2019-12-11 08:34:49
问题 First off I am on OSX Mojave 10.14, I have previously upgraded it from 10.13. I bought it new with 10.13. I am trying to follow this tutorial: https://scotch.io/tutorials/build-a-restful-json-api-with-rails-5-part-one I want to make sure that I have the same environment setup using the same version of rails and ruby. When I try to use rbenv to change my version of ruby (currently 2.6.1) to 2.3.1 I use the following command: rbenv install 2.3.1 And I get the following error: file.c:23:10:

Problem installing MySQL-Python on Mac OS 10.14.1

最后都变了- 提交于 2019-12-11 06:34:09
问题 I recently upgraded to Mac OS Mojave and now can't install MySQL-Python: pip install MySQL-Python ... clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-2.7/_mysql.o -L/usr/local/opt/mysql-client/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.13-x86_64-2.7/_mysql.so ld: library not found for -lssl clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'clang' failed with exit status 1 The stack trace says that the "ssl"

App Works from Xcode, Crashes when uploaded to Apple and exported as Developer Release

*爱你&永不变心* 提交于 2019-12-11 05:34:48
问题 I'm stumped on this one. I've uploaded my app multiple times to Apple recently and each time it's being rejected due to a crash on Mojave 10.14.6. When running from Xcode 10.2.1 the app behaves properly. But, if exported to a developer release, or uploaded to apple for review it 'crashes' on launch. However, code that sets the app up copying certain data to the app container works meaning the app is launching and executing code. But the OS is closing it for some reason. The 'update' I'm

Oracle instant client with gem ruby-oci8 not able to connect with DB in rails c

早过忘川 提交于 2019-12-11 04:24:52
问题 I am using Oracle instant client in my project and using ruby-oci8 gem. I am using Mac Mojave OS I am able to run the rails server and server does connect with database but when I run rails c and try to connect with any table it throws following error. Running via Spring preloader in process 95609 Loading development environment (Rails 5.1.1) User.last objc[96849]: +[__NSPlaceholderDictionary initialize] may have been in progress in another thread when fork() was called. objc[96849]: +[_

Trouble installing DBD::mysql under macOS Mojave

馋奶兔 提交于 2019-12-11 01:09:25
问题 Can't install DBD::mysql under macOS Mojave with perl v5.18.2 MySQL Community Server 8.0.13 is installed from DMG from the official site. Here is the installation log via cpan: Checking if libs are available for compiling... dyld: Library not loaded: @rpath/libmysqlclient.21.dylib Referenced from: /Users/dmitry/.cpan/build/DBD-mysql-4.049-B01C7C/assertliblxuNN4_E Reason: image not found dyld: Library not loaded: libssl.1.0.0.dylib Referenced from: /Users/dmitry/.cpan/build/DBD-mysql-4.049

PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16777216 bytes)

风格不统一 提交于 2019-12-10 20:50:16
问题 I ran composer install on my 16 GB Mac Book Pro, and I got this ⚡️ distributor-portal composer install Loading composer repositories with package information Updating dependencies (including require-dev) PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16777216 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php on line 220 Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 16777216 bytes) in

SDKMAN! does not work with Eclipse.app or SpringToolSuite4.app (on Mac)

痞子三分冷 提交于 2019-12-10 13:47:06
问题 This is a similar issue to: Eclipse can't find jdk installed with sdkman I am still facing the issue on Mac ( macos-mojave ) Both of my /usr/bin/java /usr/bin/javac are pointing to /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac respectively. SDKMAN! does install the proper java and javac for the SDKMAN!'s default Java version. Thus, I do have proper java and javac : % java -version openjdk

Code::Blocks C++ compiling with MacOS Mojave : fatal error: sys/cdefs.h: No such file or directory

社会主义新天地 提交于 2019-12-10 11:24:29
问题 (This is my first question ever on StackOverflow) I have to use a Mac at work, and I'm coding in C++ with Code::Blocks (because I am used to this IDE). 2 days ago I upgraded from MacOS High Sierra to MacOS Mojave and I can fairly say that... it was a bad decision. Now, when trying to #include <math.h> I get this error : fatal error: sys/cdefs.h: No such file or directory . I have tried to reinstall the xcode line command tools with xcode-select --install , but it still doesn't work. Does

“because it is not SIP-protected” - Apple event error in macOS Mojave

﹥>﹥吖頭↗ 提交于 2019-12-10 04:35:38
问题 I have a properly sandboxed application in macOS, Objective-C that talks to third party applications by Apple Events (e.g. Adobe InDesign). In macOS Mojave everything breaks cause Apple's new SIP (https://developer.apple.com/library/archive/documentation/Security/Conceptual/System_Integrity_Protection_Guide/Introduction/Introduction.html) doesn't allow the communication. I didn't find any solution yet. Any help appreciated. This is the error message: skipped scripting addition "/Library

Applescript Mojave Toggle Accessibility Grayscale On/Off

天大地大妈咪最大 提交于 2019-12-08 12:13:14
问题 I have a script I run periodically to toggle grayscale on/off with Applescript. It runs fine on High Sierra but throw an exception when I use it was Mojave. tell application "System Preferences" reveal anchor "Seeing_Display" of pane id "com.apple.preference.universalaccess" end tell tell application "System Events" to tell process "System Preferences" delay 0.5 # Needed or else script fails set theCheckbox to checkbox "Use grayscale" of window "Accessibility" tell theCheckbox # If the