我正在尝试通过Gmail在RedMine中打开票证。遇到错误-
下面是我要执行的命令-
rake redmine:email:receive_imap RAILS_ENV="production" host=imap.gmail.com port=143 username=my_gmail_id password=****** folder=inbox project=my_project_name allow_override=project,tracker,priority
WARNING: Nokogiri was built against LibXML version 2.9.4, but has dynamically loaded 2.9.3
[DEPRECATION] requiring "RMagick" is deprecated. Use "rmagick" instead
rake aborted!
LoadError: libmysqlclient.so.18: cannot open shared object file: No such file or directory - /home/ubuntu/redmine-3.4.6-3/apps/redmine/htdocs/vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.10/lib/mysql2/mysql2.so
/home/ubuntu/redmine-3.4.6-3/apps/redmine/htdocs/vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.10/lib/mysql2.rb:31:in require'
/home/ubuntu/redmine-3.4.6-3/apps/redmine/htdocs/vendor/bundle/ruby/2.3.0/gems/mysql2-0.4.10/lib/mysql2.rb:31:in <top (required)>'
/home/ubuntu/redmine-3.4.6-3/apps/redmine/htdocs/config/application.rb:5:in <top (required)>'
/home/ubuntu/redmine-3.4.6-3/apps/redmine/htdocs/Rakefile:5:in <top (required)>'
答案 0 :(得分:0)
尝试使用它,您需要提及脚本上的ruby。
/usr/local/rvm/wrappers/ruby-2.2.5/rake -f / var / www / redmine / Rakefile redmine:email:receive_imap RAILS_ENV =“ production” host = your.host.com port = 993 ssl = 1用户名= mail..com密码= xxxx unknown_user =接受no_permission_check = 1 project =“ general” tracker =“ your_tracker” allow_override = project,tracker,priority