osx-lion

adb on OSX Lion, but can't connect to galaxy 10.1 tab, but works fine in linux

喜你入骨 提交于 2019-12-03 14:17:30
I am trying to connect to a Galaxy Tab 10.1 running Android 3.2 I have seen several similar questions, but they all seemed to be related to having the device setup incorrectly. I have it set to allow "Unknown Sources" and I also have "Usb Debugging" enabled. I am able to use adb on both linux and windows machines so my tablet would seem to be correctly setup and the cable is functioning correctly. When I plug it in to my macbook pro the tab responds with a ping to show it is aware of the connection, but when I run adb devices no device is listed. My OSX install is fairly new and I have not

Ruby fails on OSX Lion with rbenv

只愿长相守 提交于 2019-12-03 13:54:51
I've been trying to install Ruby on my Lion machine (OSX 10.7.3). I installed rbenv and ruby-build and am trying to get 1.9.2-p290 on my machine. Here is the output of the install failing: $ rbenv install 1.9.2-p290 Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz... Installing yaml-0.1.4... Installed yaml-0.1.4 to /Users/CSC/.rbenv/versions/1.9.2-p290 Downloading http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz... Installing ruby-1.9.2-p290... BUILD FAILED Inspect or clean up the working tree at /var/folders/vm/gcqcld015jx025m7qgtxvw0m0000gn/T/ruby-build

Lion update removed the 'postgres' user. How to restore it?

故事扮演 提交于 2019-12-03 13:45:31
I've installed postgres with the kyngchaos installer a couple of months ago. I've now updated to OSX Lion, but the database server fails to start. A comment on kyngchaos's blog ( http://www.kyngchaos.com/blog/2011/20110723_lion ) made me look at the 'postgres' user: it doesn't exist anymore! At least, I can't "sudo su postgres" anymore. So I figure that's the reason my server doesn't run. How can I best restore that user? (Answering myself) In the end, the only thing I needed to do was to re-create the "postgres" user. Beforehand, I listed the contents of /usr/local/pgsql/ and saw that for

has anyone seen “[StdMovieUISliderCell sliderType]: unrecognized selector sent to instance”

这一生的挚爱 提交于 2019-12-03 12:21:15
I am using QTMovieView and , sometimes, I get the following log and follow by an unknown selector exception. The program has options for users to set to show and hide controller of the QTMovieView. The SDK that the program is linking against is 10.7 "[StdMovieUISliderCell sliderType]: unrecognized selector sent to instance" thanks for any help This looks like a bug that was introduced in OS X Mountain Lion 10.8 ( Edit: there are also reports on OS X 10.7, see comments below) . I guess that QTMovieView will get deprecated in one of the next major OS X releases. The best solution is to move to

“Illegal instruction: 4” shows up in OS X Lion

风流意气都作罢 提交于 2019-12-03 12:10:42
Some C++ application compiled and run seamlessly in OS X Snow Leopard, but I changed recently to OS X Lion, and here, although there is no compilation error, when I try to run it I get the error "Illegal instruction: 4", I have no clue, what could be the reason? PS: These are the linking flags I use -Wl,-stack_size,0x10000000,-stack_addr,0xc0000000 This is the output I get when I do sudo truss executable setrlimit returned result = -1 SYSCALL(args) = return getpid(0x0, 0x0, 0x0) = 32993 0 __sysctl(0xBFFFF5EC, 0x3, 0xBFFFF5E8) = 0 0 issetugid(0xBFFFF5EC, 0x3, 0xBFFFF5E8) = 0 0 csops(0x0, 0x0,

./configure can't find C compiler after OS X Lion installation

喜夏-厌秋 提交于 2019-12-03 11:55:28
问题 While cc and gcc are perfectly in their right path ( /Developer/usr/bin in OS X Lion), running ./configure tries to compile it through a hard coded (I guess) path - /usr/bin . Where do I setup configure's paths? 回答1: The right answer is to install Xcode 4 from the App Store (free) and then run /Applications/Install Xcode.app. Then everything you need will be in /usr/. 回答2: The best thing to do is actually to download and install the new Command Line Developer Tools package from Apple, which

git svn migration failing with svn 1.8

ε祈祈猫儿з 提交于 2019-12-03 11:26:59
问题 I'm following the steps in: http://git-scm.com/book/en/v2/Git-and-Other-Systems-Git-as-a-Client to move an svn repository to git. My local svn version is: $ svn --version svn, version 1.8.10 (r1615264) compiled Aug 25 2014, 10:52:18 on x86_64-apple-darwin12.5.0 git version: $ git --version git version 2.1.0 When I clone the repository I get an error reading the local file system format: $ git svn clone file:///tmp/test-svn -s Initialized empty Git repository in /private/tmp/test-svn/.git/

Getting sudo to ask for password via the GUI

依然范特西╮ 提交于 2019-12-03 11:07:18
I have a lua script, running on the Mac, that needs to call sudo. I'd hoped that Mac OS would automatically bring up a password request dialog, but instead it the command fails by returning 256. Is there anyway that I can achieve my goal? Tim Quick and easy way: run it like this /usr/bin/osascript -e 'do shell script "/path/to/myscript args 2>&1 etc" with administrator privileges' Proper and configurable way: use AuthorizationExecuteWithPrivileges API from Authorization Services (in Security.framework). Both will display standard Mac OS X GUI asking for administrator password and then execute

How to install make and gcc on a mac?

烂漫一生 提交于 2019-12-03 10:45:33
问题 I want to install Eclim on my macbook air (2011 version). But there are some problems I faced during the installation. It told me that I did not install make and gcc. I tried to find the solution for it but all solutions are talking about using XCode. In fact, I installed the XCode. But I still cannot install Eclim because there are no make and gcc installed. How can I install them so that I can install Eclim? 回答1: Update for newer versions: The command line versions can now be installed

Using the python multiprocessing module for IO with pygame on Mac OS 10.7

亡梦爱人 提交于 2019-12-03 10:43:19
I use pygame for running experiments in cognitive science, and often I have heavy I/O demands so I like to fork off these tasks to separate processes (when using a multi-core machine) to improve performance of my code. However, I encountered a scenario where some code works on my colleague's linux machine (Ubuntu LTS), but not on my mac. Below is code representing a minimal reproducible example. My mac is a 2011 Macbook Air running 10.7.2 and using the default python 2.7.1. I tried both pygame as installed via pre-built binary , and I also then tried after installing both SDL and pygame from