mozilla-japan / translation

Mozilla 関連のドキュメント翻訳リクエストとステータス管理
220 stars 13 forks source link

Replay attackの翻訳 #776

Open sshida opened 4 months ago

sshida commented 4 months ago

翻訳対象ページ (原文 URL)

https://developer.mozilla.org/en-US/docs/Glossary/Replay_attack

備考・ヘルプ

(特になし)

sshida commented 4 months ago

raspi5 + ubuntu 22.04でyarn installを試しましたがautoreconfがARM64 ELF binaryではないらしいエラーがあり、今回は断念しました。

.../mdn/content$ npx yarn install
yarn install v1.22.22
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
[4/5] Linking dependencies...
warning "@mdn/yari > @use-it/interval@1.0.0" has unmet peer dependency "react@>=16.8".
warning "@mdn/yari > react-markdown@9.0.1" has unmet peer dependency "@types/react@>=18".
warning "@mdn/yari > react-markdown@9.0.1" has unmet peer dependency "react@>=18".
warning "@mdn/yari > react-modal@3.16.1" has unmet peer dependency "react@^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18".
warning "@mdn/yari > react-modal@3.16.1" has unmet peer dependency "react-dom@^0.14.0 || ^15.0.0 || ^16 || ^17 || ^18".
warning "@mdn/yari > @codemirror/lang-css > @codemirror/autocomplete@6.11.0" has unmet peer dependency "@codemirror/view@^6.0.0".
warning "@mdn/yari > @sentry/node > @opentelemetry/instrumentation-connect > @opentelemetry/core@1.24.1" has incorrect peer dependency "@opentelemetry/api@>=1.0.0 <1.9.0".
warning "@mdn/yari > @sentry/node > @opentelemetry/instrumentation-mongodb > @opentelemetry/sdk-metrics@1.24.1" has incorrect peer dependency "@opentelemetry/api@>=1.3.0 <1.9.0".
warning "@mdn/yari > @sentry/node > @opentelemetry/instrumentation-mongodb > @opentelemetry/sdk-metrics > @opentelemetry/resources@1.24.1" has incorrect peer dependency "@opentelemetry/api@>=1.0.0 <1.9.0".
[5/5] Building fresh packages...
[-/5] ⠠ waiting...
[2/5] ⠠ gifsicle
[3/5] ⠠ mozjpeg
[4/5] ⠠ pngquant-bin

error /home/ss/mdn/content/node_modules/gifsicle: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments: 
Directory: /home/ss/mdn/content/node_modules/gifsicle
Output:
(node:9628) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Command failed: /home/ss/mdn/content/node_modules/gifsicle/vendor/gifsicle --version
/home/ss/mdn/content/node_modules/gifsicle/vendor/gifsicle: 1: ELF: not found
/home/ss/mdn/content/node_modules/gifsicle/vendor/gifsicle: 2: @8: not found
/home/ss/mdn/content/node_modules/gifsicle/vendor/gifsicle: 3: Syntax error: ")" unexpected

gifsicle pre-build test failed
compiling from source
Error: Command failed: /bin/sh -c autoreconf -ivf
/bin/sh: 1: autoreconf: not found
gurezo commented 4 months ago

@sshida 今まで、Raspberry Pi系で翻訳環境を作っていなかったのでわかりませんが、 下記コマンドを実行しても駄目でしょうか?

sudo apt-get -y update
sudo apt-get -y upgrade
sudo apt-get -y autoremove
sudo apt-get -y autoclean
hATrayflood commented 4 months ago

gifsicle/lib/install.js を見た感じ、同梱のビルド済みバイナリが動くか確認し、ダメならソースからビルドするようです。 https://github.com/imagemin/gifsicle-bin/blob/main/lib/install.js

で、ソースビルドに必要な autoreconf がないと怒られてるので、まずは以下のコマンドで autoreconf をインストールしてください。パッケージ名は autoreconf ではなく autoconf です。 sudo apt-get install autoconf

コンパイラなども必要になるはずなので、エラーメッセージから必要なコマンドを都度インストールしてください。