osx-lion

“Data Model Version Compile”.. error after upgrading to Lion (Xcode4.1)

淺唱寂寞╮ 提交于 2019-11-27 01:54:52
问题 Since upgrading to Lion yesterday (10.6->10.7), I've been unable to compile a project that had no problems compiling prior to the upgrade. It's not even a recent change to the project that's causing this error: If I checkout from SVN a version of the project from a few days or a week ago, I get the same error whilst building: "Command /Developer/usr/bin/momc failed with exit code 6" , which expands to the following: Build Error: DataModelVersionCompile /Users/ian/Library/Developer/Xcode

Mac OS X Lion no longer recognizes environment.plist?

断了今生、忘了曾经 提交于 2019-11-27 01:46:42
问题 Just installed Lion today and my PATH env variable is no longer being set by ~/.MacOSX/environment.plist. Did something change? Can't seem to find any info on that or how to fix. Any ideas? Here's the contents of the PLIST: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>PATH</key> <string>/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11/bin:

Why is Apple Deprecating OpenSSL in MacOS 10.7 (Lion)? [closed]

我与影子孤独终老i 提交于 2019-11-27 01:33:09
Apple has marked most (but not all) of the OpenSSL API as "deprecated" in MacOS 10.7. Has Apple made any statements explaining why they are moving from OpenSSL to Common Crypto? Apple is migrating from OpenSSL to Common Crypto (which Apple develops). Some docs: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/CC_crypto.3cc.html Info on WHY Apple is doing this: http://adcdownload.apple.com/wwdc_2011/adc_on_itunes__wwdc11_sessions__pdf/212_nextgeneration_cryptographic_services.pdf If the above link fails (it probably will), here are navigation instructions:

How can I get PHP working again in the command line?

不羁的心 提交于 2019-11-27 01:26:42
问题 I'm completely at loss here and am about to wipe my hard drive clean and start from a fresh OS install. I've been trying for two days to create a new yii app in the terminal and have finally figured out that the terminal or command line can not even execute PHP all of a sudden. I had no problem in past creating an executing php from the command line, But now it's not working. When I type which php i get nothing. When I type php -v I get: -bash: php: command not found. And when I try to create

Clang and the default compiler in OS X Lion

。_饼干妹妹 提交于 2019-11-27 01:25:22
问题 In OS X Snow Leopard (10.6) I used the following lines in ~/.bashrc to force compilation with clang instead of standard gcc: # Set Clang as the default compiler for the system export CC=clang export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments I also (occasionally) had to use the following lines to use llvm-gcc when clang would fail to compile certain things (PostgreSQL was guilty of this for a long time): # Set LLVM GCC as the default compiler for the system export CPP='llvm

How to customize disclosure cell in view-based NSOutlineView

随声附和 提交于 2019-11-27 01:09:52
问题 I'm trying to customize the disclosure arrow appearance in my view-based NSOutlineView. I saw that it's recommended to use - (void)outlineView:(NSOutlineView *)outlineView willDisplayOutlineCell:(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item delegate method to achieve it. The problem is that this method is not called for some reason. I have 2 custom cell views - one for item and second for header item. May be this method is not called for view-based outline views? May be

How can I make python 2.6 my default in Mac OS X Lion?

元气小坏坏 提交于 2019-11-27 00:24:16
问题 I just upgraded to lion and with it came Python 2.7. I need to use 2.6 as my default python as the project I primarily work on uses 2.6. 回答1: Apple has provided two very simple ways to change the default python on OS X 10.6 Snow Leopard and 10.7 Lion. It's all detailed in the Apple man page for python(1): $ man python $ which python /usr/bin/python $ python -V Python 2.7.1 # # temporarily change version # $ export VERSIONER_PYTHON_VERSION=2.6 $ python -V Python 2.6.6 $ unset VERSIONER_PYTHON

How do you get php working on Mac OS X?

断了今生、忘了曾经 提交于 2019-11-26 23:56:40
问题 I have recently updated to Lion and enabled Web Sharing in the System Preferences but I am unable to get php working. I added an info file to the web root directory and it outputs the file as text. info.php with the content <?php phpinfo(); ?> 回答1: (Edit: This method appears to work fine for 10.9 (Mavericks), 10.10 (Yosemite) and 10.11 (El Capitan), so I figured I'd mention that for any new influx of slightly frustrated OS X updaters :D ) Edit your /etc/apache2/httpd.conf and make sure the

How to install JPype on OS X Lion to use with Neo4j?

。_饼干妹妹 提交于 2019-11-26 23:22:52
问题 I am trying to use Neo4j for a project, and want to interface with it through Python since I'm a newbie to programming and don't know any Java. I'm following the installation instructions, but I'm stuck on the first step, which is to install JPype. I'm using OS X 10.7 (lion). I think my configuration is pretty standard with Python 2.7.2 downloaded from the Python website and Java 1.6.0 downloaded from the Apple website. When I run % sudo python setup.py install On the JPype installer, I get

Can an ANSI C-compliant implementation include additional functions in its standard library?

一曲冷凌霜 提交于 2019-11-26 23:15:34
问题 Is an ANSI C-compliant implementation allowed to include additional types and functions in its standard library, beyond those enumerated by the standard? (An ideal answer would reference the relevant part of the ANSI standard.) I ask particularly because Mac OS 10.7 declares the getline function in stdio.h, even when compiling with gcc or clang using the -ansi flag. This breaks several older programs that define their own getline function. Is this a fault of Mac OS 10.7? (The man page for