[敏捷]項目管理工具redmine安裝手冊
之前在豆瓣上寫的一篇文章,這裏也記錄一下:
安裝redmine手冊
官方鏈接http://www.redmine.org/projects/redmine/wiki/RedmineInstall
OS: Mac OS 10.6.8 and Ubuntu10.04
記錄一下遇到的問題:
1.安裝mysql的的時候,用gem install mysql一直都是報錯的,內容如下:
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib
解決辦法
gem install ruby-mysql
2. 在設置database.yml的時候,設置的密碼前面要加上空格,否則執行RAILS_ENV=production rake db:migrate時,會報一個utf-8的異常信息
3. 執行RAILS_ENV=production rake db:migrate 出錯,如下
rake aborted!
No such file or directory - /tmp/mysql.sock
看現象應該是沒有找到mysql的監聽,在database.yml中添加
socket: /var/run/mysqld/mysqld.sock
結果如下
adapter: mysql
database: redmine
host: localhost
username: root
password: nopaass
encoding: utf8
socket: /var/run/mysqld/mysqld.sock
安裝redmine手冊
官方鏈接http://www.redmine.org/projects/redmine/wiki/RedmineInstall
OS: Mac OS 10.6.8 and Ubuntu10.04
記錄一下遇到的問題:
1.安裝mysql的的時候,用gem install mysql一直都是報錯的,內容如下:
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lm... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lz... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lsocket... no
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lnsl... yes
checking for mysql_query() in -lmysqlclient... no
checking for main() in -lmygcc... no
checking for mysql_query() in -lmysqlclient... no
*** 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
--with-mysql-config
--without-mysql-config
--with-mysql-dir
--without-mysql-dir
--with-mysql-include
--without-mysql-include=${mysql-dir}/include
--with-mysql-lib
--without-mysql-lib=${mysql-dir}/lib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mlib
--without-mlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-zlib
--without-zlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-socketlib
--without-socketlib
--with-mysqlclientlib
--without-mysqlclientlib
--with-nsllib
--without-nsllib
--with-mysqlclientlib
--without-mysqlclientlib
--with-mygcclib
--without-mygcclib
--with-mysqlclientlib
--without-mysqlclientlib
解決辦法
gem install ruby-mysql
2. 在設置database.yml的時候,設置的密碼前面要加上空格,否則執行RAILS_ENV=production rake db:migrate時,會報一個utf-8的異常信息
3. 執行RAILS_ENV=production rake db:migrate 出錯,如下
rake aborted!
No such file or directory - /tmp/mysql.sock
看現象應該是沒有找到mysql的監聽,在database.yml中添加
socket: /var/run/mysqld/mysqld.sock
結果如下
adapter: mysql
database: redmine
host: localhost
username: root
password: nopaass
encoding: utf8
socket: /var/run/mysqld/mysqld.sock
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.