[ 
https://issues.apache.org/jira/browse/GUACAMOLE-2098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18008025#comment-18008025
 ] 

Nick Couchman commented on GUACAMOLE-2098:
------------------------------------------

[~tanakakz]: I suspect this is an environment/setup issue:
* We have automated builds of the code across multiple Linux platforms, and 
we're not seeing these failures.
* I routinely build the client code, including 1.6.0 and many git branches, on 
my Rocky Linux 9 (EL9) system, and do not encounter any issues with this. I do 
not have jsdoc or npm present on the system - this is something that is 
downloaded and run as part of the build process.

I'd suggest removing the 1.6.0 code completely and starting fresh with a new 
download of the code and/or pull from the git repo. Also, I suggest you look at 
the full list of messages you're getting from the build process, not just the 
latest error, as I would venture a guess that there are some other messages 
generated earlier that would indicate the issue.

> Building the guacamole client fails because guacamole-common-js does not have 
> jsdoc.
> ------------------------------------------------------------------------------------
>
>                 Key: GUACAMOLE-2098
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-2098
>             Project: Guacamole
>          Issue Type: Bug
>          Components: guacamole-client, guacamole-common-js
>    Affects Versions: 1.6.0
>         Environment: OS: Ubuntu 22.04.5
> JAVA: java-11-openjdk-amd64
> mvn: Apache Maven 3.6.3
> local npm: {
>   npm: '8.3.1',
>   node: '12.22.9',
>   v8: '7.8.279.23-node.56',
>   uv: '1.43.0',
>   zlib: '1.2.11',
>   brotli: '1.0.9',
>   ares: '1.18.1',
>   modules: '72',
>   nghttp2: '1.43.0',
>   napi: '8',
>   llhttp: '2.1.6',
>   http_parser: '2.9.4',
>   openssl: '1.1.1m',
>   cldr: '40.0',
>   icu: '70.1',
>   tz: '2025b',
>   unicode: '14.0'
> }
> or
> OS: CentOS Stream release 9
> JAVA: java-17-openjdk-17.0.15.0.6-3.el9.x86_64
> mvn: Apache Maven 3.6.3 (Red Hat 3.6.3-22)
> local npm: not installed
>            Reporter: Kazuhiko Tanaka
>            Priority: Minor
>
> When I run the `mvn package` command on guacamole-client, it stops at 
> building `guacamole-common-js`.
> When I run it with the `-e -X` option, I get the error `sh: 1: jsdoc: 
> Permission denied` (Ubuntu) or `sh: line 1: jsdoc: command not found` (CentOS 
> Stream).
> On Ubuntu, after installing `jsdoc` (version 4.0.4) using the `npm` command, 
> when I run the command the error message changes to `Unknown command-line 
> option "".`.
> In CentOS, if you run `./npm install jsdoc` in `guacamole-common-js/node/` 
> and then run `mvn package` again in guacamole-client, the error changes to 
> `node:internal/modules/cjs/loader:1024`. Also, if I update the node-related 
> files in `guacamole-common-js/node/` to the latest version, install jsdoc, 
> and then run `mvn package`, the same error as in Ubuntu occurs.
> Probably `guacamole-common-js` does not contain the required jsdoc and is not 
> compatible with the latest jsdoc.
> I have confirmed that building guacamole-client 1.5.5 on Ubuntu works fine.
> The problem only occurs with 1.6.0.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to