iden3 / circom

zkSnark circuit compiler
GNU General Public License v3.0
1.28k stars 244 forks source link

error[P1014]: The file ./circomlib/circuits/poseidon.circom to be included has not been found = Consider using compilation option -l to indicate include paths #192

Closed aakash4dev closed 1 year ago

aakash4dev commented 1 year ago

when i tried to compile circom file with circom compiler 2.1.5, it give error:

aakash@Aakash:~/learn/circuit$ circom circuit.circom --r1cs --wasm --sym --c
error[P1014]:  The file ./circomlib/circuits/poseidon.circom to be included has not been found
 = Consider using compilation option -l to indicate include paths

rust is installed, and I followed this tutorial to install circom in my WSL linux22.04: https://docs.circom.io/getting-started/installation/#important-deprecation-note

codes i run to install:

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
git clone https://github.com/iden3/circom.git
cd circom
cargo build --release
cargo install --path circom