martinthomson / i-d-template

A template for IETF internet draft git repositories
Other
208 stars 182 forks source link

Discussion - command not found #256

Closed maifeeulasad closed 3 years ago

maifeeulasad commented 3 years ago

When I tried : make -f lib/setup.mk

Main error :

bash: line 5: kramdown-rfc2629: command not found
bash: line 5: xml2rfc: command not found

Complete log :

lib/main.mk:20: Forcing rebuild of .targets.mk
lib/main.mk:32: .targets.mk: No such file or directory
lib/setup.mk:20: Check names: draft-test.md should include a name of draft-test-latest.
lib/setup.mk:39: lib/.template-files.mk: No such file or directory
lib/setup.mk:20: Check names: draft-test.md should include a name of draft-test-latest.
mkdir -p ./
cp lib/template/Makefile Makefile
mkdir -p ./
cp lib/template/.gitignore .gitignore
mkdir -p ./
cp lib/template/CONTRIBUTING.md CONTRIBUTING.md
mkdir -p ./
cp lib/template/LICENSE.md LICENSE.md
mkdir -p .circleci/
cp lib/template/.circleci/config.yml .circleci/config.yml
mkdir -p .github/workflows/
cp lib/template/.github/workflows/ghpages.yml .github/workflows/ghpages.yml
mkdir -p .github/workflows/
cp lib/template/.github/workflows/publish.yml .github/workflows/publish.yml
mkdir -p .github/workflows/
cp lib/template/.github/workflows/archive.yml .github/workflows/archive.yml
cat draft-test.md  | kramdown-rfc2629 --v3 | lib/add-note.py | xml2rfc -q -s 'Setting consensus="true" for IETF STD document' --rfc-reference-base-url https://tools.ietf.org/html/ --id-reference-base-url https://tools.ietf.org/html/ --cache=/home/mua/.cache/xml2rfc --v2v3 /dev/stdin -o draft-test.xml
bash: line 5: kramdown-rfc2629: command not found
bash: line 5: xml2rfc: command not found
lib/main.mk:68: recipe for target 'draft-test.xml' failed
make: *** [draft-test.xml] Error 127

I can install these from gem or build from source, but want to know what is the elegant way. What is everyone doing ?

I saw discussion to this repo wasn't enabled so I created an issue.

martinthomson commented 3 years ago

Installing prerequisites is documented here: https://github.com/martinthomson/i-d-template/blob/main/doc/SETUP.md

maifeeulasad commented 3 years ago

Oh, my bad. Thanks.