RubyMine 3.2无法在MacOS Lion上找到libmysqlclient.18.dylib [英] RubyMine 3.2 failing to find libmysqlclient.18.dylib on MacOS Lion

查看:105
本文介绍了RubyMine 3.2无法在MacOS Lion上找到libmysqlclient.18.dylib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

刚刚在MacOS Lion上升级到RM2的RC1,无法再运行该应用程序。与rvm一起运行。在启动时,mysql2 gem报告它无法在dlopen上找到libmysqlclient.18.dylib。



解决了它。在这里发布解决方案,这将有助于节省一些时间。

使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆