zopencommunity / metaport

zopen package manager
Apache License 2.0
1 stars 2 forks source link

zopen missing jq dependency during install #61

Open chrishodgins opened 3 months ago

chrishodgins commented 3 months ago

Raised on Slack: https://ibm-systems-z.slack.com/archives/C039TNSH9J5/p1723473476732129

Picking up the latest zopen pax file (meta-main.20240807_133741.zos.pax.Z) from github and I think that zopen-init might be assuming jq is already installed on the system in the generateJsonConfiguration function? Installing into an H3N environment to a new /zopen directory.

Failure:

IBMUSER:/u/ibmuser/meta-main #>zopen init --yes --fs-layout fhs /zopen
Initializing zopen framework
Attention: Turning on usage statistics as your host is an IBM host. If this is incorrect, rerun with --noenable-stats
- Binaries will be symlinked under "/zopen/usr/local/bin". Libraries will be symlinked under "/zopen/usr/lib"
- Packages will be installed and maintained under the directory structure fhs (/zopen/opt). To change, re-run with the -f <layout> option.
- Collecting usage statistics: true
Generating File System
- Setting certificate environment variable
- Root FS available at /zopen
- Configured zopen to use stable releaseline packages
Generating global configuration
jq: generateJsonConfiguration 38: /u/ibmuser/meta-main/bin/zopen-init 634: FSUM7351 not found
Generating zopen-config
- Created config in /zopen/etc/zopen-config

... 
...

- Configured zopen to use stable releaseline packages
Refreshing global configuration
jq: error: syntax error, unexpected '/', expecting $end (Unix shell quoting issues?) at <top-level>, line 1:
/zopen/etc/zopen/config.json
jq: 1 compile error
***ERROR: Errors updating existing configuration file. See previous errors for more information and retry command.
- Checking for runtime dependencies.
- No runtime dependencies found.
Successfully installed: meta
***ERROR: Unable to install curl, jq and/or meta; see previous errors and retry the initilisation using the '--re-init' parameter