Project

General

Profile

Bug #13538

head: illegal option -- c

Added by znz (Kazuhiro NISHIYAMA) over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-05-02 trunk 58541) [i386-solaris2.11]
[ruby-dev:50106]

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 -c26dd bs=1 count=26 2>/dev/null に書き換えます。

Associated revisions

Revision 929807a9
Added by kazu over 2 years ago

Use dd instead of head -c

[Bug #13538] [ruby-dev:50106]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 58548
Added by znz (Kazuhiro NISHIYAMA) over 2 years ago

Use dd instead of head -c

[Bug #13538] [ruby-dev:50106]

Revision 58548
Added by kazu over 2 years ago

Use dd instead of head -c

[Bug #13538] [ruby-dev:50106]

Revision 58548
Added by kazu over 2 years ago

Use dd instead of head -c

[Bug #13538] [ruby-dev:50106]

History

#1

Updated by Anonymous over 2 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r58548.


Use dd instead of head -c

[Bug #13538] [ruby-dev:50106]

#2

Updated by usa (Usaku NAKAMURA) over 2 years ago

  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: UNKNOWN, 2.3: DONTNEED, 2.4: DONE

Also available in: Atom PDF