debmake FileNotFoundエラー

debmake FileNotFoundエラー

今debmakeに問題があります。フォローするhttps://www.debian.org/doc/manuals/debmake-doc/ch04.en.html#packaging-tarball第4章debmakeテスト

プロジェクトのディレクトリ構造は次のとおりです。

.
├── debianLaboration9
│   ├── Makefile
│   └── src
│       └── electrotest_standalone.c
└── debianLaboration9.tar.gz

これが重要かどうかはわかりませんが、私のmakefileは次のようになります。

prefix = /usr/local
all: electrotest


electrotest: ./src/electrotest_standalone.c
    gcc -o electrotest_standalone ./src/electrotest_standalone.c -lm
install:electrotest
    sudo install -D electrotest_standalone \
    $(DESTDIR)$(prefix)/bin/electrotest_standalone
clean:
    -rm -f electrotest_standalone

distclean:clean
uninstall:
    sudo -rm -f $(DESTDIR)$(prefix)/bin/electrotest_standalone

PHONY: all install clean distclean uninstall

debmakeを実行するために私はそうしました

hoseopjeong@hoseopjeong-VirtualBox:~/Documents/HoseopJeong_debian_lab9$ cd debianLaboration9
hoseopjeong@hoseopjeong-VirtualBox:~/Documents/HoseopJeong_debian_lab9/debianLaboration9$ debmake

ウェブサイトによると、debmakeはテンプレートファイルを生成し、私の場合、debmakeはFileNotFoundエラーを生成しました。

I: set parameters
Traceback (most recent call last):
  File "/usr/bin/debmake", line 28, in <module>
    debmake.main()
  File "/usr/lib/python3/dist-packages/debmake/__init__.py", line 104, in main
    para = debmake.para.para(para)
  File "/usr/lib/python3/dist-packages/debmake/para.py", line 44, in para
    debmail = os.getlogin() + '@localhost'
FileNotFoundError: [Errno 2] No such file or directory

debmakeがFileNotFoundエラーを生成する理由を理解できません... debmakeのバージョンは4.2.2-1です。

ベストアンサー1

~/.bashrc に環境変数 DEBEMAIL を追加すると問題が解決しました。

おすすめ記事