16

For example, I can't install package qcad because of error: "can't find qdict.h".
How can I find the package which provides the file qdict.h so I can install the package qcad?

9
  • what package??? – Joe Mar 28 '13 at 7:42
  • 2
    @Joe, I illustrate: I want to install qcad, but it doesn't compile because can't find file qdict.h. I want to know which package contains that file. I've tried to google, but found nothing. – Eddy_Em Mar 28 '13 at 7:45
  • is it an overlay or regular package that you downloaded – Joe Mar 28 '13 at 7:50
  • perhaps emerge -av qt – daisy Mar 28 '13 at 7:53
  • 1
    see also unix.stackexchange.com/q/82021/13011 – Nikos Alexandris Jul 8 '13 at 15:51
15

You may use the e-file command from the pfl package (emerge -av app-portage/pfl) to search by package contents.

e-file YOURFILE

Alternatively, you may use an online database.

Regarding the qcad package specifically, you probably need the Qt4 package. IIRC, use emerge -av x11-libs/qt-gui (If that doesn't work out, try searching for QT packages. Use this query: emerge -s qt.)

2
  • 4
    To be more precise, pfl provides the command e-file – Tobias Kienzler Nov 5 '13 at 11:04
  • FYI, the e-file command simply queries the very same online database linked in the answer. It's called the Portage File List. – daveloyall Jan 16 '20 at 23:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.