osx-mavericks

How to fix libv8 error from Gemfile on Mavericks?

旧巷老猫 提交于 2019-12-31 12:41:31
问题 When I run bundle install I get An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue. Make sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling. Libv8 is dependency for lunchy and therubyracer gems. I have locked in my Gemfile.lock libv8 gem on 3.11.8.17 But I found that I can downgrade it to 3.3.10.4 bundle install / update: libv8 (therubyracer) installation fails (with native extensions) How to do that? I also found working 3.11.8.17 gem but don

How to reference to images and other objects in Xcode and where to place them physically?

ⅰ亾dé卋堺 提交于 2019-12-31 07:32:48
问题 This question have been asked numerous times, but I have not managed to get an answer that I am happy with. Probably because the most answers is of "how do I do this?" type and also get "this way you do this" answers. The problem I have is that I need to use absolute paths when I want to reference to images in Xcode (version 6.0.1). I am quite sure that I could place the images in my working directory which is something like: /Users/patrikek/Library/Developer/Xcode/DerivedData/ChessGame-

How to reference to images and other objects in Xcode and where to place them physically?

∥☆過路亽.° 提交于 2019-12-31 07:32:13
问题 This question have been asked numerous times, but I have not managed to get an answer that I am happy with. Probably because the most answers is of "how do I do this?" type and also get "this way you do this" answers. The problem I have is that I need to use absolute paths when I want to reference to images in Xcode (version 6.0.1). I am quite sure that I could place the images in my working directory which is something like: /Users/patrikek/Library/Developer/Xcode/DerivedData/ChessGame-

SSLRead() error using Git in Mavericks OS X 10.9.2

痴心易碎 提交于 2019-12-31 03:10:49
问题 Since I installed Git through Xcode-tools in my MBP with Mavericks OS X 10.9.2. I am not able to clone a existing repo into my computer. I'm pretty sure that the problem is in my current computer, because the repo works fine from other PCs. The error is: amoreno$ git clone https://git.cen * * 14.git/ Cloning into 'ttc14'... fatal: unable to access 'https://git.cen ****14.git/': SSLRead() return error -9841 I have ruled out completely problems with the SSL certificate, since the global config

How to write usb touchscreen driver kext in os x 10.9?

可紊 提交于 2019-12-30 11:48:25
问题 I want to write a usb touchscreen kext for usb touch screen . I have read the Kernel Extension Programming Topics and the I/O Kit Fundamentals etc, My question is, 1 . how to get the input report messages from touch screen ? 2 . how to post the coordinate info to system ? I have no idea, anybody help? 回答1: It depends on the hardware; moreover, this question is quite broad - you'll need to be more specific in your question to get more specific answers. I'll try to provide a broad overview: A

Segfault 11 with pandas with Python v2.7.6 RC1 on Mac OS X 10.9

你说的曾经没有我的故事 提交于 2019-12-30 11:39:11
问题 In [1]: import json In [2]: path = 'ch02/usagov_bitly_data2012-03-16-1331923249.txt' In [3]: from pandas import DataFrame, Series; In [4]: records = [json.loads(line) for line in open(path)] In [5]: frame = DataFrame(records) In [6]: frame['tz'][:10] Segmentation fault: 11 Any access to frame results in a segfault. I have already upgraded to Python 2.7.6 RC1. Also happened in 2.7.5, also happens outside ipython. What am I to do? 回答1: This appears to be a bug in Numpy that has been fixed

Set up g++ on OS X

旧城冷巷雨未停 提交于 2019-12-30 10:38:09
问题 I just updated to OS X Mavericks and it seems it messed up my whole compiler setup. Not only do I have to reinstall a JDK in order to use a Java compiler, I get the following error when I'm trying to compile C/C++ using GCC/G++: /usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.1/4.7.2/../../../../include/c++/4.7.2/cwchar:46:19: fatal error: wchar.h: No such file or directory Not sure what to think other than upgrading messed it up. My question is: how do I set up g++ to compile

SED without backup file

一曲冷凌霜 提交于 2019-12-30 00:30:19
问题 I use the following sed command to replace text in the file: sed -i -e 's/noreply@\(.*\).example.com/noreply@example.com/' cron.yaml But it create backup of the file cron.yaml under name cron.yaml-e . I tried to move -i to the end: sed -e 's/noreply@\(.*\).example.com/noreply@example.com/' -i cron.yaml but in this case sed returns an error. How should I modify my command line to avoid backup file creation? 回答1: According to the man page you should specify a zero length extension on macOS sed

Install Nokogiri 1.6.1 under Ruby 2.0.0p353 (rvm based installation) fails (OSX Mavericks)?

落花浮王杯 提交于 2019-12-29 07:38:07
问题 I've tried to install Nokogiri 1.6.1 under Ruby and RVM but is failing with the following error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/lmo0/.rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb Extracting libxml2-2.8.0.tar.gz into tmp/x86_64-apple-darwin13.0.0/ports/libxml2/2.8.0... OK Running 'configure' for libxml2 2.8.0... OK Running 'compile' for libxml2 2.8.0... OK Running 'install' for libxml2 2.8.0... OK Activating libxml2 2.8.0 (from /Users

Install wxPython on Mac os Mavericks

浪尽此生 提交于 2019-12-29 05:21:07
问题 I am on a Macbook Air, running Mavericks. Today I downloaded wxPython via their website, however, when I click on the install package I get: wxPython3.0-osx-cocoa-py2.7.pkg” is damaged and can’t be opened. You should eject the disk image. Anyone have any ideas to get around this, thanks. 回答1: According to #14523, the problem is that the package is not signed (and it's an old-style package, which isn't fully supported anymore, which is why you get the wrong error message, and the usual