Both sides previous revisionPrevious revisionNext revision | Previous revision |
getting_started [2025/08/14 09:14] – [Installation instructions (Manual)] asie | getting_started [2025/08/15 06:19] (current) – asie |
---|
====== Getting Started ====== | ====== Installation ====== |
| |
The Wonderful toolchain can currently be installed on: | The Wonderful toolchain can currently be installed on: |
- This allows all subsequent commands, including ''wf-pacman'' updates, to be executed without elevated permissions. | - This allows all subsequent commands, including ''wf-pacman'' updates, to be executed without elevated permissions. |
- Extract the bootstrap to ''/opt/wonderful'': ''%%cd /opt/wonderful/ && tar xzvf [path_to_bootstrap_tar_gz]%%''. | - Extract the bootstrap to ''/opt/wonderful'': ''%%cd /opt/wonderful/ && tar xzvf [path_to_bootstrap_tar_gz]%%''. |
- Add ''/opt/wonderful/bin'' to ''PATH'': ''%%export PATH=/opt/wonderful/bin:$PATH%%''. | - Run ''%%/opt/wonderful/bin/wf-pacman -Syu wf-tools%%'' (no sudo - you don’t need root!) to synchronize and update the toolchain’s package manager. |
- Export ''WONDERFUL_TOOLCHAIN'' to point to ''/opt/wonderful'': ''%%export WONDERFUL_TOOLCHAIN=/opt/wonderful%%''. | - Run ''%%source /opt/wonderful/bin/wf-env%%'' to configure the toolchain's environment variables. |
- Run ''%%wf-pacman -Syu%%'' (no sudo - you don’t need root!) to synchronize and update the toolchain’s package manager. | - See ''Configuration -> Environment variables'' for more information. |
| |
==== Troubleshooting ==== | ==== Troubleshooting ==== |
- Create the ''/opt/wonderful'' directory: ''%%mkdir /opt/wonderful%%''. Other installation locations are not supported at this time. | - Create the ''/opt/wonderful'' directory: ''%%mkdir /opt/wonderful%%''. Other installation locations are not supported at this time. |
- Extract the bootstrap to ''/opt/wonderful'' (f.e. ''%%cd /opt/wonderful/ && tar xzvf [path_to_bootstrap_tar_gz]%%''). | - Extract the bootstrap to ''/opt/wonderful'' (f.e. ''%%cd /opt/wonderful/ && tar xzvf [path_to_bootstrap_tar_gz]%%''). |
- Add ''/opt/wonderful/bin'' to PATH (f.e. ''%%export PATH=/opt/wonderful/bin:$PATH%%''). | - Run ''%%/opt/wonderful/bin/wf-pacman -Syu wf-tools%%'' (no sudo - you don’t need root!) to synchronize and update the toolchain’s package manager. |
- Export ''WONDERFUL_TOOLCHAIN'' to point to ''/opt/wonderful'' (f.e. ''%%export WONDERFUL_TOOLCHAIN=/opt/wonderful%%''). It is a good idea to add these exports to the end of ''%%~/.profile%%'' - this way, they will be automatically applied every time you restart the shell. | - Run ''%%source /opt/wonderful/bin/wf-env%%'' to configure the toolchain's environment variables. |
- Run ''%%wf-pacman -Syu%%'' to synchronize and update the toolchain’s package manager. | - See ''Configuration -> Environment variables'' for more information. |
| |
==== Alternative: Windows (via WSL2) ==== | ==== Alternative options ==== |
| |
| These are not recommended and are less tested, but have been used successfully by some users. |
| |
| === Windows (via WSL2) === |
| |
Since WSL2 is compatible with Linux, one can follow the Linux installation instructions to get Wonderful running on top of Windows this way. | Since WSL2 is compatible with Linux, one can follow the Linux installation instructions to get Wonderful running on top of Windows this way. |
| |
Native macOS support is currently not available. For the time being, it is recommended to use a Linux virtual machine. | Native macOS support is currently not available. For the time being, it is recommended to use a Linux virtual machine. |
| |
| ====== Configuration ====== |
| |
| ===== Environment variables ===== |
| |
| To make accessing Wonderful easy, you may want to pre-populate the environment variables in your shell on launch: |
| |
| * For **bash**, add ''%%source /opt/wonderful/bin/wf-env%%'' to your ''%%~/.profile%%''. |
| * For **fish**, add ''%%. /opt/wonderful/bin/wf-env.fish%%'' to your Fish configuration. |
| * For **zsh**, add ''%%source /opt/wonderful/bin/wf-env%%'' to your ''%%~/.zprofile%%''. |
| |
| Alternatively, you may want to alias ''%%wf-env%%'' to allow them to be easily added when needed: |
| |
| * For **bash**, add ''%%alias wf-env='source /opt/wonderful/bin/wf-env'%%'' to your ''%%~/.profile%%''. |
| * For **fish**, add ''%%alias wf-env . /opt/wonderful/bin/wf-env.fish%%'' to your Fish configuration. |
| * For **zsh**, add ''%%alias wf-env='source /opt/wonderful/bin/wf-env'%%'' to your ''%%~/.zprofile%%''. |
| |
| If you want to access toolchain components (like ''ia16-elf-gcc'' or ''arm-none-eabi-objdump'') directly, you may wish to add the ''%%-a%%'' argument. |