[OISF/outreachy] How to run the project on Ubuntu
Blithe Brandon
blithe.brandon at gmail.com
Sat Oct 17 07:47:54 UTC 2020
I think the issue might be how Cargo was configured. I’ve added the same section of output from my system and yours below. Notice I do not have a RUSTUP_HOME entry and my CARGO_HOME is under my /home/blithe directory. Whereas your Cargo is listed as /root/.cargo.
Perhaps try the three cargo steps again.
sudo apt-get cargo
add /home/$(whoami)/.cargo/bin to your path.
cargo install --force cbindgen
And then the
./configure && make && make install-full
Here’s my output
Making all in rust
make[1]: Entering directory '/home/blithe/suricata/suricata/rust'
\
CARGO_HOME="/home/blithe/.cargo" \
CARGO_TARGET_DIR="/home/blithe/suricata/suricata/rust/target" \
/usr/bin/cargo build --release \
--features "function-macro "
Finished release [optimized + debuginfo] target(s) in 1.36s
make gen/rust-bindings.h
make[2]: Entering directory '/home/blithe/suricata/suricata/rust'
make[2]: 'gen/rust-bindings.h' is up to date.
make[2]: Leaving directory '/home/blithe/suricata/suricata/rust'
make[1]: Leaving directory '/home/blithe/suricata/suricata/rust'
And here is yours
Making all in rust
make[1]: Entering directory '/home/saad/Downloads/suricata/suricata/rust'
RUSTUP_HOME=/root/snap/rustup/common/rustup \
CARGO_HOME="/root/.cargo" \
CARGO_TARGET_DIR="/home/saad/Downloads/suricata/suricata/rust/target" \
/usr/bin/cargo build --release \
--features "function-macro "
error: failed to get `bitflags` as a dependency of package `suricata v6.0.1-dev (/home/saad/Downloads/suricata/suricata/rust)`
Caused by:
failed to create directory `/root/.cargo/registry/index/github.com-1ecc6299db9ec823`
Caused by:
Permission denied (os error 13)
make[1]: *** [Makefile:546: all-local] Error 101
make[1]: Leaving directory '/home/saad/Downloads/suricata/suricata/rust'
make: *** [Makefile:491: all-recursive] Error 1
Blithe
On Oct 17, 2020, 12:07 AM -0700, Agha Saad <agha.saad04 at gmail.com>, wrote:
> Hi Blithe,
> I am getting an error after running this command./configure && make && make install-full. I have attached the log file.
> Link: https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Basic_Setup
>
> > On Sat, Oct 17, 2020 at 11:30 AM Blithe Brandon <blithe.brandon at gmail.com> wrote:
> > > Hi Agha,
> > >
> > > I think you’re done with installation and can move on to setup next. The general steps are layed out on this page. You’ve done step one, and are ready for step two which leads you to basic setup.
> > > https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Quick_Start_Guide
> > >
> > > Blithe
> > > On Oct 16, 2020, 11:16 PM -0700, Agha Saad via Outreachy <outreachy at lists.openinfosecfoundation.org>, wrote:
> > > > Hi all,
> > > > After installing Suricata on Ubuntu, what's the next step to run the project?
> > > > I am following this link https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Ubuntu_Installation_from_GIT
> > > > I have followed the steps till sudo ldconfig command. Kindly help me with this.
> > > >
> > > > Thanks & Regards,
> > > > Agha Saad
> > > > _______________________________________________
> > > > Outreachy mailing list
> > > > Outreachy at lists.openinfosecfoundation.org
> > > > https://lists.openinfosecfoundation.org/listinfo/outreachy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/outreachy/attachments/20201017/9708a03c/attachment.html>
More information about the Outreachy
mailing list