agent-starter-pack icon indicating copy to clipboard operation
agent-starter-pack copied to clipboard

Installation script fails on macOS with zsh

Open tanDivina opened this issue 6 months ago • 1 comments

Hello,

I encountered an installation issue while setting up a new project using agent-starter-pack create on my macOS system, which uses zsh as the default shell.

Problem: The make install command fails with Error 1 because the setup script appears to be trying to modify a .bashrc file, which does not exist on my system. The error message is: /bin/sh: /Users/xx/.bashrc: No such file or directory.

This leads to a secondary problem where the uv command, though installed to ~/.local/bin, is not added to the system PATH. This causes the make playground command to fail with uv: No such file or directory.

Suggested Solution: The installation script could be improved to detect the user's shell (e.g., zsh) and modify the correct configuration file (~/.zshrc) instead of assuming .bashrc.

The manual workaround was to run source $HOME/.local/bin/env and permanently add the PATH to ~/.zshrc. It would be a great improvement if the script could handle this for macOS users automatically.

Thank you!

tanDivina avatar Jun 21 '25 23:06 tanDivina

Thanks a lot for flagging this, I also noticed that there was a bug in the makefile.

I fixed it in #209 - hope that this works!

eliasecchig avatar Jun 24 '25 17:06 eliasecchig