0

Ubuntu 14.10 でjsoncpp のドキュメント ( https://github.com/open-source-parsers/jsoncpp ) をビルドしようとしています。github の README.md で述べたように、doxybuild.py スクリプトを実行しましたが、次のエラーが発生しました。

$> cd jsoncpp/
$> python doxybuild.py --doxygen=$(which doxygen) --open --with-dot
Deleting directory: dist/doxygen
Running:  /home/jeremy/Projets/Perso/CmdSeries/libs/jsoncpp/doc/doxyfile
Traceback (most recent call last):
  File "doxybuild.py", line 169, in <module>
    main()
  File "doxybuild.py", line 166, in main
    build_doc( options )
  File "doxybuild.py", line 116, in build_doc
    ok = run_doxygen( options.doxygen_path, 'doc/doxyfile', 'doc', is_silent=options.silent )
  File "doxybuild.py", line 67, in run_doxygen
    process = subprocess.Popen( cmd )
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

$> sudo python doxybuild.py --doxygen=$(which doxygen) --open --with-dot
Deleting directory: dist/doxygen
Running:  /home/jeremy/Projets/Perso/CmdSeries/libs/jsoncpp/doc/doxyfile
Traceback (most recent call last):
  File "doxybuild.py", line 169, in <module>
    main()
  File "doxybuild.py", line 166, in main
    build_doc( options )
  File "doxybuild.py", line 116, in build_doc
    ok = run_doxygen( options.doxygen_path, 'doc/doxyfile', 'doc', is_silent=options.silent )
  File "doxybuild.py", line 67, in run_doxygen
    process = subprocess.Popen( cmd )
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission denied

誰にもアイデアはありますか?

すでに試しました:

  • chmod u+x doxybuild.py
  • sudo chmod 775 /usr/lib/python2.7/subprocess.py
  • sudo chown $USER /usr/lib/python2.7/subprocess.py

しかし、何も私の問題を解決しませんでした。

4

1 に答える 1

3

わかりました、問題は解決しました:

$> cd jsoncpp/doc
$> cat readme.txt
The documentation is generated using doxygen (http://www.doxygen.org).
$> sudo apt-get install doxygen
... 
OK
$> python doxybuild.py --doxygen=$(which doxygen) --open --with-dot
...
ok

doxygen をインストールするだけで、ドキュメントのビルドが機能します。

于 2014-11-20T12:27:45.790 に答える