opened
davidpbrown
username_0
I'm getting this error below and for searching cannot see a way through it.
sqlite3 is installed and working fine.

I cannot see sqlite3.pc or similar and I'm not familiar with those .pc files then to know an obvious answer.

Curious that majkcramer commented in May on the other issue that he's been successful in Linux.. I tried building only this from git clone too but same error.

I'm using Cargo build; unsure what the rustc equivalent to Cargo.toml is to try rustc but I would expect the same error perhaps will follow from that too.
```
       Fresh libc v0.1.8
       Fresh winapi v0.2.1
       Fresh pkg-config v0.3.5
   Compiling libsqlite3-sys v0.2.0 (file:///home/username_0/rust/firefox/rusqlite)
     Running `/home/username_0/rust/firefox/rusqlite/target/debug/build/libsqlite3-sys-863cdbd64abd8e99/build-script-build`
       Fresh bitflags v0.1.1
       Fresh winapi-build v0.1.1
       Fresh advapi32-sys v0.1.2
       Fresh rand v0.3.9
       Fresh tempdir v0.3.4
       Fresh kernel32-sys v0.1.3
       Fresh time v0.1.32
failed to run custom build command for `libsqlite3-sys v0.2.0 (file:///home/username_0/rust/firefox/rusqlite)`
Process didn't exit successfully: `/home/username_0/rust/firefox/rusqlite/target/debug/build/libsqlite3-sys-863cdbd64abd8e99/build-script-build` (exit code: 101)
--- stderr
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"sqlite3\"` did not exit successfully: exit code: 1\n--- stderr\nPackage sqlite3 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `sqlite3.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'sqlite3\' found\n"', ../src/libcore/result.rs:732
```
Error building Linux Mint - cannot find sqlite3
issue
created
jgallagher
username_1
`sqlite3.pc` is the configuration file that should be installed so you can use `pkg-config` to figure out where the headers / library files are located. I haven't used Linux Mint, but I know on some systems, you have to install a `-dev` version of the sqlite package to get the headers and `.pc` file (e.g., [libsqlite3-dev](https://packages.debian.org/squeeze/amd64/libsqlite3-dev/filelist) on Debian). Does it look like there's an equivalent on Mint?
comment
created
davidpbrown
username_0
Yes.. it needed libsqlite3-dev .. thanks!
comment
closed
davidpbrown
username_0
issue
created
doabit
username_2
@username_1 I have the same problem on osx el.

```
   Compiling libsqlite3-sys v0.2.0
failed to run custom build command for `libsqlite3-sys v0.2.0`
Process didn't exit successfully: `/Users/username_2/Codes/rust/projects/TencentOAuth/target/debug/build/libsqlite3-sys-2fe684602508b1c3/build-script-build` (exit code: 101)
--- stderr
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: "`\"pkg-config\" \"--libs\" \"--cflags\" \"sqlite3\"` did not exit successfully: exit code: 1\n--- stderr\nPackage sqlite3 was not found in the pkg-config search path.\nPerhaps you should add the directory containing `sqlite3.pc\'\nto the PKG_CONFIG_PATH environment variable\nNo package \'sqlite3\' found\n"', ../src/libcore/result.rs:736
```
comment
created
doabit
username_2
Ok, use ` PKG_CONFIG_PATH=`echo /usr/local/Cellar/sqlite/*/lib/pkgconfig/ cargo build`` can build success.
comment
created
Dashed
username_3
@username_2 thanks! `PKG_CONFIG_PATH=$(echo /usr/local/Cellar/sqlite/3.9.1/lib/pkgconfig/) cargo run` works for me
comment