osx-mountain-lion

gnatbind: Cannot find: s-stalib.ali

僤鯓⒐⒋嵵緔 提交于 2019-12-11 20:22:25
问题 I installed GNAT on my OS X 10.8.5 machine with the following steps: Download GNAT GPL from http://libre.adacore.com/download/configurations Install with ./doinstall , accepting all the default options Added /usr/local/gnat/bin to $PATH After trying to compile a simple hello world example I get this error: $ gnat make hello gcc -c hello.adb gnatbind -x hello.ali gnatbind: Cannot find: s-stalib.ali gnatmake: *** bind failed. Any idea why this might happen? PS: gnat make -a hello works, but

Postgres Database Local Installation / Running

為{幸葍}努か 提交于 2019-12-11 19:42:01
问题 Trying to setup Postgres / PostGIS on OSX Mountain Lion to use with Django. However, something is wrong and I am not sure how to fix it. $ createdb geo createdb: could not connect to database postgres: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"? $ postgres -D /usr/local/var/postgres FATAL: lock file "postmaster.pid" already exists HINT: Is another postmaster (PID 221)

Psycopg2 Installing, Not Being Read by Python - OS 10.8.4, Python 2.7, PostgreSQL 9.2

眉间皱痕 提交于 2019-12-11 16:48:55
问题 OS 10.8.4, Python 2.7, PostgreSQL 9.2 I've been spending the past 10+ hours trying to get Psycopg2 installed for Django and am now receiving warnings and a failure that Google can't seem to help me with: After cleaning out all existing Psycopg2 & PostgreSQL files, reinstalling PostgreSQL 9.2 and Python 2.7, I was still getting the _PQbackendPID error when trying to install Psycopg2 with Pip. So I tried changing the ARCHFLAGS setting on install: $ sudo env ARCHFLAGS="-arch i386 -arch x86_64"

Install Ruby 1.9.3 after Ruby 2.0.0 has been installed

喜夏-厌秋 提交于 2019-12-11 15:06:48
问题 I installed the gcc-4.2 and got Ruby 2.0.0 installed, but in the process I deleted some older versions of ruby. Specifically, Ruby 1.9.3, now I want to go back and install that version using rvm install 1.9.3 but I keep getting errors. It is using gcc-4.2 to install, but gcc-4.2 is buggy to install 1.9.3. How do I install 1.9.3 now that I am in this state? Any thoughts or suggestions? These are the errors: Error running '__rvm_package_extract /Users/marty/.rvm/archives/yaml-0.1.4.tar.gz

Error Code: 1146. but Table does exist

走远了吗. 提交于 2019-12-11 13:36:20
问题 Using MySql 5.5.20 on OSX 10.8.3 I'm restoring a mysql dump from another server using the same major version (5.5) There are a bunch of table CREATE and INSERT statements, then towards the end there are some Triggers defined. When executing the line: /*!50003 CREATE*/ /*!50017 DEFINER=`root`@`localhost`*/ /*!50003 `TRIGGER delete_po_items AFTER DELETE ON CRM_PURCHASEORDER FOR EACH ROW BEGIN DELETE FROM CRM_PO_ITEM where CRM_PO_ITEM.PURCHASEORDER_ID = OLD.PURCHASEORDER_ID; END */ I get the

Installing PIL on OSX Mountain Lion for google app engine,

心不动则不痛 提交于 2019-12-11 11:42:43
问题 I know there are many questions on SO, and forum and blog posts around the web, but I keep running into the same problems. I'm trying to install PIL to use it for the app engine imaging api. In the api overview, google suggests installing it from pythonmac.org. When I try to install the dmg provided there, it tells me that it requires python 2.5 to be installed as the system python. A little googling around for this error, pointed me to this SO question: How to install PIL on Mac OSX 10.5.8

Error installing Homebrew

China☆狼群 提交于 2019-12-11 11:39:30
问题 I am trying to install Homebrew on my system with the command mentioned on their homepage ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)" but it's giving me following error - -e:67: warning: Insecure world writable dir /usr/local in PATH, mode 040777 -e:96: warning: Insecure world writable dir /usr/local in PATH, mode 040777 It appears Homebrew is already installed. If your intent is to reinstall you should do the following before running this installer again: rm -rf /usr

CUDA Toolkit 5.0 NSight build errors on Mac OS X ML

╄→гoц情女王★ 提交于 2019-12-11 10:47:44
问题 I have strange thing happened to my CUDA Toolkit 5.0. Few days ago both XCode and NSight Eclipse plugin lost ability to build even simplest CUDA related projects. XCode successfully building projects with custom build rule for C++ source files: nvcc "INPUT_FILE_NAME" But console output shows that run failed error: executable doesn't exist: '/Users/geraldus/Library/Developer/Xcode/DerivedData/CUDA_Hello_World-gzfzqivvsmeamfghnovopxapkdsz/Build/Products/Debug/CUDA Hello World' error: failed to

Joining array into $PATH in bash on OSX

 ̄綄美尐妖づ 提交于 2019-12-11 08:15:13
问题 Trying to customize the $PATH env variable on OSX with the following in .profile : PATH=( $HOME/bin /usr/local/bin /usr/bin /bin /usr/sbin/ /sbin ) PATH=$(IFS=:; echo "${PATH[*]}") export PATH When this is loaded, I verified the path by doing echo $PATH and the output looks correct: echo $PATH /Users/apple/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin However, it doesn't look like any of the above path works. ls - bash: (something like not able to find command ls, which is in /usr/bin)

“pecl install imagick” fails on mountain lion. can't find “wand/MagickWand.h”

邮差的信 提交于 2019-12-11 06:34:07
问题 Pretty much what it sounds like. I did: brew install imagemagick That seemed to go well--so the problem is not with imagemagick itself. I then tried to install the PHP extension (updating pear and pecl before trying): pecl install imagick It fails. Here's what happens near the end: running: make /bin/sh /private/tmp/pear/install/pear-build-brad.garrettZppuRq/imagick-3.0.1/libtool --mode=compile cc -I. -I/private/tmp/pear/install/imagick -DPHP_ATOM_INC -I/private/tmp/pear/install/pear-build