osx-leopard

What are the default search directories to link a library on Mac OS X

血红的双手。 提交于 2019-12-01 00:59:48
问题 I've build the Google Test with CMake on Mac OS X and get two shared libraries: libgtest.dylib and libgtest_main.dylib . And now I need install both them. I know there are some default search directories on Linux, such as /usr/lib , /usr/local/lib , etc.. But I am unfamiliar with Mac OS X and don't know where to place those libraries. In Mac OS X Directory Structure, I find there are three directories of libraries: ~/Library , /Library and /usr/lib . And I've tried to place gtest libraries

How to setup kdiff3 in Mac OS?

对着背影说爱祢 提交于 2019-11-30 12:04:44
问题 In .gitconfig file I setup up the git diff as follows: [diff] tool = kdiff3 [difftool "kdiff3"] path = path_directory/kdiff3.app In this setting kdiff is not accessible and I get the following error when I run in terminal >> git difftool The diff tool kdiff3 is not available as 'Kdiff_local_software_path/kdiff3.app' fatal: external diff died, stopping at modified_file Do you have any suggestion I can fix this issue ? In my current setup Mac OS 10.10.5 git diff tool is git merge tool that I

Can't find git-svn on Mac OS X Leopard after installing via MacPorts

女生的网名这么多〃 提交于 2019-11-30 11:48:48
Okay people, I'm sure someone has had this issue and can help me out. I'm trying to get git-svn working on OSX Leopard (10.5.6). Using MacPorts I've run the install thus : sudo port install git-core +svn However, git-svn has not been installed and is not available. No errors came up during the lengthy dependency installation and so I'm at a loss. Thoughts would be greatly appreciated. On my install at least, I have to invoke it as git svn <cmd> instead of git-svn <cmd> . That's the same install I used which works fine. Have you added /opt/local/bin to your PATH ? git-svn is located in /opt

iPhone 3.1.3 sdk for Leopard

给你一囗甜甜゛ 提交于 2019-11-30 08:22:15
问题 Is it still possible to find the 3.1.3 SDK (w/ Xcode) for iPhone development on Leopard? I haven't upgraded to Snow Leopard yet, but I need to interact with devices running 3.1.3. I should have grabbed that version when it was up, but I didn't. So, does anyone have a link to the 3.1.3 iPhone SDK (w/ Xcode)? 回答1: Sorry, just copied the link I had in my Firefox download history instead of download manager. How about this? Note: you'll need to log in first. 回答2: You can get it here (requires

Installing mysql on leopard: “Can't connect to local MySQL server through socket”

旧城冷巷雨未停 提交于 2019-11-30 03:55:23
问题 I migrated to a new machine and used migration assistant to copy across my files (which seemed to copy across the DBs) but I had to use macports to install Mysql (whereas last time I compiled from source via Dan Benjamin's guide). For some reason, mysql is intermittently throwing the following error; Can't connect to local MySQL server through socket '/opt/local/var/run/mysql5/mysqld.sock' (2) It does this no matter what I try, which has included setting the socket in /opt/local/etc/mysql5/my

What's the best resource to learn how to write apps for Mac OS X?

瘦欲@ 提交于 2019-11-29 09:24:45
问题 I'd like to learn how to write application for Mac OS X. Like how to use XCode properly, Cocoa syntaxes and examples, etc. I'm already a web developer using ruby, php, mysql, rails, etc. I looked through google quite some times but never found something palpable to learn from. But I really want to make my own application, for fun and maybe business later. Thanks a whole bunch for your tips! 回答1: To jump right in as quickly as possible, I'd recommend going through the following Cocoa Dev

Making Python script accessible system wide

霸气de小男生 提交于 2019-11-29 08:23:49
Can someone tell me how to make my script callable in any directory? My script simply returns the number of files in a directory. I would like it to work in any directory by invoking it, instead of first being copied there and then typing python myscript.py I am using Mac OS X, but is there a common way to get it installed on Windows and Linux? If your script starts with a suitable shebang line, such as: #!/usr/bin/env python And your script has the executable bit set (for Linux, OS X, and other Unix-like systems): chmod +x myscript.py And the path to your script is in your PATH environment

iPhone 3.1.3 sdk for Leopard

梦想与她 提交于 2019-11-29 06:03:18
Is it still possible to find the 3.1.3 SDK (w/ Xcode) for iPhone development on Leopard? I haven't upgraded to Snow Leopard yet, but I need to interact with devices running 3.1.3. I should have grabbed that version when it was up, but I didn't. So, does anyone have a link to the 3.1.3 iPhone SDK (w/ Xcode)? Sorry, just copied the link I had in my Firefox download history instead of download manager. How about this ? Note: you'll need to log in first. You can get it here (requires login): https://developer.apple.com/downloads/ (filter for Xcode 3.1) Cp digicomm I searched for 2 weeks cause I

How to install MySQL gem on Mac OS X

我是研究僧i 提交于 2019-11-29 04:09:39
问题 What do I need to install mysql gem on Mac OS X ? I'm getting error "failed to build native extensions". 回答1: Install MySQL first, either by using binary or Homebrew. Then: gem install mysql2 Or: gem install ruby-mysql Just pick one and you are good to go. Edit In case you upgraded to MySQL version 5.6.12 on OS X, mysql2 will fail to compile. Solution is to downgrade MySQL as described here: https://stackoverflow.com/a/17252887/45254 Edit2 In case you don't want to have mysql installed (maybe

Xcode error: Failed to launch simulated application

爷,独闯天下 提交于 2019-11-29 02:05:51
Problem Unlike people have asked at here and here , I got this error after a brand new installation of Leopard (hackintosh), this problem really driving me crazy and nowhere else to find an clue, I googled and visited every article related with this, still can't get it solved. After the first time install iPhone SDK 2.2.1, start a new project(any type, Navigate based, OpenGL ES application), then build and go, I got the following problem: sometime it's: Failed to launch simulated application: Unknown error. and sometimes it's: Failed to launch simulated application: iPhone Simulator failed to