# Creating a system image with a new package

**URL:** <https://discourse.julialang.org/t/creating-a-system-image-with-a-new-package/15193>\
**Category:** General Usage\
**Created:** [September 19, 2018, 6:57pm UTC](https://discourse.julialang.org/t/creating-a-system-image-with-a-new-package/15193 "2018-09-19T18:57:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [September 19, 2018, 6:57pm UTC](https://discourse.julialang.org/t/creating-a-system-image-with-a-new-package/15193/1 "2018-09-19T18:57:32Z")

</div>

Hi guys,

I want to create a new system image with a package inside. I am doing it by:

```julia
julia build_sysimg.jl /tmp/test core2 userimg.jl 

```

in which `userimg.jl` has only `using SatelliteToolbox`.

After the end of the process, I start Julia using `julia -J /tmp/test` but `using SatelliteToolbox` fails with:

```julia
ERROR: ArgumentError: Package SatelliteToolbox not found in current path:
- Run `Pkg.add("SatelliteToolbox")` to install the SatelliteToolbox package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:817

```

How can I do this?

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [September 19, 2018, 6:59pm UTC](https://discourse.julialang.org/t/creating-a-system-image-with-a-new-package/15193/2 "2018-09-19T18:59:49Z")

</div>

Btw, I can access the functions using `SatelliteToolbox.`.

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [September 19, 2018, 7:13pm UTC](https://discourse.julialang.org/t/creating-a-system-image-with-a-new-package/15193/3 "2018-09-19T19:13:38Z")

</div>

I am starting to think this is a bug. The package and its dependencies are indeed included, but I cannot export the symbols with `using`.

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [September 19, 2018, 7:19pm UTC](https://discourse.julialang.org/t/creating-a-system-image-with-a-new-package/15193/4 "2018-09-19T19:19:13Z")

</div>

[https://github.com/JuliaLang/julia/issues/29270](https://github.com/JuliaLang/julia/issues/29270)
