osx-mountain-lion

Homebrew: brew doctor throwing up a lot of errors, how can I fix them? [closed]

我怕爱的太早我们不能终老 提交于 2019-12-03 03:12:07
I installed homebrew a long time ago and I don't use it that much, but I was thinking of starting to get back into it as it's a very useful and easy to use package installer. Anyway, I ran the brew doctor and got a whole host of warnings which I'm not sure how to fix! I'm especially scared of deleting .dylib, .la and .pc files, in case my packages that weren't installed via homebrew needed them. Any help on the issue would be greatly appreciated, if it matters I'm running Mac OS X Mountain Lion (10.8.3), my list of warnings is as follows: UOS-12044:~ as34g12$ brew doctor Warning: /usr/local

dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid

为君一笑 提交于 2019-12-03 02:59:29
问题 since an update to 10.8 I get the following error, when trying to do a sudo command, which is pretty annoying. dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid What does that have to mean? I hope anyone can help. 回答1: This seems to be a bug introduced in 10.8, see this report. As far as I can tell, the only workaround is not setting DYLD_LIBRARY_PATH or LD_LIBRARY_PATH by default, but only when needed. 回答2: In zsh: sudo () { ( unset

Mac OS X Facebook login failed - no stored remote_app_id for app

纵然是瞬间 提交于 2019-12-03 02:14:26
I am trying to use the new ACAccountStore capabilities on Mac OS X 10.8 to login via Facebook but I get an error: The Facebook server could not fulfill this access request: no stored remote_app_id for app When the code executes the requestAccessToAccountsWithType message it does prompt me for access to Facebook (which I allow) and I do have Facebook credentials stored in my Settings. I also have another code path for legacy versions of OS X which logs into Facebook using the WebView control. It does work with the same APP_ID. So I should have the app correctly setup in the Facebook developer

NSUserNotification not showing action button

久未见 提交于 2019-12-03 02:13:02
问题 I'm using this code: - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { // Insert code here to initialize your application NSUserNotification *notification = [[NSUserNotification alloc] init]; [notification setTitle: @"Title"]; [notification setSubtitle: @"Subtitle"]; [notification setInformativeText: @"Informative Text"]; [notification setHasActionButton: YES]; [notification setActionButtonTitle: @"Action Button"]; [notification setOtherButtonTitle: @"Other Button"];

Installing GraphicsMagick on Mac OS X 10.8

好久不见. 提交于 2019-12-03 01:59:53
问题 I am trying to install GraphicsMagick on Mountain Lion and having problems. I tried all the things that I could search for in blogs and other stackoverflow questions but nothing worked. So I have put the full stack of errors I get on each command. Please look and help me out. When I run brew install graphicsmagick I get this Warning: Could not link jpeg. Unlinking... Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local You can try

How do I upgrade Bash in Mac OSX Mountain Lion and set it the correct path? [closed]

送分小仙女□ 提交于 2019-12-03 01:53:38
问题 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 6 years ago . since Mountain Lion still uses the old bash 3.x, I was wondering if there is a good tutorial (or if somebody could post one here) on how to upgrade bash to the latest version. Also, it would be helpful to know how to set the path so that it can be used in terminal. Thanks in advance 回答1: Update brew: brew update

Maven not found in Mac OSX mavericks

可紊 提交于 2019-12-03 01:27:06
问题 After upgrading my Mac OSX 10.8 to 10.9, Maven not found in the /usr/share path but its installed in 10.8. when I try this command: $ maven -version got this result -bash: mvn: command not found but it worked fine on 10.8? Any idea? 回答1: Maven is not installed any more by default on Mac OS X 10.9. You need to install it yourself, for example using Homebrew. 回答2: if you don't want to install homebrew (or any other package manager) just for installing maven, you can grab the binary from their

PHP mail() no longer works after update to OSX Mountain Lion

♀尐吖头ヾ 提交于 2019-12-03 00:55:16
问题 I just updated OS X to Mountain Lion yesterday, but the php function mail() does not work anymore. Before updating, the PHP mail() function worked fine, Apple mail works fine. After updating, Apple mail works fine, but PHP mail() function DOES NOT work. Webserver: XAMPP 1.7.3 I use this code to test the mail() function: if (mail($to, $object, $content, "From: ". $from)) { echo 'send '; } else { echo "not send"; } It shows: not send Anything I have to change? such as the php.ini or something

How to show the share button in Mountain Lion?

这一生的挚爱 提交于 2019-12-02 21:12:07
Mountain Lion offers a built-in sharing button that reveals a menu of sharing services appropriate for the app: How can I insert it in my app? Dev To add the share button on Mountain Lion: 1) Add a NSButton called, for example, shareButton . 2) Add the standard image for this button: [shareButton setImage:[NSImage imageNamed:NSImageNameShareTemplate]]; [shareButton sendActionOn:NSLeftMouseDownMask]; 3) Into the "on click action", present the NSSharingServicePicker : NSSharingServicePicker *sharingServicePicker = [[NSSharingServicePicker alloc] initWithItems:urls]; sharingServicePicker.delegate

OSX launchd plist for node forever process

让人想犯罪 __ 提交于 2019-12-02 21:06:37
I am trying to write a launchd.plist file for my node server. I am using forever to run my node server. I would like the server to start on boot. I would also like to wait for the mongodb launchd plist to run first. I installed mongobb using homebrew and it came with a launchd.plist already. I have executed the following: $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist plist for mongodb is: <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>homebrew.mxcl.mongodb</string