Monthly Archives: September 2014

[zz] Homebrew: ruby bad interpreter: No such file or directory

Today when I try to install quantlib (and boost) on my laptop, I got the error message for running macbook:~ cgao$ brew install boost /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 23: /usr/local/Library/brew.rb: Undefined error: … Continue reading

Posted in Uncategorized | 1 Comment

remove files in bash

I have files image1, …, image5. I want to rename them as image_test_2,…., image_test_6  for i in $(seq 5 -1 1); do mv -i image$i image_test_$[i+1]; done Do it in reversing way to avoid overwritting. And better use “-i” to … Continue reading

Posted in PC problem | Leave a comment