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

zhangqunshi zhangqs at act.buaa.edu.cn
Mon Mar 19 09:55:27 UTC 2018



On 2018/3/16 17:22, zhangqunshi wrote:
> It's a little complex. I guess the steps are:
>
> 1)  I git clone from oisf.git a few days (old version)
>
> 2)  Run make and encounter the first error (actually it caused by slow 
> network for running cargo build)
>
> 3) And i added the cargo mirror repo, and run cargo build (NOTE: here 
> Cargo.toml was generated by Cargo.toml.in), first error disappeared.
>
> 4) Second error was happened, and then i run git pull (Get the latest 
> suricata version), but Cargo.toml not updated, only Cargo.toml.in was 
> updated.
>
> 5) I still use "cargo build" (so still use the old Cargo.toml)
>
> 6) I fixed the second error util I added the dependency "der_parser" 
> into the Cargo.toml file.
>
>
> BR,
>
> Kris
>
>
> On 2018/3/16 15:13, Victor Julien wrote:
>> On 16-03-18 08:12, zhangqunshi wrote:
>>> Thanks Victor, and the real reason is I use the wrong git url =
>>> git://phalanx.openinfosecfoundation.org/oisf.git
>>> I should use https://github.com/OISF/suricata, which the Cargo.toml is
>>> correct.
>> Hmm, I don't understand this. Both git repo's should be in sync.
>>
>> Do you see a difference?
>>
>> Thanks!
>> Victor
>>
>>>
>>> On 2018/3/16 15:08, Victor Julien wrote:
>>>> On 16-03-18 07:44, zhangqunshi wrote:
>>>>> Hi guys:
>>>>>
>>>>> 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)
>>>>>      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.
>>>> I've seen this before. I think going into the rust directory and 
>>>> doing a
>>>> 'cargo update' fixed it.
>>>>
>>>> Cheers,
>>>> Victor
>>>>
>>
>




More information about the Oisf-devel mailing list