osx-mountain-lion

pip install fails with /usr/bin/clang: No such file or directory

牧云@^-^@ 提交于 2019-11-26 20:48:35
问题 I am migrating my dev environment to 10.8, however I am having issues with pip. Specifically, I'm using a virtualenvs/virtualwrapper but cannot pip install psycopg2 , and during the building of the psycopg2._psycopg extension, I get: unable to execute /usr/bin/clang: No such file or directory error: command '/usr/bin/clang' failed with exit status 1 Can anyone offer a solution to this? 回答1: This probably happens because you did not re-install the Command Line Tools after upgrading. Usually

How to Set Java JDK Environment Variable for Mac OS X 10.8 Mountain Lion

与世无争的帅哥 提交于 2019-11-26 20:06:37
问题 Can anybody tell me how to set environment variable for Mac OS X 10.8 Mountain Lion. I just upgrade my Mac to Mac OS X 10.8. When I run a script. It said that "/Users/ruijiaoli/lejos_nxj/bin/nxj: line 64: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java: No such file or directory" I found that JDK in the directory within the path above. And it worked well in Mac OS X lion. Is the JDK path changed in Mac OS X mountain Lion? The version of Java on my system is 1.6. 回答1:

OS X 10.8 Gatekeeper and Java applets

我与影子孤独终老i 提交于 2019-11-26 19:50:44
问题 With the new release of OS X 10.8, the Gatekeeper will popup the following warning, when you try to start a signed Java applet: The applet has been signed with a valid code signing certificate and will work correctly on other platforms as well as previous versions of OS X. If I change "Allow applications downloaded from:" to "Anywhere", it works correctly. As far as I can figure out "The digital signature could not be verified", actually means something like "the signature has not been made

Send notification to Mountain lion notification center

大兔子大兔子 提交于 2019-11-26 17:34:46
问题 Can someone give an example of sending a test notification from a Cocoa app to Notifications Center? eg. when I click on an NSButton 回答1: Notifications in Mountain Lion are handled by two classes. NSUserNotification and NSUserNotificationCenter . NSUserNotification is your actual notification, it has a title, a message etc. that can be set via properties. To deliver a notification that you've created, you can use the deliverNotification: method available in NSUserNotificationCenter. The Apple

com.apple.eawt - what exactly I should install

风流意气都作罢 提交于 2019-11-26 17:16:13
问题 I'm using Max OS X Mountain Lion, java -version returns "1.6.0_37". But I cannot compile project with com.apple.eawt.* classes imported. What I have to install to have Apple Java Extensions on my system? Any help would be appreciated! Update : I receive following error from compiler: java: package com.apple.eawt does not exist Update-2 : XCode version 4.5.2 is installed Update-3 : The reason of my problem was missed ui.jar in classpath. Thanks to @Ian Roberts 回答1: There is no JAR to download

How to install Scipy with pip on Mac Mountain Lion OS X v10.8

↘锁芯ラ 提交于 2019-11-26 16:50:04
问题 I'm having serious difficulty installing Scipy with pip on Mountain Lion. I've tried: sudo pip install -e git+https://github.com/scipy/scipy#egg=scipy-dev As suggested in various places on the web. This leads to errors like: ld: library not found for -lgcc lipo: can't figure out the architecture type of: /var/tmp//ccC2HLVs.out and several warnings (I assume not serious) before the errors. Does anybody have any suggestions? 回答1: Pip has difficulties with scipy on OS X in general. It is not

How to fix pg_dump version mismatch errors?

主宰稳场 提交于 2019-11-26 15:54:31
问题 When trying to get local data to Heroku, I am encountering a version mismatch between two different versions of pg_dump. Specifically, I am getting this message: pg_dump: server version: 9.2.2; pg_dump version: 9.1.4 pg_dump: aborting because of server version mismatch I have found others with this problem, but do not know enough to implement the proposed solutions. (I am new to Ruby on Rails, PostgreSQL, Heroku, and the Mac! Very much at the stage of playing around the picking things up as I

iPhone Simulator suddenly started running very slow

自闭症网瘾萝莉.ら 提交于 2019-11-26 15:03:14
问题 I have been working on an app in iphone simulator for a number of weeks and it has been running well up until now, but all of a sudden has begun running very slow both when loading content and animations. I have not made any changes to my code since I last tested it successfully. I tried restarting the simulator (multiple times) and removing the app and doing a completely clean rebuild, but no luck. I also checked my cpu usage through the monitor while the simulator is running and I am only

What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?

柔情痞子 提交于 2019-11-26 14:32:57
I get Illegal Instruction: 4 errors with binaries compiled with GCC 4.7.2 under Mac OS X 10.8.2 ("Mountain Lion"), when those binaries are run under Mac OS X 10.7.x ("Lion") and earlier versions. The binaries work properly under Mac OS X 10.8.x. I added -mmacosx-version-min=10.5 to my compile flags and this seems to help resolve the issue for 10.5.x, 10.6.x and 10.7.x clients, whatever that issue is. Which gets to my question(s): What is the Illegal Instruction: 4 error? Why does -mmacosx-version-min=10.x fix this specific error on 10.x and greater clients? I'd like to apply this fix to my

GLUT on OS X with OpenGL 3.2 Core Profile

我的未来我决定 提交于 2019-11-26 14:26:48
问题 Is it possible to use GLUT on OS X Lion or OS X Mountain Lion using core profile (so I can use GLSL 1.50)? Can I use the built in GLUT or do I need to use a third-part library such as FreeGLUT? And is there any simple 'Hello world' applications available for OS X with either an XCode project or a make-file? 回答1: You need at least Mac OS X Lion (OS X 10.7 or higher) for the basic support of OpenGL 3.2. To use the OpenGL 3.2 Core Profile, just add glutInitDisplayMode(GLUT_3_2_CORE_PROFILE | ...