# Make Installation fails

**URL:** <https://forum.suricata.io/t/make-installation-fails/648>\
**Category:** Help\
**Created:** [September 27, 2020, 8:35am UTC](https://forum.suricata.io/t/make-installation-fails/648 "2020-09-27T08:35:29Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sylfrena](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sylfrena/32/353_2.png) [@Sylfrena](https://forum.suricata.io/u/Sylfrena)\
**Post date:** [September 27, 2020, 8:35am UTC](https://forum.suricata.io/t/make-installation-fails/648/1 "2020-09-27T08:35:29Z")

</div>

Hi,

I am trying to get started with Suricata, and eventually be able to contribute. However, I get a cbindgen error while installing even though I already have all Rust dependencies installed.

I have attached the config.log files and the error logs(both as a screenshot and a link) as I am unsure which is the preferred way for posting error logs. Please let me know so I can do it the right way the next time.

Please find the error log [here](https://carbon.now.sh/?bg=rgba(171%2C%20184%2C%20195%2C%201)&t=solarized%20light&wt=none&l=application%2Fx-sh&ds=true&dsyoff=20px&dsblur=68px&wc=true&wa=true&pv=56px&ph=56px&ln=false&fl=1&fm=Hack&fs=14px&lh=133%25&si=false&es=2x&wm=false&code=%2520%2520%2520%2520Compiling%2520der-parser%2520v4.1.0%250A%2520%2520%2520Compiling%2520kerberos-parser%2520v0.5.0%250A%2520%2520%2520Compiling%2520snmp-parser%2520v0.6.0%250A%2520%2520%2520Compiling%2520suricata%2520v6.0.0-dev%2520(%252Fhome%252Fsumera%252FElantris%252Fsuricata%252Foisf%252Frust)%250A%2520%2520%2520%2520Finished%2520release%2520%255Boptimized%2520%252B%2520debuginfo%255D%2520target(s)%2520in%252041.82s%250Amake%2520gen%252Frust-bindings.h%250Amake%255B3%255D%253A%2520Entering%2520directory%2520%27%252Fhome%252Fsumera%252FElantris%252Fsuricata%252Foisf%252Frust%27%250Arm%2520-f%2520gen%252Frust-bindings.h%250Acbindgen%2520--config%2520%252Fhome%252Fsumera%252FElantris%252Fsuricata%252Foisf%252Frust%252Fcbindgen.toml%2520%255C%250A%2509--quiet%2520--output%2520%252Fhome%252Fsumera%252FElantris%252Fsuricata%252Foisf%252Frust%252Fgen%252Frust-bindings.h%250A%252Fbin%252Fbash%253A%2520cbindgen%253A%2520command%2520not%2520found%250Amake%255B3%255D%253A%2520 ***%2520%255BMakefile%253A573%253A%2520gen%252Frust-bindings.h%255D%2520Error%2520127%250Amake%255B3%255D%253A%2520Leaving%2520directory%2520%27%252Fhome%252Fsumera%252FElantris%252Fsuricata%252Foisf%252Frust%27%250Amake%255B2%255D%253A%2520*** %2520%255BMakefile%253A546%253A%2520all-local%255D%2520Error%25202%250Amake%255B2%255D%253A%2520Leaving%2520directory%2520%27%252Fhome%252Fsumera%252FElantris%252Fsuricata%252Foisf%252Frust%27%250Amake%255B1%255D%253A%2520 ***%2520%255BMakefile%253A490%253A%2520install-recursive%255D%2520Error%25201%250Amake%255B1%255D%253A%2520Leaving%2520directory%2520%27%252Fhome%252Fsumera%252FElantris%252Fsuricata%252Foisf%27%250Amake%253A%2520*** %2520%255BMakefile%253A909%253A%2520install-full%255D%2520Error%25202%250A%250A%2520%250A%2520~%2520%2520cbindgen%2520--version%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%25E2%259C%2594%2520%2520base%2520Py%2520%250Acbindgen%25200.14.6%250A%2520~%2520%2520rustc%2520--version%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%25E2%259C%2594%2520%2520base%2520Py%2520%250Arustc%25201.46.0%2520(04488afe3%25202020-08-24)%250A%2520~%2520%2520cargo%2520--version%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%25E2%259C%2594%2520%2520base%2520Py%2520%250Acargo%25201.46.0%2520(149022b1d%25202020-07-17)%250A%2520~%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%25E2%259C%2594%2520%2520base%2520Py%2520%250A%250A).

[This](https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Ubuntu_Installation) is the guide I followed to install Suricata.

[config.log](https://forum.suricata.io/uploads/short-url/64Ui842X4Vlm4sjENsi6CAt3olv.log) (206.4 KB)

 ![suricata-install](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/1X/693142752592b2e8f7aa47cfac7334a01fc6083c.png)

Regards,  
Sumera

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [September 27, 2020, 4:39pm UTC](https://forum.suricata.io/t/make-installation-fails/648/2 "2020-09-27T16:39:31Z")

</div>

Are you doing the ./configure and make as a user, then doing `sudo make install`? If so, depending on your distribution, `sudo -E make install` might help.

---

<div class="post-metadata">

**Author:** ![Sylfrena](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sylfrena/32/353_2.png) [@Sylfrena](https://forum.suricata.io/u/Sylfrena)\
**Post date:** [September 27, 2020, 6:27pm UTC](https://forum.suricata.io/t/make-installation-fails/648/3 "2020-09-27T18:27:17Z")

</div>

Yes. I tried that too but it doesn’t seem to work. There seems to be problem with cbindgen(or my rust ecosystem maybe?). I tried uninstalling and reinstalling cbindgen but I get a [spurious network error](https://carbon.now.sh/?bg=rgba(171%2C%20184%2C%20195%2C%201)&t=solarized%20light&wt=none&l=application%2Fx-sh&ds=true&dsyoff=20px&dsblur=68px&wc=true&wa=true&pv=56px&ph=56px&ln=false&fl=1&fm=Hack&fs=14px&lh=133%25&si=false&es=2x&wm=false&code=%2520~%2520%2520cargo%2520install%2520cbindgen%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%25E2%259C%2594%2520%2520base%2520Py%2520%250A%2520%2520%2520%2520Updating%2520crates.io%2520index%250Awarning%253A%2520spurious%2520network%2520error%2520(2%2520tries%2520remaining)%253A%2520failed%2520open%2520-%2520%27%252Fhome%252Fsumera%252F.cargo%252Fregistry%252Findex%252Fgithub.com-1ecc6299db9ec823%252F.git%252FFETCH_HEAD%27%2520is%2520locked%253A%2520Permission%2520denied%253B%2520class%253DOs%2520(2)%253B%2520code%253DLocked%2520(-14)%250Awarning%253A%2520spurious%2520network%2520error%2520(1%2520tries%2520remaining)%253A%2520failed%2520open%2520-%2520%27%252Fhome%252Fsumera%252F.cargo%252Fregistry%252Findex%252Fgithub.com-1ecc6299db9ec823%252F.git%252FFETCH_HEAD%27%2520is%2520locked%253A%2520Permission%2520denied%253B%2520class%253DOs%2520(2)%253B%2520code%253DLocked%2520(-14)%250Aerror%253A%2520failed%2520to%2520fetch%2520%2560https%253A%252F%252Fgithub.com%252Frust-lang%252Fcrates.io-index%2560%250A%250ACaused%2520by%253A%250A%2520%2520failed%2520open%2520-%2520%27%252Fhome%252Fsumera%252F.cargo%252Fregistry%252Findex%252Fgithub.com-1ecc6299db9ec823%252F.git%252FFETCH_HEAD%27%2520is%2520locked%253A%2520Permission%2520denied%253B%2520class%253DOs%2520(2)%253B%2520code%253DLocked%2520(-14)%250A%2520~%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520%2520101%2520%25D1%2585%2520%25203s%2520%2520base%2520Py%2520%250A%250A%250A%250A%250A) with cargo install rust. ☹

---

<div class="post-metadata">

**Author:** ![Jeff\_Lucovsky](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jeff_lucovsky/32/11_2.png) [@Jeff\_Lucovsky](https://forum.suricata.io/u/Jeff_Lucovsky)\
**Post date:** [September 27, 2020, 6:47pm UTC](https://forum.suricata.io/t/make-installation-fails/648/4 "2020-09-27T18:47:19Z")

</div>

This error `/home/sumera/.cargo/registry/index/github.com-1ecc6299db9ec823/.git/FETCH_HEAD' is locked: Permission denied;` is likely due to some files not being owned by you (did you use `git` as `root`?

Try `sudo chown -R sumera /home/sumera/.cargo`

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [September 27, 2020, 6:53pm UTC](https://forum.suricata.io/t/make-installation-fails/648/5 "2020-09-27T18:53:40Z")

</div>

So we have an issue where when using tools installed by Rustup, they are not seen under sudo. This is fixed in the 6.0 beta’s, but the workaround for now would be something like:

```auto
sudo chown -R user:user .
make
sudo env PATH=$PATH make install-full

```

Make sure to replace `user` with your username that is building Suricata. This should work in sudo environments that will never pass the PATH through like Fedora and CentOS.

---

<div class="post-metadata">

**Author:** ![Sylfrena](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sylfrena/32/353_2.png) [@Sylfrena](https://forum.suricata.io/u/Sylfrena)\
**Post date:** [October 3, 2020, 10:36pm UTC](https://forum.suricata.io/t/make-installation-fails/648/6 "2020-10-03T22:36:34Z")

</div>

Hi,  
I was able to install cbindgen, thanks, @Jeff_Lucovsky !

However there still seems to be some problems with rustup. I followed the instructions but still get the error : “no override and no default toolchain set”.

 ![suricata3o](https://canada1.discourse-cdn.com/flex030/uploads/suricata/original/1X/4c0ae1d92227b8fc77c57eb1ae84e7b617ebbfc8.png)

I tried reinstalling rustup and setting the default as suggested in some places:

```auto
 ~ ~ rustup default stable ✔ base Py 
info: using existing install for 'stable-x86_64-unknown-linux-gnu'
info: default toolchain set to 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.46.0 (04488afe3 2020-08-24)

```

but this doesn’t seem to work either.

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [October 5, 2020, 2:24am UTC](https://forum.suricata.io/t/make-installation-fails/648/7 "2020-10-05T02:24:20Z")

</div>

Can you provide the commands you used to get here? Including any uses of sudo or switching to root.

---

<div class="post-metadata">

**Author:** ![Sylfrena](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sylfrena/32/353_2.png) [@Sylfrena](https://forum.suricata.io/u/Sylfrena)\
**Post date:** [October 5, 2020, 5:31pm UTC](https://forum.suricata.io/t/make-installation-fails/648/8 "2020-10-05T17:31:19Z")

</div>

Hi,

Sure. I deleted Suricata and ran the following from scratch:

```auto
git clone https://github.com/OISF/suricata.git
cd suricata
./autogen.sh
./configure
sudo chown -R sumera:sumera .
make

```

I got a `libhtp` error here. So I installed that.

```auto
cd libhtp
./autogen.sh
./configure
make
sudo make install

```

```auto
cd ../
./configure
sudo chown -R sumera:sumera
make

```

I got a `rules not installed as update rules not available` error. I figured this might be because I didn’t use `make clean`.

```auto
make clean
sudo env PATH=$PATH make install-full

```

This led to the error I described previously; I tried troubleshooting with reinstalling and installing rustup again but that seems not to work either . :((

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [October 5, 2020, 5:38pm UTC](https://forum.suricata.io/t/make-installation-fails/648/9 "2020-10-05T17:38:25Z")

</div>

I don’t believe this should be an issue with git master which it looks like you are using. What distribution are you using?

---

<div class="post-metadata">

**Author:** ![Sylfrena](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sylfrena/32/353_2.png) [@Sylfrena](https://forum.suricata.io/u/Sylfrena)\
**Post date:** [October 6, 2020, 8:04am UTC](https://forum.suricata.io/t/make-installation-fails/648/10 "2020-10-06T08:04:22Z")

</div>

I am using Pop OS. Actually I tried it on a different Ubuntu Budgie laptop too but am getting the same error. Maybe I will just reinstall Rust and give it a shot.

---

<div class="post-metadata">

**Author:** ![Sylfrena](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sylfrena/32/353_2.png) [@Sylfrena](https://forum.suricata.io/u/Sylfrena)\
**Post date:** [October 6, 2020, 11:52am UTC](https://forum.suricata.io/t/make-installation-fails/648/11 "2020-10-06T11:52:33Z")

</div>

Hi,

So, I tried again and have a few doubts. This is what I tried though:

```auto
 ~/Elantris/suricata master ?1 sudo make install 2 х base Py 
Making install in libhtp
make[1]: Entering directory '/home/sumera/Elantris/suricata/libhtp'
Making install in htp
make[2]: Entering directory '/home/sumera/Elantris/suricata/libhtp/htp'
Making install in lzma
make[3]: Entering directory '/home/sumera/Elantris/suricata/libhtp/htp/lzma'
make[4]: Entering directory '/home/sumera/Elantris/suricata/libhtp/htp/lzma'
make[4]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/include/htp/lzma'
 /usr/bin/install -c -m 644 LzmaDec.h 7zTypes.h '/usr/local/include/htp/lzma'
make[4]: Leaving directory '/home/sumera/Elantris/suricata/libhtp/htp/lzma'
make[3]: Leaving directory '/home/sumera/Elantris/suricata/libhtp/htp/lzma'
make[3]: Entering directory '/home/sumera/Elantris/suricata/libhtp/htp'
make[4]: Entering directory '/home/sumera/Elantris/suricata/libhtp/htp'
 /usr/bin/mkdir -p '/usr/local/lib'
 /bin/bash ../libtool --mode=install /usr/bin/install -c libhtp.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libhtp.so.2.0.0 /usr/local/lib/libhtp.so.2.0.0
libtool: install: (cd /usr/local/lib && { ln -s -f libhtp.so.2.0.0 libhtp.so.2 || { rm -f libhtp.so.2 && ln -s libhtp.so.2.0.0 libhtp.so.2; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libhtp.so.2.0.0 libhtp.so || { rm -f libhtp.so && ln -s libhtp.so.2.0.0 libhtp.so; }; })
libtool: install: /usr/bin/install -c .libs/libhtp.lai /usr/local/lib/libhtp.la
libtool: install: /usr/bin/install -c .libs/libhtp.a /usr/local/lib/libhtp.a
libtool: install: chmod 644 /usr/local/lib/libhtp.a
libtool: install: ranlib /usr/local/lib/libhtp.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the 'LD_RUN_PATH' environment variable
     during linking
   - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to '/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
 /usr/bin/mkdir -p '/usr/local/include/htp'
 /usr/bin/install -c -m 644 bstr.h bstr_builder.h htp.h htp_base64.h htp_config.h htp_connection_parser.h htp_core.h htp_decompressors.h htp_hooks.h htp_list.h htp_multipart.h htp_table.h htp_transaction.h htp_urlencoded.h htp_utf8_decoder.h htp_version.h '/usr/local/include/htp'
make[4]: Leaving directory '/home/sumera/Elantris/suricata/libhtp/htp'
make[3]: Leaving directory '/home/sumera/Elantris/suricata/libhtp/htp'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/libhtp/htp'
Making install in test
make[2]: Entering directory '/home/sumera/Elantris/suricata/libhtp/test'
make[3]: Entering directory '/home/sumera/Elantris/suricata/libhtp/test'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/sumera/Elantris/suricata/libhtp/test'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/libhtp/test'
Making install in docs
make[2]: Entering directory '/home/sumera/Elantris/suricata/libhtp/docs'
make[3]: Entering directory '/home/sumera/Elantris/suricata/libhtp/docs'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/sumera/Elantris/suricata/libhtp/docs'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/libhtp/docs'
make[2]: Entering directory '/home/sumera/Elantris/suricata/libhtp'
make[3]: Entering directory '/home/sumera/Elantris/suricata/libhtp'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 htp.pc '/usr/local/lib/pkgconfig'
make[3]: Leaving directory '/home/sumera/Elantris/suricata/libhtp'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/libhtp'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/libhtp'
Making install in rust
make[1]: Entering directory '/home/sumera/Elantris/suricata/rust'
RUSTUP_HOME=/home/sumera/.rustup \
	CARGO_HOME="/home/sumera/.cargo" \
	CARGO_TARGET_DIR="/home/sumera/Elantris/suricata/rust/target" \
	/home/sumera/.cargo/bin/cargo build --release \
		--features "function-macro " 
    Finished release [optimized + debuginfo] target(s) in 0.03s
make gen/rust-bindings.h
make[2]: Entering directory '/home/sumera/Elantris/suricata/rust'
make[2]: 'gen/rust-bindings.h' is up to date.
make[2]: Leaving directory '/home/sumera/Elantris/suricata/rust'
make[2]: Entering directory '/home/sumera/Elantris/suricata/rust'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/sumera/Elantris/suricata/rust'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/rust'
Making install in src
make[1]: Entering directory '/home/sumera/Elantris/suricata/src'
make[2]: Entering directory '/home/sumera/Elantris/suricata/src'
 /usr/bin/mkdir -p '/usr/local/bin'
  /bin/bash ../libtool --mode=install /usr/bin/install -c suricata '/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/suricata /usr/local/bin/suricata
 /usr/bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 suricata-plugin.h '/usr/local/include'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/src'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/src'
Making install in qa
make[1]: Entering directory '/home/sumera/Elantris/suricata/qa'
Making install in coccinelle
make[2]: Entering directory '/home/sumera/Elantris/suricata/qa/coccinelle'
make[3]: Entering directory '/home/sumera/Elantris/suricata/qa/coccinelle'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/sumera/Elantris/suricata/qa/coccinelle'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/qa/coccinelle'
make[2]: Entering directory '/home/sumera/Elantris/suricata/qa'
make[3]: Entering directory '/home/sumera/Elantris/suricata/qa'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/sumera/Elantris/suricata/qa'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/qa'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/qa'
Making install in rules
make[1]: Entering directory '/home/sumera/Elantris/suricata/rules'
make[2]: Entering directory '/home/sumera/Elantris/suricata/rules'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/share/suricata/rules'
 /usr/bin/install -c -m 644 app-layer-events.rules decoder-events.rules dhcp-events.rules dnp3-events.rules dns-events.rules files.rules http-events.rules ipsec-events.rules kerberos-events.rules modbus-events.rules nfs-events.rules ntp-events.rules smb-events.rules smtp-events.rules stream-events.rules tls-events.rules '/usr/local/share/suricata/rules'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/rules'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/rules'
Making install in doc
make[1]: Entering directory '/home/sumera/Elantris/suricata/doc'
Making install in userguide
make[2]: Entering directory '/home/sumera/Elantris/suricata/doc/userguide'
make[3]: Entering directory '/home/sumera/Elantris/suricata/doc/userguide'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Leaving directory '/home/sumera/Elantris/suricata/doc/userguide'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/doc/userguide'
Making install in devguide
make[2]: Entering directory '/home/sumera/Elantris/suricata/doc/devguide'
make[3]: Entering directory '/home/sumera/Elantris/suricata/doc/devguide'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/sumera/Elantris/suricata/doc/devguide'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/doc/devguide'
make[2]: Entering directory '/home/sumera/Elantris/suricata/doc'
make[3]: Entering directory '/home/sumera/Elantris/suricata/doc'
make[3]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/share/doc/suricata'
 /usr/bin/install -c -m 644 AUTHORS GITGUIDE INSTALL NEWS README TODO INSTALL.PF_RING INSTALL.WINDOWS Basic_Setup.txt Setting_up_IPSinline_for_Linux.txt Third_Party_Installation_Guides.txt '/usr/local/share/doc/suricata'
make[3]: Leaving directory '/home/sumera/Elantris/suricata/doc'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/doc'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/doc'
Making install in contrib
make[1]: Entering directory '/home/sumera/Elantris/suricata/contrib'
Making install in file_processor
make[2]: Entering directory '/home/sumera/Elantris/suricata/contrib/file_processor'
Making install in Action
make[3]: Entering directory '/home/sumera/Elantris/suricata/contrib/file_processor/Action'
make[4]: Entering directory '/home/sumera/Elantris/suricata/contrib/file_processor/Action'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/sumera/Elantris/suricata/contrib/file_processor/Action'
make[3]: Leaving directory '/home/sumera/Elantris/suricata/contrib/file_processor/Action'
Making install in Processor
make[3]: Entering directory '/home/sumera/Elantris/suricata/contrib/file_processor/Processor'
make[4]: Entering directory '/home/sumera/Elantris/suricata/contrib/file_processor/Processor'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/sumera/Elantris/suricata/contrib/file_processor/Processor'
make[3]: Leaving directory '/home/sumera/Elantris/suricata/contrib/file_processor/Processor'
make[3]: Entering directory '/home/sumera/Elantris/suricata/contrib/file_processor'
make[4]: Entering directory '/home/sumera/Elantris/suricata/contrib/file_processor'
make[4]: Nothing to be done for 'install-exec-am'.
make[4]: Nothing to be done for 'install-data-am'.
make[4]: Leaving directory '/home/sumera/Elantris/suricata/contrib/file_processor'
make[3]: Leaving directory '/home/sumera/Elantris/suricata/contrib/file_processor'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/contrib/file_processor'
make[2]: Entering directory '/home/sumera/Elantris/suricata/contrib'
make[3]: Entering directory '/home/sumera/Elantris/suricata/contrib'
make[3]: Nothing to be done for 'install-exec-am'.
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/sumera/Elantris/suricata/contrib'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/contrib'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/contrib'
Making install in etc
make[1]: Entering directory '/home/sumera/Elantris/suricata/etc'
make[2]: Entering directory '/home/sumera/Elantris/suricata/etc'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/share/suricata'
 /usr/bin/install -c -m 644 classification.config reference.config '/usr/local/share/suricata'
make[2]: Leaving directory '/home/sumera/Elantris/suricata/etc'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/etc'
Making install in python
make[1]: Entering directory '/home/sumera/Elantris/suricata/python'
cd . && \
	/home/sumera/miniconda3/bin/python3 setup.py build --build-base "/home/sumera/Elantris/suricata/python"
running build
running build_py
running build_scripts
make[2]: Entering directory '/home/sumera/Elantris/suricata/python'
cd . && \
	/home/sumera/miniconda3/bin/python3 setup.py build --build-base "/home/sumera/Elantris/suricata/python" \
	install --prefix /usr/local
running build
running build_py
running build_scripts
running install
running install_lib
running install_scripts
changing mode of /usr/local/bin/suricatasc to 775
changing mode of /usr/local/bin/suricatactl to 775
running install_egg_info
Removing /usr/local/lib/python3.8/site-packages/suricata-6.0.0_dev-py3.8.egg-info
Writing /usr/local/lib/python3.8/site-packages/suricata-6.0.0_dev-py3.8.egg-info
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/sumera/Elantris/suricata/python'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/python'
Making install in ebpf
make[1]: Entering directory '/home/sumera/Elantris/suricata/ebpf'
make[2]: Entering directory '/home/sumera/Elantris/suricata/ebpf'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/sumera/Elantris/suricata/ebpf'
make[1]: Leaving directory '/home/sumera/Elantris/suricata/ebpf'
make[1]: Entering directory '/home/sumera/Elantris/suricata'
make[2]: Entering directory '/home/sumera/Elantris/suricata'
make[2]: Nothing to be done for 'install-exec-am'.
Run 'make install-conf' if you want to install initial configuration files. Or 'make install-full' to install configuration and rules
make[2]: Leaving directory '/home/sumera/Elantris/suricata'
make[1]: Leaving directory '/home/sumera/Elantris/suricata'

```

```auto
 ~/Elantris/suricata master ?1 sudo make install-conf ✔ base Py 
install -d "/usr/local/etc/suricata/"
install -d "/usr/local/var/log/suricata/files"
install -d "/usr/local/var/log/suricata/certs"
install -d "/usr/local/var/run/"
install -m 770 -d "/usr/local/var/run/suricata"
 ~/Elantris/suricata master ?1 sudo make install-rules ✔ base Py 
error: rules not installed as suricata-update not available
make: *** [Makefile:931: install-rules] Error 1
 ~/Elantris/suricata master ?1 ls suricata-update 2 х base Py 
Makefile.am Makefile.in

```

So, `make install-conf` works, but there is a problem with `install-full` as rules are unable to get installed. Is there a way to install the rules separately? I do see a rules folder in my suricata directory with the following contents:

```auto
 ~/E/suricata/rules master ?1 ls ✔ base Py 
app-layer-events.rules http2-events.rules Makefile.in smtp-events.rules
decoder-events.rules http-events.rules modbus-events.rules ssh-events.rules
dhcp-events.rules ipsec-events.rules mqtt-events.rules stream-events.rules
dnp3-events.rules kerberos-events.rules nfs-events.rules tls-events.rules
dns-events.rules Makefile ntp-events.rules
files.rules Makefile.am smb-events.rules

```

Something else I noticed is that the `suricata-update` folder does not have a `Makefile`. My understanding is that `automake` uses `Makefile.am` to generate `Makefile.in` and `configure` uses `Makefile.in` to generate the `Makefile`. But `./configure` does seem to run correctly on my pc.  
What is going wrong here? 😕

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [October 6, 2020, 3:36pm UTC](https://forum.suricata.io/t/make-installation-fails/648/12 "2020-10-06T15:36:58Z")

</div>

Nothing really wrong. Suricata when checked out from git does not include `suricata-update`, so you’ll need to bundle it yourself when building from a git checout. Our CI system uses a command like the following to bundle `suricata-update`:

```auto
        (cd suricata-update &&
	     curl -L \
	          https://github.com/OISF/suricata-update/archive/master.tar.gz | \
	         tar zxvf - --strip-components=1)

```

Unfortunately its not as simple as just `git clone` like you can do with libhtp.

---

<div class="post-metadata">

**Author:** ![Sylfrena](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sylfrena/32/353_2.png) [@Sylfrena](https://forum.suricata.io/u/Sylfrena)\
**Post date:** [October 6, 2020, 6:06pm UTC](https://forum.suricata.io/t/make-installation-fails/648/13 "2020-10-06T18:06:33Z")

</div>

Hi,

I tried that, and I am not yet sure what exactly I did after that, but it seems `sudo make install-full` worked. (Yay, at least no errors this time).

However, when I run `/usr/local/bin/suricata -c /usr/local/etc/suricata/suricata.yaml -i eth0 `, I get the following error:

```auto
/usr/local/bin/suricata: symbol lookup error: /usr/local/bin/suricata: undefined symbol: htp_config_set_lzma_layers

```

I also don’t seem to have the following files `classification.config` and `reference.config` files in my suricata folder.

I am so sorry if I am creating unnecessary noise here.

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [October 6, 2020, 6:52pm UTC](https://forum.suricata.io/t/make-installation-fails/648/14 "2020-10-06T18:52:57Z")

</div>

Can you try `ldconfig /usr/local/lib` and see if that helps? Some Linux distributions need it, other’s don’t.

`make install-conf` (which is part of install-full) should have installed `classification.config`, etc along with `suricata.yaml` in `/usr/local/etc/suricata`.

---

<div class="post-metadata">

**Author:** ![Sylfrena](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/sylfrena/32/353_2.png) [@Sylfrena](https://forum.suricata.io/u/Sylfrena)\
**Post date:** [October 6, 2020, 7:54pm UTC](https://forum.suricata.io/t/make-installation-fails/648/15 "2020-10-06T19:54:39Z")

</div>

I did `sudo make install-conf`. I still can’t find the .config files but at least suricata does run. Thanks!

---

<div class="post-metadata">

**Author:** ![colinmcculloch](https://avatars.discourse-cdn.com/v4/letter/c/f0a364/32.png) [@colinmcculloch](https://forum.suricata.io/u/colinmcculloch)\
**Post date:** [March 10, 2021, 3:38am UTC](https://forum.suricata.io/t/make-installation-fails/648/16 "2021-03-10T03:38:37Z")

</div>

I was able to solve this problem by installing suricata-update with pip3 and then moving the executable into /usr/bin/  
Even though I was assuming make install-full would look in ~/.local/bin (which is on my PATH) where suricata-update gets placed.  
Additionally, I had to modify the makefile - the file has these lines:  
install-rules:  
LD\_LIBRARY\_PATH=(libdir) (DESTDIR)(bindir)/suricata-update \ --suricata (DESTDIR)(bindir)/suricata \ --suricata-conf (DESTDIR)$(sysconfdir)/suricata/suricata.yaml   
–no-test --no-reload

and they were commented out, so I took out the comments.

---

<div class="post-metadata">

**Author:** ![ish](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/ish/32/8_2.png) [@ish](https://forum.suricata.io/u/ish)\
**Post date:** [March 10, 2021, 4:29am UTC](https://forum.suricata.io/t/make-installation-fails/648/17 "2021-03-10T04:29:41Z")

</div>

Were you installing from git or the release archive? The release archive bundles `suricata-update`, but builds from git do not.
