OS: Linux Mint 18.2 Cinnamon 64-bit.

I would like to compile the following:


with SHA256:


I extracted it as follows:

tar -xjf p7zip_16.02_src_all.tar.bz2

I read README file, specifically, that I need to replace the makefile with my machine's equivalent:

According to your OS, copy makefile.linux,
makefile.freebsd, makefile.cygwin, ...
    over makefile.machine

So I did:

cp makefile.linux_amd64 makefile.machine

It also says it is possible to build in parallel, in my case of 8 cores:

If you want to make a parallel build on a 4 cpu machine : make -j 4 TARGET

So I did:

make -j 8 all_test

With the result:

Everything is Ok

Now, I would like to proceed further, but:

make -j 8 depend

this throws errors:

fatal error: wx/wxprec.h: No such file or directory

So, I searched for a package that contains the header file:

apt-file search wxprec.h

which says:

wx3.0-headers: /usr/include/wx-3.0/wx/wxprec.h

So, I installed that package:

sudo apt-get install wx3.0-headers

but it still throws the same error.


You need to build the dependencies before make command :

sudo apt-get build-dep p7zip

It will install the missing dependencies.

sudo apt-get install libwxgtk3.0-dev

did the trick.

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.