從同學那裡拿來乙個rails專案工程的原始碼,發現gemfile中rails版本是3.2.11,和我安裝的不一樣,於是執行bundle update rails ,報錯如下:
installing pg 0.14.1 with native extensions
gem::ext::builderror: error: failed to build gem native extension.
/home/zkp/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -r ./siteconf20150912-4116-1fwu6vx.rb extconf.rb
checking for pg_config... no
no pg_config... trying anyway. if building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
can't find the 'libpq-fe.h header
*** extconf.rb failed ***
could not create makefile due to some reason, probably lack of
necessary libraries and/or headers. check the mkmf.log file for more
details. you may need configuration options.
在網上查詢解決辦法,
需要執行sudo apt-get install libpq-dev
執行後問題解決,安裝完成。
ZF報錯處理
fatal error uncaught exception zend controller response exception with message cannot send headers headers already sent inind xampp php pear z end con...
oracle報錯處理
這裡的序號 1.2.3.不是步驟,而是每個單獨問題。1.不登入鏈結資料庫 sqlplus nolog 2.oracle檢視並修改最大連線數 alter system set processes 1000 scope spfile alter system set session 1105 scope...
python 報錯處理
寫了個helloword程式,執行出錯了 file f python helloword helloword.py line 2 syntaxerror non ascii character xe5 in file f python helloword helloword.py on line 3...