osx-mavericks

ERROR: Failed to build gem native extension on Mavericks

自作多情 提交于 2019-11-27 01:47:41
I'm attempting to run bundle in my Rails project on OSX 10.9. It fails when getting to the pg gem with this error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/kyledecot/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... yes checking for libpq/libpq-fs.h... yes checking for pg_config_manual.h... yes checking for PQconnectdb() in -lpq... yes checking for PQconnectionUsedPassword()... yes

Are there any alternatives to valgrind on Mac OS X Mountain Lion and Mavericks to detect memory leaks for C/C++ applications? [closed]

自闭症网瘾萝莉.ら 提交于 2019-11-27 01:03:26
问题 I used to use valgrind to detect memory leaks for my C/C++ applications on Mac OS X 10.6 (Snow Leopard) and 10.7 (Lion), but I find it's not supported on recent releases like 10.8 (Mountain Lion) and 10.9 (Mavericks) when I upgraded my OS. Is there something else like valgrind that can be installed on Mac OS X 10.9? 回答1: On 2013-11-01, the valgrind team announced Valgrind 3.9.0: We are pleased to announce a new release of Valgrind, version 3.9.0, available from http://www.valgrind.org. 3.9.0

Python crashing when running two commands (Segmentation Fault: 11)

岁酱吖の 提交于 2019-11-27 00:27:34
Python interpreter is crashing when I run the second command. I have searched the web for this error and did not found anything. The error is showed below: Python 2.7.5 (v2.7.5:ab05e7dd2788, May 13 2013, 13:18:45) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> print 1 1 >>> print 2 Segmentation fault: 11 Why? I'm using Mac OS X Mavericks. I think that's relevant since it's a beta version. EDIT: Forgot the problem details provided by the OSX: Process: Python [11053] Path: /Library/Frameworks/Python.framework

Unable to use xcodebuild on Mavericks with Command Line Tools installed

淺唱寂寞╮ 提交于 2019-11-27 00:07:50
问题 I have installed the Command Line Tools: $ xcode-select --print-path /Library/Developer/CommandLineTools However, when anything tries to use xcodebuild , I get the following error: $ /usr/bin/xcodebuild xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance On Mountain Lion it was possible to use this without installing the whole of Xcode, rather just the Command Line Tools. Is it possible to

Can't install PIL after Mac OS X 10.9

梦想与她 提交于 2019-11-26 23:29:57
I've just updated my Mac OS to 10.9 and I discovered that some (all?) of my Python modules are not here anymore, especially the Image one. So I try to execute sudo pip install pil , but I get this error: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found # include <X11/Xlib.h> ^ 1 error generated. error: command 'cc' failed with exit status 1 My Xcode is up-to-date and I don't have any idea. Is it possible that PIL is not yet 10.9 compatible ? Following worked for me: ln -s

Ansible Installation -clang: error: unknown argument: '-mno-fused-madd'

我的梦境 提交于 2019-11-26 22:36:35
问题 So, I've found some other clang error's on here that appear to be somewhat similar, however, the fixes aren't applicable to my situation. I'm using OSX Mavericks and we're trying to get Ansible installed. I got pip to install correctly, but when I try to install Ansible, I get this clang error. We thought, at first, that it might be a version issue, so I re-installed gcc46 after having this same error with gcc49, but I'm still getting the error. Does anyone know how to fix this? My complete

Open Java applications fail silently on OS X Mavericks

时间秒杀一切 提交于 2019-11-26 21:12:26
问题 When opening Intelli J or Android Studio after the Mavericks update nothing happens, fails silently. Java and javac all work from the command line. Opening the apps from the command line gives this error: LSOpenURLsWithRole() failed with error -10658 for the file /Applications/Android Studio.app. Opening Intelli J's idea_appLauncher (/Applications/...app/Contents/MacOS/idea_appLauncher) from the command line gave away some more information: someuser@machine:~$ /Applications/IntelliJ\ IDEA\ 12

Pycharm environment different than command line

醉酒当歌 提交于 2019-11-26 20:14:23
问题 I am having an issue getting my Pycharm environment to match up with the environment that I have on the command line. I recently removed python and reinstalled it via home brew. The python in my path is pointing to /usr/local/bin/python I added PATH=/usr/local/bin:$PATH to the beginning of my .bash_profile file and I can execute the following code just fine in the interperter on the command line. However, when I add /usr/local/bin/python to the project python interpreters and run the below

OS X 10.9 gcc links to clang

冷暖自知 提交于 2019-11-26 19:42:28
I just noticed that after installing OS X 10.9, the g++ compiler links to the clang compiler. Is there anyway to revert back to gcc/g++? It has been this way for a long time already. The "GCC" that came with 10.8 was really GCC front-end with LLVM back-end. The best way to get GCC is via Homebrew . After the one-line homebrew install command on the bottom of the linked page, you just need: $ brew install gcc49 Unlike macports, Homebrew doesn't clutter your system dirs and it's much better at managing versions and uninstalls. It also doesn't require the crutch known as sudo . You'd have to

lxml runtime error: Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

五迷三道 提交于 2019-11-26 19:14:59
问题 I have a perplexing problem. I have used mac version 10.9, anaconda 3.4.1, python 2.7.6. Developing web application with python-amazon-product-api. i have overcome an obstacle about installing lxml, referencing clang error: unknown argument: '-mno-fused-madd' (python package installation failure). but another runtime error happened. Here is the output from webbrowser. Exception Type: ImportError Exception Value: dlopen(/Users/User_Name/Documents/App_Name/lib/python2.7/site-packages/lxml/etree