This guide helps resolve common issues encountered during Lux setup and development.
-
Verify Installation:
# On macOS brew list asdf || brew install asdf # On Linux ls ~/.asdf
-
Check Shell Configuration:
# Identify your shell echo $SHELL # Check if asdf is in your PATH echo $PATH | grep asdf
-
Fix Shell Integration:
# For Zsh echo '. "$HOME/.asdf/asdf.sh"' >> ~/.zshrc echo 'fpath=($HOME/.asdf/completions $fpath)' >> ~/.zshrc # For Bash echo '. "$HOME/.asdf/asdf.sh"' >> ~/.bashrc echo '. "$HOME/.asdf/completions/asdf.bash"' >> ~/.bashrc
-
Verify ASDF Integration:
# Check if mix is in asdf shims ls ~/.asdf/shims/mix # Try running mix directly from shims ~/.asdf/shims/mix --version
-
Check Elixir Installation:
# List installed versions asdf list elixir asdf list erlang # If none installed, install them asdf install
-
Verify Global Versions:
asdf current # If needed, set global versions asdf global erlang latest asdf global elixir latest
-
Verify OpenSSL Installation:
brew list openssl@3 brew info openssl@3
-
Check KERL Configuration:
echo $KERL_CONFIGURE_OPTIONS # Should output something like: # --with-ssl=/usr/local/opt/openssl@3
-
Fix OpenSSL Configuration:
# Add to your shell config export KERL_CONFIGURE_OPTIONS="--with-ssl=$(brew --prefix openssl@3)" # Then reinstall Erlang asdf uninstall erlang asdf install erlang
-
Check Directory Ownership:
ls -la ~/.asdf # Fix ownership if needed sudo chown -R $(whoami) ~/.asdf
-
Check File Permissions:
# Ensure proper permissions chmod -R 755 ~/.asdf
If you need to start fresh:
-
Remove ASDF and Tools:
# Remove ASDF rm -rf ~/.asdf # Clean shell config (remove asdf-related lines) # For zsh: sed -i '' '/asdf/d' ~/.zshrc # For bash: sed -i '' '/asdf/d' ~/.bashrc
-
Reinstall Everything:
# On macOS brew install asdf # On Linux git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.13.1 # Then run setup cd /path/to/lux make setup
-
Check Dependencies:
mix deps.get mix deps.compile
-
Clean Build:
mix clean mix compile --force
-
Verify Poetry Installation:
asdf which poetry poetry --version
-
Reset Python Environment:
cd priv/python rm -rf .venv poetry env remove --all poetry install
If you're still experiencing issues:
-
Check Existing Issues: Visit our GitHub Issues to see if others have encountered the same problem.
-
Join Our Community:
-
Debug Information: When reporting issues, please include:
- Your OS and version
- Output of
asdf current
- Content of your shell configuration file
- Any error messages
- Steps to reproduce the issue
Found a solution to a common problem? Please consider:
- Opening a PR to update this guide
- Sharing your solution in our Discord
- Adding it to our FAQ in the wiki
Remember to keep the solutions clear, concise, and focused on root causes rather than symptoms.