osx-mountain-lion

Xlib.h not found when building graphviz on Mac OS X 10.8 (Mountain Lion)

你。 提交于 2019-11-28 04:20:41
When using homebrew to install graphviz, the script gets to the point of "Making install in tkstubs" and then throws the following fatal error: In file included from tkStubLib.c:15: /usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not found #include <X11/Xlib.h> I have installed XQuartz as X11 has been dropped in Mountain Lion, but I'm unsure if it is installed correctly. The location of Xlib.h is: /opt/X11/include/X11/Xlib.h There are also two symlinks to /opt/X11, they are: /usr/X11 /usr/X11R6 Does this look like the correct setup to you? I've never dealt with X11 or XQuartz until

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

帅比萌擦擦* 提交于 2019-11-28 03:51:10
问题 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

How can I install Ruby 1.9.3 in Mac OS X Mountain Lion without Xcode?

烂漫一生 提交于 2019-11-28 03:49:41
I would like to know about alternative ways to build a development machine for Ruby 1.9.3 on OS X 10.8 Mountain Lion, that does not require Xcode. Mountain Lion is now Golden Master as I'm writing this question, so it could be considered as final version. That cannot be said about Xcode, that is a preview release yet. RVM recommends to install osx-gcc-installer over Xcode, but I would like not to mess my system. What is the cleanest way to install Ruby 1.9.3 on Mountain Lion without Xcode? David Morales osx-gcc-installer turns out to be a very good option to replace Xcode in order to install

Mountain Lion X11 libraries can't ./configure

南楼画角 提交于 2019-11-28 03:49:21
问题 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

Mountain Lion Postgres could not connect

梦想与她 提交于 2019-11-28 02:59:27
问题 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

Issue with installing ImageMagick and rmagick on Mountain Lion

霸气de小男生 提交于 2019-11-28 02:56:41
问题 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':

Access Denied for MYSQL ERROR 1045

雨燕双飞 提交于 2019-11-27 23:06:10
I just got a new macbook pro (OS X 10.8.2) and am attempting to get mysql set up on it. So far I've been able to get it installed but I cannot get my root user access (or any user for that matter). I plan on using this for Python , on my other computer I only use MYSQL (no MAMP) and I prefer to keep it that way. For reference, I did the following: $ alias mysql=/usr/local/mysql/bin/mysql $ sudo /Library/StartupItems/MySQLCOM/MySQLCOM start $ alias mysqladmin=/usr/local/mysql/bin/mysqladmin When i enter mysql or mysql -u root -p it gives me this: ERROR 1045 (28000): Access denied for user 'root

Problems installing Ruby on Mountain Lion - ruby 1.9.3 wont' compile

心不动则不痛 提交于 2019-11-27 23:01:31
I have seen a number of posts on this before and have followed their instructions but nothing is working. I'll outline below what I have done, and the instructions I have follows - would be grateful for any advice! I have followed the following installation instructions: http://pragmaticstudio.com/blog/2010/9/23/install-rails-ruby-mac I have downloaded X-code for OSX Mountain Lion, and installed the gcc compiler: $ gcc --version i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) Copyright (C) 2007 Free Software Foundation, Inc. This is free

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

别说谁变了你拦得住时间么 提交于 2019-11-27 21:42:10
问题 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. 回答1: you need to compile with: g++ -o ex ex.cpp -I/usr/X11R6/include -L/usr/X11R6/lib

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

北城以北 提交于 2019-11-27 21:36:27
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? This probably happens because you did not re-install the Command Line Tools after upgrading. Usually XCode should be upgraded to the latest version (4.4) (I believe when I updated to 10.8 I also updated a whole