akamai / cli-netstorage

Apache License 2.0
15 stars 14 forks source link

Symbol not found #24

Open iangetz opened 3 years ago

iangetz commented 3 years ago

Hello. Thanks for providing this CLI tool to manage NetStorage. I'm using akamai/shell:latest (image uploaded July 19, 2021 @ 6:05pm ET) on Debian Linux and attempting to install this NetStorage CLI package.

Start the Akamai CLI tool. docker run -it --rm -v $HOME/.edgerc:/root/.edgerc:ro akamai/shell

Run 'akamai install netstorage'

# akamai install netstorage
Attempting to fetch command from https://github.com/akamai/cli-netstorage.git... ... [OK]
Installing... ... [WARN]
unable to locate package manager in PATH: npm
? Binary command(s) found, would you like to download and install it? (Y/n) 

Should I install NPM on the akamai/shell container or am I installing the cli-netstorage package incorrectly?

Responding 'Y' downloads the binary and shows 'netstorage' is installed.

But any command using 'akamai netstorage…' fails with these errors.

Error relocating /cli/.akamai-cli/src/cli-netstorage/bin/akamai-netstorage: __isinf: symbol not found
Error relocating /cli/.akamai-cli/src/cli-netstorage/bin/akamai-netstorage: __register_atfork: symbol not found
Error relocating /cli/.akamai-cli/src/cli-netstorage/bin/akamai-netstorage: __isnan: symbol not found
Error relocating /cli/.akamai-cli/src/cli-netstorage/bin/akamai-netstorage: __strdup: symbol not found
Error relocating /cli/.akamai-cli/src/cli-netstorage/bin/akamai-netstorage: backtrace: symbol not found

Thank you. Ian

securitylevelup commented 3 years ago

Hi Ian,

Thanks for raising this. It seems that cli-netstorage is not yet included in our Akamai Docker image including the main akamai/shell. I assume it was left out due to the npm dependencies being used only for this CLI package.

I haven't tried this myself yet, I had the Akamai CLI installed locally, added the cli-netstorage package thorugh the same command akamai install netstorage and ensure that I had the npm installed locally to get this to work. However that was outside of the scope of the akamai/shell.

Let me check with our Akamai Docker team if you could add npm to the akamai/shell or if we recommend to install this locally for now for cli-netstorage.