osx-lion

How do I get “gem install” to work on OS X Lion with Ruby 1.8.7 without seg faulting?

六月ゝ 毕业季﹏ 提交于 2019-11-27 20:50:23
问题 I am novice rails/terminal user and just did a fresh Lion install + Xcode after that. Installed RVM but when I execute "gem install [any gem]" in terminal, I get this error: /Users/[my user]/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/timeout.rb:60: [BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.0.0] Abort trap: 6 Can anyone help, please? PS. I am using - and in the project I am working on, I must use ruby v1.8.7. 回答1: Make sure your rvm is up to date: rvm get

How can I test for OpenCL compatibility?

落花浮王杯 提交于 2019-11-27 20:13:04
I have a MacBook Pro 13' with an integrated Intel HD 3000 and a i7 core. I have to use Parallel Programming. My teaching advisors couldn't tell me if it would work with my MacBook. Is there a test I could run on my Laptop for testing? + I found this, but there is only a Linux and Windows SDK ... maybe the Linux version works also for Mac. What should I do? vocaro's answer is absolutely correct; you can always use the CPU compute device on Snow Leopard and Lion, even if your particular graphics chip doesn't support OpenCL. The following program will show you the OpenCL-capable devices on a

How to solve Xcode 4.1 (LION) GPS error?

穿精又带淫゛_ 提交于 2019-11-27 19:54:03
问题 My project worked perfectly on simulator+device, but now, after upgrading to lion os and xcode 4.1 , I get this error when gps is active! server did not accept client registration 68 It's a gps based application, and i'm nervous to not debug app in simulator! Any idea to solve this issue? UPDATE : Gps on Simulator doesn't work also on Xcode 3.2.6 + LION. EDIT : Apple response on bug tracker: After further investigation it has been determined that this is a known issue, which is currently

Xcode 4.1 GM Not Installing (must quit iTunes) on Lion?

拥有回忆 提交于 2019-11-27 19:22:19
问题 I am trying to install Xcode 4.1 GM on my Lion mac but it's not working. When it is almost finished, I get the popup to quit iTunes even though it is already quit. So the only option I have is to quit iTunes helper or alert in activity monitor, then it finishes the install. However then Xcode crashes on launch. Any ideas? 回答1: You can go into Activity Monitor and Quit the iTunes helper. That will also get Xcode to finish. 回答2: Looks like you've solved the install problem. It's not a solution

Getting a python virtual env error after installing Lion

折月煮酒 提交于 2019-11-27 18:22:37
I haven't touched python and virtualenv in a while, and I believe I setup my MBP with virtualenv and pip, but have totally forgotten how this stuff works. After installing lion, I'm getting this error when I open up a new terminal window: Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named virtualenvwrapper.hook_loader virtualenvwrapper.sh: There was a problem running the initialization hooks. If Python could not import the module virtualenvwrapper.hook_loader, check that virtualenv has been installed for VIRTUALENVWRAPPER_PYTHON=/usr/bin/python

OS X Lion, Attempting Nokogiri install - libxml2 is missing

霸气de小男生 提交于 2019-11-27 18:08:57
sudo gem install nokogiri Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /Users/sajeev86/.rvm/rubies/ruby-1.8.7-p352/bin/ruby extconf.rb checking for libxml/parser.h... no ----- libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. ----- *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

How can I install Ruby 1.9.3 in Mac OS X Lion?

偶尔善良 提交于 2019-11-27 17:26:22
I am trying to install Ruby 1.9.3 but am having problems. I installed RVM, then typed: rvm install 1.9.3 The output says: ERROR: Error running ' ./configure.... The log says: configure: WARNING: unrecognized options: --with-libyaml-dir checking build system type... x86_64-apple-darwin11.2.0 checking host system type... x86_64-apple-darwin11.2.0 checking target system type...x86_64-apple-darwin11.2.0 checking whether the C compiler works... no configure: error: in `/Users/myuser/.rvm/src/ruby-1.9.3-p0': configure: error: C compiler cannot create executables See `config.log' for more details I

Hadoop on OSX “Unable to load realm info from SCDynamicStore”

吃可爱长大的小学妹 提交于 2019-11-27 17:01:20
I am getting this error on startup of Hadoop on OSX 10.7: Unable to load realm info from SCDynamicStore put: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/travis/input/conf. Name node is in safe mode. It doesn't appear to be causing any issues with the functionality of Hadoop. Matthew Buckett's suggestion in HADOOP-7489 worked for me. Add the following to your hadoop-env.sh file: export HADOOP_OPTS="-Djava.security.krb5.realm=OX.AC.UK -Djava.security.krb5.kdc=kdc0.ox.ac.uk:kdc1.ox.ac.uk" Matthew L Daniel As an update to this (and to address David

ImageMagick and OS X Lion trouble

杀马特。学长 韩版系。学妹 提交于 2019-11-27 16:58:07
[edit] I was troubleshooting problems with my development environment when I noticed one of my problems was the dependency on ImageMagick, since it's a vital part of my app. After upgrading to OS X Lion (10.7) i no longer had ImageMagick available, i then tried installing again using MacPorts without success, i then installed from source, and the install wasn't very successfully i had convert and identify but it output error messages that i unfortunately dont have anymore, i by some strange reason decided to remove all of my MacPort libraries and started using Homebrew, i tried installing

How can I eliminate slow resolving/loading of localhost/virtualhost (a 2-3 second lag) on Mac OS X Lion?

故事扮演 提交于 2019-11-27 16:50:13
Since setting up my development environments on Mac OS X Lion (brand new macbook air purchased in January 2012), I have noticed that resolving to a virtual host is very slow (around 3 seconds) the first time but after that is fast as long as I continue loading it regularly. If I leave it untouched for a couple of minutes and then reload again, the first reload is (again) painfully slow; seems like something is being cached. As can be seen below I am not using the .local TLD. My setup: Apache 2 - MySQL - PHP installed and enabled - added a couple of virtual hosts one of which I created for