vectordotdev / vector

A high-performance observability data pipeline.
https://vector.dev
Mozilla Public License 2.0
18.14k stars 1.6k forks source link

Installer Cannot Install On Ubuntu With ZSH #8227

Open veverkap opened 3 years ago

veverkap commented 3 years ago

Vector Version

➜  ~ vector --version
zsh: command not found: vector

Vector Configuration File

Not created

Debug Output

none

Expected Behavior

Vector should have installed

Actual Behavior

Vector did not install

Additional Context

Running in Ubuntu on VSphere VM Ubuntu 20.10 (GNU/Linux 5.8.0-59-generic x86_64)

➜  ~ curl --proto '=https' --tlsv1.2 -sSf https://sh.vector.dev | sh
                                   __   __  __
                                   \ \ / / / /
                                    \ V / / /
                                     \_/  \/

                                   V E C T O R
                                    Installer

--------------------------------------------------------------------------------
Website: https://vector.dev
Docs: https://vector.dev/docs/
Community: https://vector.dev/community/
--------------------------------------------------------------------------------

>>> We'll be installing Vector via a pre-built archive at https://packages.timber.io/vector/latest/
>>> Ready to proceed? (y/n)

>>> y

--------------------------------------------------------------------------------

sh: 220: [[: not found
sh: 227: [[: not found
>>> Unknown architecture from ldd: ldd (Ubuntu GLIBC 2.32-0ubuntu3) 2.32
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
>>> Downloading Vector via https://packages.timber.io/vector/latest/vector-0.14.0-x86_64-unknown-linux-gnu.tar.gz ✓
>>> Unpacking archive to /home/veverkap/.vector ... ✓
>>> Adding Vector path to /home/veverkap/.zprofile>>> Adding Vector path to /home/veverkap/.profile ✓
>>> Install succeeded! 🚀
>>> To start Vector:

    vector --config ~/.vector/vector.toml

>>> More information at https://vector.dev/docs/
➜  ~ vector --version
zsh: command not found: vector

Installing via apt worked

ethereal-engineer commented 1 month ago

The issue is that the installer writes to $HOME/.zprofile instead of $ZDOTDIR/.zprofile. However, I would prefer it did not try to write to any of my dotfiles and instead requested that the user modified their $PATH directive appropriately. To ensure that the binary was accessible at least in the shell it was installed in, use export to add to the shell's $PATH variable only.