Project

General

Profile

Actions

Bug #13538

closed

head: illegal option -- c

Added by znz (Kazuhiro NISHIYAMA) almost 7 years ago. Updated over 6 years ago.

Status:
Closed
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 に書き換えます。

Actions #1

Updated by Anonymous almost 7 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r58548.


Use dd instead of head -c

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

Actions #2

Updated by usa (Usaku NAKAMURA) over 6 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

Also available in: Atom PDF

Like0
Like0Like0