RubyMine 3.2无法在MacOS Lion上找到libmysqlclient.18.dylib [英] RubyMine 3.2 failing to find libmysqlclient.18.dylib on MacOS Lion
问题描述
解决了它。在这里发布解决方案,这将有助于节省一些时间。
使用Apple的Property List Editor在〜/ .MacOS / environment.plist中创建一个条目,调用LD_LIBRARY_PATH并将值设置为/ usr / local / mysql / lib或者
注销并重新登录,RubyMine和mysql2 gem再次开心。解决方案
解决方案 1)打开运行/调试配置以了解更多关于RubyMine服务器实例的环境变量部分。您的服务器
点击环境变量旁边的...
3)添加DYLD_LIBRARY_PATH作为键值和/ usr / local / mysql / lib /作为值(使用.dmg MySQL安装的路径)
Just upgraded to RC1 of RM 3.2 on MacOS Lion and couldn't run the application anymore. Running with rvm. On startup the mysql2 gem reported it couldn't find libmysqlclient.18.dylib on a dlopen.
Solved it. Posting the solution here so it will help somebody save some time.
Using Apple's Property List Editor create an entry in ~/.MacOS/environment.plist call LD_LIBRARY_PATH and set the value to /usr/local/mysql/lib or whereever your MySQL libraries live.
Logout and log back in and RubyMine and the mysql2 gem are happy again.
I got around this by adding this to the environment variables section of the RubyMine server instance.
1) Open Run/Debug Configurations for your server
2) Click on the "..." next to "Environment Variables"
3) Add "DYLD_LIBRARY_PATH" as the key and "/usr/local/mysql/lib/" as value (path from using .dmg MySQL install)
这篇关于RubyMine 3.2无法在MacOS Lion上找到libmysqlclient.18.dylib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!