[Oisf-devel] can't find crate for `der_parser`

Pierre Chifflier chifflier at wzdftpd.net
Fri Mar 16 06:59:57 UTC 2018


On 03/16/2018 07:44 AM, zhangqunshi wrote:
> Hi guys:
> 

Hi,

> I fixed the following error (network issue) and now I got the second error:
> 
> ics at lsbjs17120001:~/gbb/oisf/rust$ cargo build
>     Updating registry `git://mirrors.ustc.edu.cn/crates.io-index`
>  Downloading crc v1.7.0 (registry
> git://mirrors.ustc.edu.cn/crates.io-index)

It seems you are using a private registry, which does not contain
der-parser (which is published on crates.io).
If this registry is a mirror of crates.io, it seems outdated.
You can either use the default (crates.io) registry, or get der-parser
(on crates.io or github) and use it locally.

Regards,
Pierre

>    Compiling crc v1.7.0
>    Compiling suricata v4.1.0-dev (file:///home/ics/gbb/oisf/rust)
> error[E0463]: can't find crate for `der_parser`
>   --> src/lib.rs:27:1
>    |
> 27 | extern crate der_parser;
>    | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
> 
> error: aborting due to previous error
> 
> error: Could not compile `suricata`.
> 
> To learn more, run the command again with --verbose.
> 
> 
> Please help me,
> 
> Thanks,
> 
> Kris
> 
> 
> 
> On 2018/3/16 13:53, zhangqunshi wrote:
>> Hi guys,
>>
>> When I make the latest surciata from source code, i got the following
>> errros:
>>
>>
>> make  all-recursive
>> make[1]: Entering directory '/home/ics/gbb/oisf'
>> Making all in libhtp
>> make[2]: Entering directory '/home/ics/gbb/oisf/libhtp'
>> make  all-recursive
>> make[3]: Entering directory '/home/ics/gbb/oisf/libhtp'
>> Making all in htp
>> make[4]: Entering directory '/home/ics/gbb/oisf/libhtp/htp'
>> make[4]: Nothing to be done for 'all'.
>> make[4]: Leaving directory '/home/ics/gbb/oisf/libhtp/htp'
>> Making all in test
>> make[4]: Entering directory '/home/ics/gbb/oisf/libhtp/test'
>> make[4]: Nothing to be done for 'all'.
>> make[4]: Leaving directory '/home/ics/gbb/oisf/libhtp/test'
>> Making all in docs
>> make[4]: Entering directory '/home/ics/gbb/oisf/libhtp/docs'
>> make[4]: Nothing to be done for 'all'.
>> make[4]: Leaving directory '/home/ics/gbb/oisf/libhtp/docs'
>> make[4]: Entering directory '/home/ics/gbb/oisf/libhtp'
>> make[4]: Leaving directory '/home/ics/gbb/oisf/libhtp'
>> make[3]: Leaving directory '/home/ics/gbb/oisf/libhtp'
>> make[2]: Leaving directory '/home/ics/gbb/oisf/libhtp'
>> Making all in rust
>> make[2]: Entering directory '/home/ics/gbb/oisf/rust'
>> cd ../rust && \
>>           /usr/bin/python ./gen-c-headers.py && \
>>           CARGO_TARGET_DIR=/home/ics/gbb/oisf/rust/target \
>>           CARGO_HOME=/home/ics/.cargo /usr/bin/cargo build --release
>> --frozen \
>>                   --features "  "
>> error: no matching package named `crc` found (required by `suricata`)
>> location searched: registry https://github.com/rust-lang/crates.io-index
>> version required: ~1.7.0
>> Makefile:531: recipe for target 'all-local' failed
>> make[2]: *** [all-local] Error 101
>> make[2]: Leaving directory '/home/ics/gbb/oisf/rust'
>> Makefile:487: recipe for target 'all-recursive' failed
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory '/home/ics/gbb/oisf'
>> Makefile:415: recipe for target 'all' failed
>> make: *** [all] Error 2
>>
>> =================
>>
>> cargo --version
>> cargo 0.23.0
>>
>> rustc --version
>> rustc 1.22.1
>>
>> suricata is clone https://github.com/OISF/suricata.git
>>
>>
>> Any advice is welcome,
>>
>> Thanks,
>>
>> Kris
>>
>>
>>
>> _______________________________________________
>> Suricata IDS Devel mailing list: oisf-devel at openinfosecfoundation.org
>> Site: http://suricata-ids.org | Participate:
>> http://suricata-ids.org/participate/
>> List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
>> Redmine: https://redmine.openinfosecfoundation.org/
>>
> 
> _______________________________________________
> Suricata IDS Devel mailing list: oisf-devel at openinfosecfoundation.org
> Site: http://suricata-ids.org | Participate:
> http://suricata-ids.org/participate/
> List: https://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
> Redmine: https://redmine.openinfosecfoundation.org/
> 




More information about the Oisf-devel mailing list