osx-lion

How to remove XCode 4.2 and install 4.1 to develop Ruby / Rails on OSX Lion?

梦想的初衷 提交于 2019-11-30 15:50:34
I develop Rails apps using RVM (ruby version manager). I had to download XCode, in the app store I got only version 4.2. Now RVM says that it can't build rubies properly with this XCode, so I followed this tutorial: http://www.frederico-araujo.com/2011/07/30/installing-rails-on-os-x-lion-with-homebrew-rvm-and-mysql/ I downloaded the XCode version from the link that is shown when you type rvm requirements in the console. (https://developer.apple.com/downloads/download.action?path=Developer_Tools/xcode_4.1_for_lion/xcode_4.1_for_lion.dmg) Now, there is a 3.09 GB .dmg with an installXCodeLion

32-bit OpenCV on OS X Lion? Possible?

混江龙づ霸主 提交于 2019-11-30 15:47:44
I've been googling and trying for days now, trying to figure out how to get 32-bit OpenCV working on OS X Lion, but can just find 64-bit version. So i have the following questions: OpenCV libraries come in 32-bit or 64-bit arch, is that correct? How do I get 32-bit OpenCV working on Lion? I've trying the following ways: - Install OpenCV via MacPorts: nope, MacPorts installs a 64-bit version.BI removed OpenCV and MacPorts. Install OpenCV 2.4.1 via Homebrew, using the following command: brew install opencv --build32 but looks like they are 64-bit too. Removed OpenCV and Homebrew. Install OpenCV

How do I get git to use Textmate as my default editor?

江枫思渺然 提交于 2019-11-30 15:39:05
At the command-line, if I do mate <filepath> it opens up the right file for me in TextMate. But when I do: $ mate -v open: invalid option -- v Usage: open [-e] [-t] [-f] [-W] [-R] [-n] [-g] [-h] [-b <bundle identifier>] [-a <application>] [filenames] [--args arguments] Also, when I do git commit , I see this: $ git commit error: cannot run mate: No such file or directory error: There was a problem with the editor 'mate'. Please supply the message using either -m or -F option. My ~/.bashprofile has these lines: #Set Textmate as my default editor from the command-line alias mate='open -a

Can't get mysql2 gem to work with MAMP2 and RVM on Lion, Rails3 app

送分小仙女□ 提交于 2019-11-30 15:28:40
问题 I am using MAMP2, rvm on OS X Lion and there is no way I can get mysql2 gem to work with my Rails app. I've followed this blog post http://blog.mirotin.net/35/mamp-1-9-5-mysql-5-5-9-and-ruby-mysql2 and this one http://www.pa-ket.com/blog/show/12-osx-ruby-mysql2-gem-python-mysqldb-using-mamp These were the steps: $ cd /tmp $ mv /Users/yourname/Desktop/mysql-5.5.9.tar.gz . $ tar xf mysql-5.5.9.tar.gz $ cd mysql-5.5.9 $ brew install cmake $ cmake . -DMYSQL_UNIX_ADDR=/Applications/MAMP/tmp/mysql

Can't get mysql2 gem to work with MAMP2 and RVM on Lion, Rails3 app

狂风中的少年 提交于 2019-11-30 14:34:31
I am using MAMP2, rvm on OS X Lion and there is no way I can get mysql2 gem to work with my Rails app. I've followed this blog post http://blog.mirotin.net/35/mamp-1-9-5-mysql-5-5-9-and-ruby-mysql2 and this one http://www.pa-ket.com/blog/show/12-osx-ruby-mysql2-gem-python-mysqldb-using-mamp These were the steps: $ cd /tmp $ mv /Users/yourname/Desktop/mysql-5.5.9.tar.gz . $ tar xf mysql-5.5.9.tar.gz $ cd mysql-5.5.9 $ brew install cmake $ cmake . -DMYSQL_UNIX_ADDR=/Applications/MAMP/tmp/mysql/mysql.sock -DCMAKE_INSTALL_PREFIX=/Applications/MAMP/Library This step failed: $ make -j 3 After

is there a way to run 2 NSAnimation objects simultaneously?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 14:06:28
问题 I created 2 NSAnimation objects of flipping the view with another view. I'd like to run 2 these animations simultaneously. I cannot use NSViewAnimation , since it's now about animating any of view properties. Here is the animation creation: self.animation = [[[TransitionAnimation alloc] initWithDuration:1.0 animationCurve:NSAnimationEaseInOut] autorelease]; [self.animation setDelegate:delegate]; [self.animation setCurrentProgress:0.0]; [self.animation startAnimation]; I tried to link 2

pkg-config cannot find .pc files although they are in the path

杀马特。学长 韩版系。学妹 提交于 2019-11-30 13:43:53
I am seeing a strange issue with pkg-config on Mac OSX-Lion. When running the python setup for module that I downloaded I receive the following error: aspen:python toddysm$ sudo ./setup.py install Password: `pkg-config --libs --cflags cld` returns in error: Package cld was not found in the pkg-config search path. Perhaps you should add the directory containing `cld.pc' to the PKG_CONFIG_PATH environment variable No package 'cld' found The `cld` C++ library is absent from this system. Please install it. However when checking in the /usr/local/lib folder I see the libs and the .pc file is in the

Cannot log in to phpMyAdmin with my root password for mySQL (on Mac OS X Lion)

馋奶兔 提交于 2019-11-30 12:10:01
So I am trying to log in to phpMyAdmin using my root password (Username: root Password: ******), however, I continue to receive the error: #2002 Cannot log in to the MySQL server I am pretty sure I know the root password, as I have typed into terminal on Mac OS X the line: sudo /usr/local/mysql/support-files/mysql.server start and was prompted with a "Password:" line. I typed the password, and the terminal read: Starting MySQL...SUCCESS! And thus the server started up. I am not sure why the same password is not working for phpMyAdmin. I have tried setting the password in terminal with the

Cannot compile ruby 1.9.3

不羁的心 提交于 2019-11-30 11:58:10
问题 When I run rvm install 1.9.3 --with-gcc=clang on Mac OSX Lion, ruby does not compile, and I get the following error in (.rvm/log/ruby-1.9.3-p374/make.log) [2013-01-29 16:31:05] make CC = clang LD = ld LDSHARED = clang -dynamic -bundle CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration

Trouble creating Security-Scoped Bookmark

冷暖自知 提交于 2019-11-30 11:56:33
I'm converting my Lion app to use the App Sandbox. I'm trying to make use of the security-scoped bookmarks feature introduced in 10.7.3 to allow persistent access to a folder. The code I have below returns a nil bookmark, and produces the following log message: XPC couldn't look up the Mach service for scoped bookmarks agent . I set the User Selected File Access entitlement to Read/Write Access , and also tried with and without the surrounding ..AccessingSecurityScopedResource calls. I think I'm doing everything right according to the documentation, so I'd appreciate any pointers. The code was