Giter Club home page Giter Club logo

Comments (5)

jgallagher avatar jgallagher commented on May 25, 2024

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 on Debian). Does it look like there's an equivalent on Mint?

from rusqlite.

davidpbrown avatar davidpbrown commented on May 25, 2024

Yes.. it needed libsqlite3-dev .. thanks!

from rusqlite.

doabit avatar doabit commented on May 25, 2024

@jgallagher 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/doabit/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

I've installed pkg-config and sqlite3 with homebrew.

from rusqlite.

doabit avatar doabit commented on May 25, 2024

Ok, use PKG_CONFIG_PATH=echo /usr/local/Cellar/sqlite/*/lib/pkgconfig/ cargo build can build success.

from rusqlite.

dashed avatar dashed commented on May 25, 2024

@doabit thanks! PKG_CONFIG_PATH=$(echo /usr/local/Cellar/sqlite/3.9.1/lib/pkgconfig/) cargo run works for me

from rusqlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.