Created
November 15, 2010 06:00
-
-
Save liwh/700095 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
后台启动mongodb: ./mongod --fork --logpath /var/log/mongodb.log --logappend | |
关闭mongodb: $ ./mongo | |
> db.shutdownServer() | |
今天,准备执行rake db:seed时,发现出现:no such file to load --openssl, | |
在安装了sudo apt-get install openssl libopenssl-ruby1.9 都没有效果后,此时,从http://openssl.org/ 上下载OpenSSL 0.9.8o 的tar包,自己进行编译安装。步骤如下。 | |
1. tar -xvf openssl* | |
2. cd openssl* | |
3. sudo make && sudo make install | |
4.进入ruby源文件目录,找到/ext/openssl 的目录,进入此目录 | |
执行:ruby extconf.rb --with-openssl-include=~/Desktop/openssl-1.0.0a/include/ | |
若不报错。则进行编译,sudo make && make install. | |
若出现Makefile wasn't created. Fix the errors above. 时,则执行 | |
ruby extconf.rb --with-openssl-include=~/Desktop/openssl-1.0.0a/include/ | |
此时,就大公告成了。。 | |
定义factroy_girl时,不能为空的字段,必须设置属性 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment