# Bundling Zsh with AppImage?

**URL:** <https://discourse.appimage.org/t/bundling-zsh-with-appimage/2976>\
**Category:** Creating AppImages\
**Created:** [May 3, 2023, 11:51am UTC](https://discourse.appimage.org/t/bundling-zsh-with-appimage/2976 "2023-05-03T11:51:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![psprint](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/psprint/32/825_2.png) [@psprint](https://discourse.appimage.org/u/psprint)\
**Post date:** [May 3, 2023, 11:51am UTC](https://discourse.appimage.org/t/bundling-zsh-with-appimage/2976/1 "2023-05-03T11:51:45Z")

</div>

I would want to create AppImage for a script that has only one dependency – Zshell. I’ve found `appimagetool` but it doesn’t give an easy answer of how to automatically bundle Zshell in the package.

I’ve tried `appimagetool n-commodore` (n-commodore is the directory with the script), however it didn’t copy Zshell into the package. This is understandable, as the tool doesn’t know anything about Zsh. However, I have now a problem of deciding of how should I include Zsh in the package. Should I compile it with a custom `--prefix …prefix…`, or if I should include also `libgdbm.so`, which is required as Zsh will be build with `zsh/db/gdbm` module, which uses the library?

---

<div class="post-metadata">

**Author:** ![probono](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/probono/32/81_2.png) [@probono](https://discourse.appimage.org/u/probono)\
**Post date:** [June 18, 2023, 6:41pm UTC](https://discourse.appimage.org/t/bundling-zsh-with-appimage/2976/2 "2023-06-18T18:41:25Z")

</div>

A pragmatic way is to make an AppDir of zshell, and then modify it to also include (and run) your script.
