osx-mavericks

Unable to use xcodebuild on Mavericks with Command Line Tools installed

 ̄綄美尐妖づ 提交于 2019-11-28 03:31:32
I have installed the Command Line Tools: $ xcode-select --print-path /Library/Developer/CommandLineTools However, when anything tries to use xcodebuild , I get the following error: $ /usr/bin/xcodebuild xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance On Mountain Lion it was possible to use this without installing the whole of Xcode, rather just the Command Line Tools. Is it possible to do this on Mavericks? How can I get it working? N.B. This is on a clean install of Mavericks. Update:

Python post osx notification

邮差的信 提交于 2019-11-28 03:02:18
Using python I am wanting to post a message to the OSX Notification Center. What library do I need to use? should i write a program in objective-c and then call that program from python? update How do I access the features of notification center for 10.9 such as the buttons and the text field? Peter Varo You should install terminal-notifier first with Ruby for example: $ [sudo] gem install terminal-notifier And then you can use this code: import os # The notifier function def notify(title, subtitle, message): t = '-title {!r}'.format(title) s = '-subtitle {!r}'.format(subtitle) m = '-message {

Ruby on Rails: no implicit conversion of Array into String (DEVISE)

家住魔仙堡 提交于 2019-11-28 02:14:16
问题 I recently upgraded to OSX Mavericks 10.9 from 10.7, and since then it has been causing me lots of troubles. I upgraded Xcode, Command line tools, reinstalled homebrew and rvm, and finally got rails s to work (I spent a good 5 hours getting rmagick to work again). However, now when I try to access my app from my localhost, I get this error no implicit conversion of Array into String Here is the rails log: Started GET "/" for 127.0.0.1 at 2014-05-05 02:20:00 -0700 Processing by

Open Java applications fail silently on OS X Mavericks

五迷三道 提交于 2019-11-27 22:50:28
When opening Intelli J or Android Studio after the Mavericks update nothing happens, fails silently. Java and javac all work from the command line. Opening the apps from the command line gives this error: LSOpenURLsWithRole() failed with error -10658 for the file /Applications/Android Studio.app. Opening Intelli J's idea_appLauncher (/Applications/...app/Contents/MacOS/idea_appLauncher) from the command line gave away some more information: someuser@machine:~$ /Applications/IntelliJ\ IDEA\ 12\ CE.app/Contents/MacOS/idea_appLauncher ; exit; No Java runtime present, requesting install. logout

<omp.h> library isn't found in the GCC version (4.2.1) in Mavericks

五迷三道 提交于 2019-11-27 21:34:19
问题 I have a problem with GCC. I want to update it to a new version, from the 4.2.1, to program with parallel programming. However, in this version there is no library . How can I download an updated version? The error that the terminal give me is: omp_hello.c:11:10: fatal error: 'omp.h' file not found #include <omp.h> ^ 1 error generated. 回答1: download gcc-4.9-bin.tar.gz download or newer from http://hpc.sourceforge.net/: http://prdownloads.sourceforge.net/hpc/gcc-4.9-bin.tar.gz cd to your

Pip Install Twisted Error 1

蓝咒 提交于 2019-11-27 20:40:19
问题 When using pip install Twisted in virtualenv on Mac osx 10.9.4, I get this result: Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/9r/3b500gbs3093ms87mqqbckr80000gn/T/pip-build-doynftp7/twisted/ I am not sure how to resolve. I used easy_install, but I get a SSL verification issue. Anyone have similar issue? The rest of error message is below. Collecting twisted Using cached Twisted-16.6.0.tar.bz2 Complete output from command python setup.py egg_info:

Applescript fails with error (-600) when launched over ssh on Mavericks

风流意气都作罢 提交于 2019-11-27 20:32:21
I've tried searching for this, and have seen others with similar problems but don't seem to have found an answer anywhere.... I have an AppleScript that I am trying to run over ssh so that I can remotely control my mac. This has worked previously with OSX 10.8 but no longer seems to work since upgrading to 10.9. The command I am executing is: ssh <user>@mymac.local "osascript -e 'tell application \"iTunes\" to play'" I have already set up RSA keys so the ssh session opens correctly I am connecting as the same user that the Mac is currently logged in and running under iTunes is running on the

Installing pg gem; ERROR: Failed to build gem native extension

给你一囗甜甜゛ 提交于 2019-11-27 20:05:16
问题 After updating to OS X 10.9 Mavericks I tried to start a Rails 3 app, but the connection to the PG database was not working. Checking on PGAdmin III, the database is still there and it works fine. So I tried to reinstall the pg gem: gem uninstall pg gem install pg But the last command doesn't succeed, and gives the following error: Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /Users/XXX/.rvm/rubies/ruby-1.9.3

Get list of open files (descriptors) in OS X

折月煮酒 提交于 2019-11-27 19:14:46
I would like to get a list of open files in a process on os x (10.9.1). In Linux I was able to get this from /proc/PID/fd . However I'm not sure how to get the same on OS X. I found that the procfs is not present on the OS X (by default. possible implementations present, but I do not want to go that way). So how do I get (natively) the list of open files in a process on OS X. One way is lsof . is there any other support available? please let me know where I can get more info on this. Thanks. At least on OSX 10.10 (Yosemite, didn't check on Mavericks), you can get the list of open files by

Applescript fails with error (-600) when launched over ssh on Mavericks

别等时光非礼了梦想. 提交于 2019-11-27 19:10:20
问题 I've tried searching for this, and have seen others with similar problems but don't seem to have found an answer anywhere.... I have an AppleScript that I am trying to run over ssh so that I can remotely control my mac. This has worked previously with OSX 10.8 but no longer seems to work since upgrading to 10.9. The command I am executing is: ssh <user>@mymac.local "osascript -e 'tell application \"iTunes\" to play'" I have already set up RSA keys so the ssh session opens correctly I am