osx-mavericks

Pstack a process on OSX 10.9

試著忘記壹切 提交于 2019-11-30 21:52:04
On linux in order to view the process stack at a given time we generally use pstack < pid > I am wondering what is the equivalent of the same in osx. thanks sudo /usr/libexec/stackshot -i -u -p <pid> This appends a stack trace of all threads of the process in question to the file /Library/Logs/stackshot-syms.log . Consider to remove the file stackshot-syms.log before calling stackshot. See: stackshot(1) Note: stackshot is no longer included with OS X 10.11 EL Capitan. Use the lldb debugger instead: echo "thread backtrace all" | lldb -p <pid> lldb is part of the command line developer tools. If

MapKit Entitlements Oddity

依然范特西╮ 提交于 2019-11-30 17:51:41
问题 I have a simple Mac app, not intended for distribution of any kind; simply personal use. The app is an NSWindow which contains an MKMapView . As I don't have a Mac dev account, and don't want one (see "personal use only"), I'm not doing any form of code signing or provisioning. However, on launch, I get a blank map and this error: Your Application has attempted to access the Map Kit API. You cannot access this API without an entitlement. You may receive an entitlement from the Mac Developer

Pstack a process on OSX 10.9

a 夏天 提交于 2019-11-30 17:44:11
问题 On linux in order to view the process stack at a given time we generally use pstack < pid > I am wondering what is the equivalent of the same in osx. thanks 回答1: sudo /usr/libexec/stackshot -i -u -p <pid> This appends a stack trace of all threads of the process in question to the file /Library/Logs/stackshot-syms.log . Consider to remove the file stackshot-syms.log before calling stackshot. See: stackshot(1) Note: stackshot is no longer included with OS X 10.11 EL Capitan. Use the lldb

RMagick error after installing OS X Mavericks

本秂侑毒 提交于 2019-11-30 17:20:38
问题 I had RMagick installed and working perfectly in OS X Mountain Lion. I just installed OS X Mavericks and when I try to run rails s , I get this error: /.rvm/gems/ruby-2.0.0-p0@myapp/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in `require': dlopen(/.rvm/gems/ruby-2.0.0-p0@myapp/gems/rmagick-2.13.2/lib/RMagick2.bundle, 9): Library not loaded: /usr/lib/libltdl.7.dylib (LoadError) Referenced from: /.rvm/gems/ruby-2.0.0-p0@myapp/gems/rmagick-2.13.2/lib/RMagick2.bundle Reason:

Trouble using Network Link Conditioner on OS X Mavericks

早过忘川 提交于 2019-11-30 16:49:54
I'm trying to get Network Link Conditioner working on my machine that is running OS X Mavericks. I'm running Developer Preview 8 (the latest as of this writing). I downloaded the "Hardware IO Tools for Xcode 5 Developer Preview - June 2013" to get the Network Link Conditioner pref pane. I have also tried the version of Network Link Conditioner from the previous Hardware IO Tools bundle which fails to open with a "Could not load Network Link Conditioner preference pane." error when trying to load it. With the version for Xcode 5 I get one of two fail states. First, when I open NLC and click the

Zbar + python, crashes on import (OSX 10.9.1)

前提是你 提交于 2019-11-30 14:40:19
问题 I've attempted to install Zbar for use with python 2.7.6 with Homebrew and pip (brew install zbar, then pip install zbar) but every time I import it, python crashes. Simply running: #!/usr/bin/python import zbar lands me with this from the terminal: :~ aj$ cd '/Users/aj/Documents/nlcc/check in/python/' && '/usr/bin/python' '/Users/aj/Documents/nlcc/check in/python/test.py' && echo Exit status: $? && exit 1 Segmentation fault: 11 Other modules (wxPython, Numpy, openCV) work just fine, but this

Composer could not find a composer.json

不问归期 提交于 2019-11-30 11:50:24
I tried to install composer via brew per: In usr/local/bin (which was not on Mavricks and I had to make personally) I did. brew tap josegonzalez/homebrew-php brew install josegonzalez/php/composer I can run php composer.phar , but when I do php composer.phar install , I get the error: Composer could not find a composer.json file in /usr/local/bin To initialize a project, please create a composer.json file as described in the http://getcomposer.org/ "Getting Started" section So I go to the https://getcomposer.org/doc/00-intro.md . CTRL + F ".json" and nothing's there. Seriously composer? EDIT:

Zbar + python, crashes on import (OSX 10.9.1)

一世执手 提交于 2019-11-30 11:21:07
I've attempted to install Zbar for use with python 2.7.6 with Homebrew and pip (brew install zbar, then pip install zbar) but every time I import it, python crashes. Simply running: #!/usr/bin/python import zbar lands me with this from the terminal: :~ aj$ cd '/Users/aj/Documents/nlcc/check in/python/' && '/usr/bin/python' '/Users/aj/Documents/nlcc/check in/python/test.py' && echo Exit status: $? && exit 1 Segmentation fault: 11 Other modules (wxPython, Numpy, openCV) work just fine, but this one gives me the same crash every time. I've tried compiling and installing zbar from source, thinking

nginx startup fail on mac osx 10.9 mavericks

╄→гoц情女王★ 提交于 2019-11-30 10:59:45
问题 I've been using nginx for a few months without issue, but after upgrading to Mac OS X 10.9 Mavericks, when trying to start nginx I get this: nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in use) nginx: [emerg] bind() to 0.0.0.0:80 failed (48: Address already in

brew install zlib-devel on Mac OS X Mavericks

有些话、适合烂在心里 提交于 2019-11-30 10:30:54
问题 Attempting to install the zlib-devel on mac os x mavericks with homebrew doesn't work: brew install zlib-devel Error: No available formula for zlib-devel Searching taps... This install brew install zlib works fine though. 回答1: Just run in the command line: xcode-select --install In OS X 10.9+, the command line developer tools are now installed on demand. So after running this also zlib and zlib-devel should be available (no need for brew install zlib...) 回答2: For OS X Mojave sudo installer