Mac OS X Lion安裝sqlite3問題

來源:互聯網
上載者:User

Mac OS X Lion安裝sqlite3問題 我主要是要安裝go的一個packagego get github.com/mattn/go-sqlite3 所以要安裝sqlite3以下是我的環境和安裝情況:Mac OS x Lion version 10.8.2 Homebrew 0.9.3安裝sqlite 和pkg-config 這個安裝包的時候需要 brew install pkgconfig sqlite3go version go1.0.3go安裝package報錯 ajian@Ajians-MacBook-Pro:/usr $go get github.com/mattn/go-sqlite3# pkg-config --cflags sqlite3Package sqlite3 was not found in the pkg-config search path.Perhaps you should add the directory containing `sqlite3.pc'to the PKG_CONFIG_PATH environment variableNo package 'sqlite3' foundexit status 1PKG_CONFIG_PATH該如何設定呢。 自己想了一個辦法解決了: 因為錯誤說PKG_CONFIG_PATH沒有找不到`sqlite3.pc'所以我先在/usr/local/下面找 `sqlite3.pc' 這個檔案在哪裡再將該路徑加入到環境變數中 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 這樣就沒有問題了。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.