Ruby on Rails を実行して MS SQL DB に接続しようとしています。RoR をインストールし、接続先のデータベースを作成しました。モデルを作成してテストし、$ rake db:migrate を試行すると、rake aborted エラーが発生しました (ロードするファイルがありません -- tiny_tds)。この時点で、FreeTDS をダウンロードして解凍しました。$ ./configure を送信すると、問題が発生します。
以下は、コマンドと結果のエラー メッセージです (Windows 7 Pro OS ボックスの Cygwin ターミナル)。
$ ./configure
./configure: line 31: syntax error near unexpected token `newline'
'/configure: line 31: `;;
これは、FreeTDS 構成ファイルのコードです (19 ~ 33 行目)。
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
emulate sh
NULLCMD=:
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in #(
*posix*) :
set -o posix ;; #(
*) :
;;
esac
fi