Showing posts with label OS X. Show all posts
Showing posts with label OS X. Show all posts

04 October 2012

Compiling libeep on OS X (for importing data into EEGLAB)

For OS X, there are a few important tips: 

  1. You need a compiler installed -> you need XCode installed. You can get these via the App Store for free or, pre-Lion releases, from your install disc.  
  2. Most important tip** Before running ./configure --enable-matlab, you need to set the $MATLAB environment variable, which isn't set by default on OS X. Do this via export MATLAB=/Applications/MATLAB_R2012a.app (with 'R2012a‘ changed to whatever your MATLAB version is.) 
  3.  You don't need to 'make install' for using EEGLAB. Instead just copy the .mexmaci64 files from the mex/matlab folder to the anteepimport1.08 (version number may differ, but that was the latest based on a SVN checkout from a few days ago) subfolder in the eeglab plugins folder. If you there is no anteepimport plugin folder, then you need to create one and copy the contents of both mex/matlab and mex/eeglab to it. 
  4.  If you need to make install for other reasons, you have to sudo

rEFIt, broken GRUB repair following updates

If you mess up your GRUB configuration on an Intel Mac dual booting via rEFIt (or rEFInd), there are several things you can do.

There's all sorts hints and tips that may or may not work on your setup and are all very particular to your partitioning scheme, but I found a few to be quite informative, especially in understanding  the underlying technical problem (ie why GRUB is such a pain to get working right in these setups).

https://bbs.archlinux.org/viewtopic.php?id=99097
http://mac.linux.be/content/problems-refit-and-grub-after-installation
http://ubuntuforums.org/showthread.php?t=1704357

In the last one, the author of an important EFI / GPT-MBR hybrid utility chips in some advice and information. I would try to avoid doing a hard recreation of your hybrid MBR though. One thing you will definitely need is some type of live boot disk.

After trying several bits and pieces of the above advice, and apparently failing to properly reinstall GRUB, I went from a working GRUB that just couldn't find my OSes after selecting to them to a GRUB that never got past displaying "loading".  If you get that far, then you may have to force an install.

Based on this post, I wrote this script for my set up. And that fixed things.