# Pkg not defined when building packages even though I did use pkg

**URL:** https://discourse.julialang.org/t/pkg-not-defined-when-building-packages-even-though-i-did-use-pkg/26371
**Category:** General Usage
**Tags:** question
**Created:** [July 15, 2019, 6:47am UTC](https://discourse.julialang.org/t/pkg-not-defined-when-building-packages-even-though-i-did-use-pkg/26371 "2019-07-15T06:47:52Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [July 15, 2019, 7:01am UTC](https://discourse.julialang.org/t/pkg-not-defined-when-building-packages-even-though-i-did-use-pkg/26371/2 "2019-07-15T07:01:46Z")

</div>

The error seems to be in the build code of PETSc2, not at the toplevel. You may want to look at its source code and the logfile.

(please post [quoted code/output](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530) in the future)

---

_[View the full topic](https://discourse.julialang.org/t/pkg-not-defined-when-building-packages-even-though-i-did-use-pkg/26371)._
