osx-mountain-lion

Mountain Lion X11 libraries can't ./configure

六月ゝ 毕业季﹏ 提交于 2019-11-29 10:37:01
I'm trying to build xmonad in Mountain Lion to run with Xquartz 2.7.2, tutorial found here . I'm using cabal to get required X11 libraries cabal install X11-1.5.0.1 . That didn't work, so I got the tar and tried building it with ghc, same error. It won't configure: Resolving dependencies... Configuring X11-1.5.0.1... configure: WARNING: unrecognized options: --with-compiler, --with-gcc checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.outchecking for suffix of executables... checking whether we are cross compiling... no

Handling “dyld: lazy symbol binding failed: Symbol not found” error when nm does not find symbol

谁说胖子不能爱 提交于 2019-11-29 10:16:47
I have a fat (32- and 64-bit) Intel binary called myBinary that fails to run on another workstation running Mac OS X 10.8.2: $ myBinary dyld: lazy symbol binding failed: Symbol not found: __ZNSt8__detail15_List_node_base7_M_hookEPS0_ Referenced from: /usr/local/bin/myBinary Expected in: /usr/lib/libstdc++.6.dylib dyld: Symbol not found: __ZNSt8__detail15_List_node_base7_M_hookEPS0_ Referenced from: /usr/local/bin/myBinary Expected in: /usr/lib/libstdc++.6.dylib Trace/BPT trap: 5 I compiled it from a Mac OS X 10.8.2 workstation running GCC 4.7.2: $ gcc --version gcc (MacPorts gcc47 4.7.2_2

Issue with installing ImageMagick and rmagick on Mountain Lion

社会主义新天地 提交于 2019-11-29 09:34:01
I am facing issues with installing rmagick in mountain lion. I have installed Xcode 4.4 and developer tools. Still facing this issue. Installing rmagick (2.13.1) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks! /Users/mohit/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /Users/mohit/.rvm/rubies

Mountain Lion Postgres could not connect

我只是一个虾纸丫 提交于 2019-11-29 09:30:21
After my update to mountain lion my postgres doest work. It is still running but my applications cant connect to it anymore. $ ps aux | grep postgres postgres 204 0.0 0.0 2446960 836 ?? Ss 7:31AM 0:00.59 postgres: stats collector process postgres 203 0.0 0.1 2478732 2240 ?? Ss 7:31AM 0:00.41 postgres: autovacuum launcher process postgres 202 0.0 0.0 2478600 584 ?? Ss 7:31AM 0:00.34 postgres: wal writer process postgres 201 0.0 0.0 2478600 784 ?? Ss 7:31AM 0:00.48 postgres: writer process postgres 95 0.0 0.0 2446960 368 ?? Ss 7:31AM 0:00.11 postgres: logger process postgres 64 0.0 0.2 2478600

Working with Mountain Lion's Notification Center using PyObjC

被刻印的时光 ゝ 提交于 2019-11-29 03:14:20
问题 I'm trying to send notifications to Mountain Lion from my python script and react to clicks on the notifications. Sending the notifications works perfectly find by now. But yet I was not able to get Lion to call back my script upon a click. Here is what I do. I implemented a Notification class. The only purpose of an instance of that class is to provide notifications by invoking notify() . In the same method I set the object the app's delegate. import Foundation import objc import AppKit

Non-Apple Issued Code Signing Certificate: Can it Work with Mac OS 10.8 Gatekeeper?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 01:51:20
问题 Our company develops our application for both OS X and Windows. We have an existing purchased code signing certificate from a non-Apple authority we use to ID our Windows installers. We distribute both our DMGs & MSIs through our own company website. The code signing guide for Mountain Lion's new Gatekeeper feature seems to imply that a non-Apple issued standard certificate would work. I could misinterpreting what "third-party" means in this case.: Note: Apple uses the industry-standard form

“X11/Xlib.h”: no such file or directory on mac os x mountain lion

时光总嘲笑我的痴心妄想 提交于 2019-11-29 01:33:33
I came across this when I was compiling a simple program: #include <X11/Xlib.h> #include <stdio.h> #include <stdlib.h> Display* display; int main(){ display = XOpenDisplay(""); if (display == NULL) { printf("Cannot connect\n"); exit (-1); } else{ printf("Success!\n"); XCloseDisplay(display); } } FYI, I have xQuartz installed. I compile this program with "g++ -o ex ex.cpp -L/usr/X11R6/lib -lX11" command. you need to compile with: g++ -o ex ex.cpp -I/usr/X11R6/include -L/usr/X11R6/lib -lX11 the X11 headers are installed with xQuartz , but you need to reference them explicitly If you install

Open an ipython notebook via double-click on osx

此生再无相见时 提交于 2019-11-29 00:48:54
问题 I've downloaded a couple of ipython notebooks, and I'd like to open them in browser tabs without navigating to the directory I've downloaded them to and running ipython notebook notebook_name.ipynb . I realize this probably means I'm lazy, but it seems like a common use case to me. Am I missing something obvious? 回答1: Use Pineapple application for opening and working on your IPython/Jupyter notebooks. It is pretty cool. Update: Now there is nteract, which is a new jupyter-like Desktop app.

PostgreSQL Mountain Lion socket issue

六月ゝ 毕业季﹏ 提交于 2019-11-28 23:14:45
问题 I've been trying to set up PostgreSQL on my system (OSX 10.8, clean install), but I'm running into trouble with using psql , createdb , etc. I've tried various solutions and none seem to work. The install was successful, and I proceeded to fix the known sockets issue using the following: mkdir /var/pgsql_socket sudo chown $USER /var/pgsql_socket Then I edited postgresql.conf , set unix_socket_directory to unix_socket_directory = '/var/pgsql_socket' and restarted Pg. That should apparently

Error Installing Homebrew - Brew Command Not Found

我只是一个虾纸丫 提交于 2019-11-28 22:24:15
问题 I've spent the bulk of my Friday trying to get the latest version of Ruby installed on my new MacBook Air (w/ Mountain Lion installed). I have all the latest versions of XCode and command line tools. But I can't seem to get Homebrew to work! Here's a screenshot of where I keep getting stuck (I'm a new user, so can't embed this image). As you can see I used the following to instal Homebrew: ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go/install)" While there was a "warning" it seemed