osx-lion

sudo required for easy_install pip in OS X Lion?

早过忘川 提交于 2019-12-12 08:48:19
问题 I'm coming from Snow Leopard at work to a Lion installation at home. I do NOT remember having to: sudo easy_install pip Is that required for Lion? I got errors until I did that, and pip ended up here: [ some@computer ] ~ $ which pip /usr/local/bin//pip Does this mean that I'm going to have to sudo pip install other packages? e.g.: sudo pip install virtualenv sudo pip install virtualenvwrapper I should also note that I'm running XCode 4.3 with the new separate install of the command line tools

NSSavePanel and the Sandbox

可紊 提交于 2019-12-12 08:46:19
问题 I have some problems understanding the new Lion's Sandbox. I know that Lion includes a trusted daemon process called Powerbox whose job is to present and control open/save dialog boxes on behalf of sandboxed applications. Like the Code Signing And Application Sandboxing Guide says: Any time an application running inside a sandbox invokes an NSOpenPanel or NSSavePanel dialog, rather than showing the panels directly, AppKit automatically asks the Powerbox to present the dialog. From a developer

How can I access the 'GitHub for Mac' command-line utility from the terminal?

眉间皱痕 提交于 2019-12-12 08:10:05
问题 I recently installed GitHub for Mac, the graphical Git client from GitHub, and also the command-line utility from its menu, shown below: I was notified the command-line utility had been installed in /usr/local/github , but when I checked it had actually been put in /usr/local/bin/github - details shown below: When I try to run git I get -bash: git: command not found , so I added export PATH=/usr/local/bin:$PATH to ~/.profile thinking it would solve the issue, but it hasn't - all that seems to

Installing php-module using port on osx lion. It works from command line but not from apache

走远了吗. 提交于 2019-12-12 05:06:15
问题 I installed php5-intl on my osx lion. It seems to work properly on command line mode because if I try to run the following script (1): $fmt = datefmt_create( "en_US" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN ); echo "First Formatted output is ".datefmt_format( $fmt , 0)."\n"; > php -m |grep intl intl > php test.php First Formatted output is Wednesday, December 31, 1969 4:00:00 PM Pacific Standard Time But if I try to sun the same from

Install Ruby 2.0.0 on an old Mac OS 10.7.5 Lion

安稳与你 提交于 2019-12-12 04:48:00
问题 I have tried to upgrade the Ruby version on an old Mac I got, but without any success. I know its possible because of this guy here asking how to upgrade from 2.2 Here is what I entered in the Terminal: rvm install 2.0.0 Result: Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.7/x86_64/ruby-2.0.0-p648. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Installing

folder size wrong

↘锁芯ラ 提交于 2019-12-12 03:20:06
问题 This code is correct but the folder size is wrong. If I change the directory the size is always wrong. For example the size of "%@/Caches/com.apple.Safari/Webpage Previews" is 23 MB, but I have 16.5 KB. NSString *path = [NSString stringWithFormat:@"%@/Caches/com.apple.Safari/Webpage Previews", [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES) objectAtIndex:0]]; NSNumber *fileSize = [[[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil]

Mac App Package Identity Not Installed

风流意气都作罢 提交于 2019-12-12 03:12:37
问题 I have a Mac app I'm trying to submit to the App Store. I'm getting the error shown in the attached screenshot when I try to submit the app. I created the certificate request from this exact Mac and archived the app on this Mac using the 3rd Party Mac App certificate. All of that went fine. But when I go to submit the app, I can't get past selecting the Code Signing Identity because it says that the package identity is not installed on this Mac. I'm not sure how this is possible because I

SCP client for MAC OS Lion [closed]

江枫思渺然 提交于 2019-12-12 03:10:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I have just upgraded to Mac OS Lion and I have a problem with Fugu application that I used to use on Snow Leopard, I can't run it on Lion now. Do you know how a patch for running it on Lion or have you alternative applications which does the same things ? I know there is the Terminal (scp localPath login@ip

getting a could not resolve host error when trying to install RVM on osx lion

半腔热情 提交于 2019-12-12 03:04:04
问题 I have all the prereq's installed.. I am on osx lion 10.7.2 xcode: $ xcodebuild -version Xcode 4.2.1 git: $ git --version git version 1.7.5.4 when i run $ bash < <( curl -s https://rvm.beginrescueend.com/install/rvm ) i get the following error: curl: (6) Could not resolve host: HD; nodename nor servname provided, or not known Could not download 'https://github.com/wayneeseguin/rvm/tarball/master'. any ideas why? If i run as sudo it goes through but then i get more errors... Need this to

pg_query returns nothing

雨燕双飞 提交于 2019-12-11 23:47:57
问题 Newbie question about PostgreSQL. I'm migrating a MySQL/PHP app I've created, hosted on a Linux server, to PostgreSQL/PHP on a MacOSX Lion Server environment. It's my first experience with Postgres. The first query I'm testing doesn't work as it returns nothing (not even an error message, whichever check code I add). What did I do wrong? I've read articles on the web including the doc on php official website but all comments, personal methods and differences from version to version, either