MySQL gem on OSX 10.7 Lion

前端 未结 3 1423
滥情空心
滥情空心 2020-12-13 16:09

Did anyone got the MySQL gem 2.8.1. working on OSX 10.7 ?

I\'ve installed MySQL 5.5.13 64bit and tried the following after the successful installation of MySQL:

相关标签:
3条回答
  • 2020-12-13 16:24

    I had been struggling with this issue. The two above pointers worked. Here is what I did:

    1. Added to .zshrc or your .bash_profile:

      export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"

    2. Executed this:

      env ARCHFLAGS="-arch x86_64" sudo gem install mysql -v='2.8.1' -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include --with-mysql-config=/usr/local/mysql/bin/mysql_config

    0 讨论(0)
  • 2020-12-13 16:37

    Try adding this to your ~/.bash_profile:

    export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"

    0 讨论(0)
  • 2020-12-13 16:43

    Downgrading to MySQL 5.1 is probably the easiest route, if possible.

    0 讨论(0)
提交回复
热议问题