Doxygen installed via chocolatey not found

yakodani's Avatar

yakodani

05 Oct, 2014 08:33 AM

I tried to call doxygen installed via Chocolatey as a part of my build script.

# scripts that run after cloning repository
install:
  # by default, all script lines are interpreted as batch
  ps: cinst doxygen.install
After installation doxygen bin directory exists in PATH. But every time, wehn I try to call it. For example:
# scripts to run after build
after_build:
  ps: doxygen.exe "C:\projects\n-metadata-extractor\doc\Com.Drew.Doxyfile"
Have same error:
[13:32:07] doxygen.exe : The term 'doxygen.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
[13:32:10] At line:1 char:1
[13:32:10] + doxygen.exe "C:\projects\n-metadata-extractor\doc\Com.Drew.Doxyfile"
[13:32:10] + ~~~~~~~~~~~
[13:32:10]     + CategoryInfo          : ObjectNotFound: (doxygen.exe:String) [], CommandNotFoundException
[13:32:10]     + FullyQualifiedErrorId : CommandNotFoundException
[13:32:10]
[13:32:10] Command executed with exception: The term 'doxygen.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. [13:32:10]
How I can call Doxygen in AppVeyor environment?
  1. Support Staff 1 Posted by Feodor Fitsner on 06 Oct, 2014 06:23 PM

    Feodor Fitsner's Avatar

    Try running it as a batch, not PS:

    after_build:
      - doxygen.exe "C:\projects\n-metadata-extractor\doc\Com.Drew.Doxyfile"
    
  2. 2 Posted by yakodani on 07 Oct, 2014 06:45 AM

    yakodani's Avatar

    I tried to call it as ps, as cmd, without specification. Tried to create separate .ps1 and .bat files with same command - still same error.

  3. Support Staff 3 Posted by Feodor Fitsner on 07 Oct, 2014 06:47 PM

    Feodor Fitsner's Avatar

    Portable package works:

    install:
      - choco install doxygen.portable
    
  4. 4 Posted by gep13 on 13 Oct, 2014 12:29 PM

    gep13's Avatar

    Just to confirm what is going on here...

    choco install doxygen

    Installs the full application which is doxygen (NOTE: I have never used this, so will likely be using the wrong terms for it) using the native installer from the website. This installer, could add it's installation location to the local PATH variable, which would mean that you could run doxygen.exe and it would work. However, it looks as this is not the case, and there are no additional steps in the chocolatey script to make this happen, this is why your iniital script doesn't work.

    However:

    choco install doxygen.portable

    installs a zip archive from the same website, which means that it will automatically add a "shim" exe into the chocolatey bin folder (which is on the system PATH) which is why doxygen.exe will work.

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:49 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM