简体   繁体   English

Mac上的Ruby on Rails和mysql 2

[英]Ruby on rails and mysql 2 on mac

I work in macosx v10.6.8 and i have : - ruby v 1.9.3p385 - rails v 3.2.12 - gem 1.8.25 - mysql Ver 14.14 Distrib 5.6.10, for osx10.6 (i386) using EditLine wrapper 我在macosx v10.6.8中工作,我有:-ruby v 1.9.3p385-rails v 3.2.12-gem 1.8.25-mysql Ver 14.14 Distrib 5.6.10,适用于使用EditLine包装器的osx10.6(i386)

Whene in try gem builde install, i see this message error : /Users/admin/.rvm/rubies/ruby-1.9.3-p385/bin/gem:4: warning: Insecure world writable dir /usr/local/mysql/bin in PATH, mode 040777 ERROR: While executing gem ... (RuntimeError) Unknown command builde 在尝试安装gem builde时,我看到此消息错误:/Users/admin/.rvm/rubies/ruby-1.9.3-p385/bin/gem:4:警告:不安全的世界可写目录/ usr / local / mysql / PATH模式040777中的bin:错误:执行gem时...(RuntimeError)未知命令生成

I tape chmod -R 777 but same error. 我将chmod -R 777录音,但是相同的错误。

And when i try gem install mysql2, i see this message error : /Users/admin/.rvm/rubies/ruby-1.9.3-p385/bin/gem:4: warning: Insecure world writable dir /usr/local/mysql/bin in PATH, mode 040777 ERROR: While executing gem ... (Errno::EACCES) Permission denied - /Users/admin/.rvm/gems/ruby-1.9.3-p385/gems/mysql2-0.3.11/.gitignore 当我尝试用gem安装mysql2时,我看到此消息错误:/Users/admin/.rvm/rubies/ruby-1.9.3-p385/bin/gem:4:警告:不安全的世界可写目录/ usr / local / mysql / bin在PATH模式040777中的错误:执行gem ...(Errno :: EACCES)权限被拒绝-/Users/admin/.rvm/gems/ruby-1.9.3-p385/gems/mysql2-0.3.11/ .gitignore

I clean that whith chmod -R 777 but again same error !!! 我清理了连chmod -R 777,但还是同样的错误!

I need a help, tnx every body 我需要帮助,谢谢大家

Well the error is telling you that the 777 permission is a problem, it shouldn't be world writeable. 错误告诉您777许可是个问题,它不应该是世界可写的。 I assume you're using this exclusively for local testing, try it with a 755 or 775 permission. 我假设您仅将此用于本地测试,请以755或775的权限尝试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM