Title: Problem installing Wordfence CLI
Last modified: September 21, 2023

---

# Problem installing Wordfence CLI

 *  Resolved [tecn](https://wordpress.org/support/users/tecnicoctd/)
 * (@tecnicoctd)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/problem-installing-wordfence-cli/)
 * Hello,
 * We are trying to install Wordfence CLI. We have followed all the steps from [https://github.com/wordfence/wordfence-cli/blob/main/docs/Installation.md](https://github.com/wordfence/wordfence-cli/blob/main/docs/Installation.md)
   for the binaries installation and when we try to verify the binaries we get the
   next error:
 * ./worfence: error while loading shared libraries: libz.so.1: failed to map segment
   from shared object: Operation not permitted
 * We have researched and it seems that the problem is that it is necessary to have
   the /tmp directory as noexec.
 * Is that correct? If so, is there any way to change that? We want to have the 
   wordfence CLI installed, but the hosting does not allow to have /tmp directory
   as noexec.
 * Thank you.

Viewing 1 replies (of 1 total)

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/problem-installing-wordfence-cli/#post-17069001)
 * Hi [@tecnicoctd](https://wordpress.org/support/users/tecnicoctd/), thanks for
   reaching out.
 * It looks like the `Operation not permitted` error has some documentation at: 
   [https://pyinstaller.org/en/stable/when-things-go-wrong.html#operation-not-permitted-error](https://pyinstaller.org/en/stable/when-things-go-wrong.html#operation-not-permitted-error)
 * It looks like you could assign an alternate temp directory with `export TMPDIR
   =/some/dir` and then re-run Wordfence CLI. Set it to a path that is mounted **
   without** the `noexec` flag, so a directory in your home directory could work.
 * I hope that helps you out!
   Peter.
    -  This reply was modified 2 years, 8 months ago by [wfpeter](https://wordpress.org/support/users/wfpeter/).
      Reason: Noticed with/without "noexec" discrepancy in wording

Viewing 1 replies (of 1 total)

The topic ‘Problem installing Wordfence CLI’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [tmp](https://wordpress.org/support/topic-tag/tmp/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/problem-installing-wordfence-cli/#post-17069001)
 * Status: resolved