Skip to content

Installation script fails on WSL with "mv: cannot stat '/tmp/agentpipe': No such file or directory" #47

@powyncify

Description

@powyncify

Description

That's a promising package, but we had troubles installing it: The install script at install.sh fails when executed on WSL (Windows Subsystem for Linux) with the following error:

📦 Downloading AgentPipe v0.7.0...
📦 Installing to /usr/local/bin...
[sudo] password for default:
mv: cannot stat '/tmp/agentpipe': No such file or directory

Root Cause

The script extracts the release tarball with:

tar -xzf /tmp/agentpipe.tar.gz -C /tmp
sudo mv /tmp/agentpipe $INSTALL_DIR/

However, the binary inside the archive is extracted to a subdirectory (e.g., /tmp/agentpipe_linux_amd64/agentpipe or similar architecture-specific path), not directly to /tmp/agentpipe. The subsequent mv command fails because it's looking for a flat path that doesn't exist.

Steps to Reproduce

  1. Open WSL (Windows Subsystem for Linux)
  2. Run the install script:
    curl -sSL https://raw.githubusercontent.com/kevinelliott/agentpipe/main/install.sh | bash
  3. Installation fails with the error above

Expected Behavior

Installation should complete successfully and place the agentpipe binary in /usr/local/bin/.

Actual Behavior

Installation fails and the binary is not installed.

Environment

  • OS: WSL (Windows Subsystem for Linux)
  • Distro: Ubuntu 22.04
  • AgentPipe Version: v0.7.0 (latest)
  • Go: Available for workaround

Proposed Solution

Update install.sh to handle extraction to subdirectories:

# Extract tarball
tar -xzf /tmp/agentpipe.tar.gz -C /tmp

# Find the binary regardless of subdirectory structure
BINARY_PATH=$(find /tmp -name "agentpipe" -type f -maxdepth 3 | head -1)

if [ -z "$BINARY_PATH" ]; then
    echo "❌ AgentPipe binary not found in extracted archive"
    exit 1
fi

# Move to install directory
sudo mv "$BINARY_PATH" /usr/local/bin/agentpipe
sudo chmod +x /usr/local/bin/agentpipe

Workaround

Until this is fixed, users can install via Go:

go install github.com/kevinelliott/agentpipe@latest

Or use Homebrew on Linux:

brew tap kevinelliott/tap
brew install agentpipe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions