Actions
Bug #13538
closedhead: illegal option -- c
Description
Solaris 11.3でビルドを試したところ、configure の最後で以下のようなエラーが出ました。
---
Configuration summary for ruby version 2.5.0
head: illegal option -- c
usage: head [-n #] [-#] [filename...]
/export/home/vagrant/opt/ruby
head: illegal option -- c
usage: head [-n #] [-#] [filename...]
${prefix}
head: illegal option -- c
(略)
head: illegal option -- c
usage: head [-n #] [-#] [filename...]
yes
head: illegal option -- c
usage: head [-n #] [-#] [filename...]
man
---
head -c は POSIX になくて、代わりの手段を探してみたところ、どの環境でも使えるシェルスクリプトを書くためのメモ ver4.51 - Qiita の headコマンド にあったので head -c26
を dd bs=1 count=26 2>/dev/null
に書き換えます。
Updated by Anonymous almost 8 years ago
- Status changed from Open to Closed
Updated by usa (Usaku NAKAMURA) almost 8 years ago
- Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: UNKNOWN, 2.3: DONTNEED, 2.4: DONE
Actions
Like0
Like0Like0