Installation of sqlite3 on Mac OS X Lion

Source: Internet
Author: User
Tags macbook

For the installation of sqlite3 on Mac OS x Lion, I mainly want to install packagego get github.com/mattn/go-sqlite3 of go. Therefore, the installation of sqlite3 is as follows: when installing the sqlite and pkg-config installation packages for Mac OS x Lion version 10.8.2 Homebrew 0.9.3, run the following command: /usr $ go get github.com/mattn/go-sqlite3# pkg-config -- cflags sqlite3Package sqlite3 was not found in the pkg-config search path. perhap S you should add the directory containing 'sqlite3. pc' to the PKG_CONFIG_PATH environment variableNo package 'sqlite3 'foundexit status 1PKG_CONFIG_PATH how to set it. I figured out a solution: Because the error says PKG_CONFIG_PATH could not find 'sqlite3. pc, So I first find 'sqlite3 under/usr/local. pc: Where can I add this path to the Environment Variable? find/usr/local/-name "sqlite3.pc"/usr/local/Cellar/sqlite/3.7.15.1/lib/pkgconfig /sqlite3.pcajian @ Ajians-MacBook-Pro: /usr $ export PKG_CONFIG_PATH =/usr/lib/pkgconfig:/usr/lib:/usr/local/Cellar/sqlite/3.7.15.1/lib/pkgconfigajian @ Ajians-MacBook-Pro: /usr $ go get github.com/mattn/go-sqlite3..

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.